use of SystemCoreClockUpdate() with KSDK2.2

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

use of SystemCoreClockUpdate() with KSDK2.2

1,438 次查看
mastupristi
Senior Contributor I

I use Kinetis K64. I use KSDK 2.2, and I configure the clock using online MCUXpresso clock conguration tool.

I wonder if I also have to call SystemCoreClockUpdate() and when since the variable SystemCoreClock is set by generated function BOARD_BootClockRUN().

best regards

Max

标记 (3)
1 回复

1,251 次查看
marek_neuzil
NXP Employee
NXP Employee

Hello,

You needn't to call the SystemCoreClockUpdate() function in you application. The function just update value of the SystemCoreClock variable that is also set in the BOARD_BootClockRUN() function (generated by the Clocks tool).

If you call the SystemCoreClockUpdate() (after BOARD_BootClockRUN()) the SystemCoreClock variable will not be changed (the same value shall be assigned to this variable).

Best Regards,

Marek Neuzil