use of SystemCoreClockUpdate() with KSDK2.2

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

use of SystemCoreClockUpdate() with KSDK2.2

1,177 Views
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

1 Reply

990 Views
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