JN5189 Error when compiling JN-AN-1243 by MCUXpresso IDE

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

JN5189 Error when compiling JN-AN-1243 by MCUXpresso IDE

Jump to solution
1,820 Views
wxhntmy
Contributor I

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.

 

 

1629940900(1).png

 

 

 

 

 



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.

 

1629942686(1).png

 

 

 

 

 

 

 

 

 

 

In SDK 2.6.1 version, PWR.c does not call BOARD_CpuClockUpdate32MhzFro() function.

 

 

1629942506(1).png

 

 

 

 

 

 

 

 

 

 

 

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.

 

 

1629942800(1).png

 

 

 

 

 

 

 

 

 

1629942872(1).png

 

 

Labels (2)
0 Kudos
Reply
1 Solution
1,777 Views
nxf56274
NXP Employee
NXP Employee

Thanks for your feedback. I will check it and report to our internal team.

View solution in original post

0 Kudos
Reply
3 Replies
1,796 Views
wxhntmy
Contributor I

Is this a bug in SDK 2.6.4? Is there anything else besides this solution?

0 Kudos
Reply
1,811 Views
wxhntmy
Contributor I

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.

0 Kudos
Reply
1,778 Views
nxf56274
NXP Employee
NXP Employee

Thanks for your feedback. I will check it and report to our internal team.

0 Kudos
Reply