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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
1,822 次查看
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

 

 

标签 (2)
0 项奖励
回复
1 解答
1,779 次查看
nxf56274
NXP Employee
NXP Employee

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

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,798 次查看
wxhntmy
Contributor I

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

0 项奖励
回复
1,813 次查看
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 项奖励
回复
1,780 次查看
nxf56274
NXP Employee
NXP Employee

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

0 项奖励
回复