use of SystemCoreClockUpdate() with KSDK2.2

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

use of SystemCoreClockUpdate() with KSDK2.2

1,203件の閲覧回数
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,016件の閲覧回数
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