1
NXPTM M522XX, KINETIS and i.MX RT / Re: Can't compile uTaskerV1.4 on Keil uVsion 5
« on: May 15, 2024, 02:25:02 PM »
Hi
I believe that newer versions of the KEIL compiler have become more GCC compatible and they removed the instrinsic __wifi().
In kinetis.c change
#define __sleep_mode() __wfi()
to
#define __sleep_mode() __asm__("wfi")
If this also doesn't work disabled SUPPORT_LOW_POWER in config.h as the instruction is only needed when using the processor's wait mode (to save power when the core has nothing to do).
I see that you are building the target "uTaskerV1.4-BM". This target works together with the uTasker boot loader so it may be easier for you to start with the "uTaskerV1.4" target [you can select the target to be built in the IDE] instead otherwise you will need to build and install the loader before you can test some operation.
Regards
Mark
I believe that newer versions of the KEIL compiler have become more GCC compatible and they removed the instrinsic __wifi().
In kinetis.c change
#define __sleep_mode() __wfi()
to
#define __sleep_mode() __asm__("wfi")
If this also doesn't work disabled SUPPORT_LOW_POWER in config.h as the instruction is only needed when using the processor's wait mode (to save power when the core has nothing to do).
I see that you are building the target "uTaskerV1.4-BM". This target works together with the uTasker boot loader so it may be easier for you to start with the "uTaskerV1.4" target [you can select the target to be built in the IDE] instead otherwise you will need to build and install the loader before you can test some operation.
Regards
Mark