When using MCUXpresso IDE to compile JN5189's JN-AN-1243 application note,
“PWR.c:(.text.vHandleSleepModes+0xe): undefined reference to `BOARD_CpuClockUpdate32MhzFro”
error will be reported. My MCUXpresso IDE version is v11.4.0_6237.The SDK version is JN5189DK6 2.6.4.
I found that there is no BOARD_CpuClockUpdate32MhzFro function in Common/Source/board/board_utility.c, which caused this undefined reference error. But MCUXpresso IDE using v11.2.1_4149 version does not have this error.
This function is defined in the SDK Demo in Common/Source/board/board_utility.c.
In SDK 2.6.1 version, PWR.c does not call BOARD_CpuClockUpdate32MhzFro() function.
My current solution is to copy the BOARD_CpuClockUpdate32MhzFro() function from Common/Source/board/board_utility.c in the SDK example to JN-AN-1243 Common/Source/board/board_utility.c.
Solved! Go to Solution.
Thanks for your feedback. I will check it and report to our internal team.
Is this a bug in SDK 2.6.4? Is there anything else besides this solution?
Using the 11.2.1_4149 version of MCUXpressoIDE and the 2.6.1 version of the SDK does not have this error, because the 2.6.1 version of the SDK does not have the BOARD_CpuClockUpdate32MhzFro() function. This error appeared in the 2.6.4 version of the SDK.
Thanks for your feedback. I will check it and report to our internal team.