Hello.
I used Kenetis SDK whith processor Exp.
Hi generated code wizard.
Where the initialization code (mcg sim oscerclk) is located?
in what file it is located?
in what file initialization function is located?
Hi jeremyzhou and Alice_Yang
So the Processor Expert can not automatically apply the Clock Manager, right?
I found PE would generate two profiles,
one is define type in the system_xxxxx.h (like Jeremy_Zhou said),
and another one is clock_manager_user_config_t in the clockMan1.c (like Alice_Yang said).
However, the default applied is define type in the system_xxxxx.h, not clock_manager....
I also have the same question,
How to applied the Clock Manager in the initialization code by Processor Expert setting?
Or we only can manually write the code in the initialization?
Jiunn
Hello,
PEx KSDK project starts via CMSIS startup code always but it sets global variables for clock manager so there is no limitation in clock manager usage. Startup configuration is generated into system_<DEVICE>.h corresponding system_<DEVICE>.c is left in KSDK without any modification.
PEx KSDK project with and without clock_manager. You can find more details here: KSDK 1.2.0 and MKV30 :How to remove osa1 if i dont want any OS??
In clock manager component you can also control generation of configuration structures.
you can find more information related to clock manager within these threads:
Clock configuration with KDS3.0/KSDK1.2.0
Re: Change between clock configurations
best regards
Vojtech Filip
Hi Prof,
For instance, in the K22 demo, you can find the SystemInit() in the system_MK22F51212.c, and this function is applicable to configure the clock mode.
In the system_MK2251212.h, it contains the corresponding values of the different clock modes for the developer to choose.
Have a great day,
Ping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello Prof,
- After configure the CLOCK on PE, generate code ,you can find the configure about MCG SIM register on the file "clocMan1.c" :
...\Generated_Code\clockMan1.c -> clock_manager_user_config_t clockMan1_InitConfig0 ;
- Use the function of "CLOCK_SYS_Init()" to initialize the clock , on the file :
...\SDK\platform\system\src\clock\fsl_clock_manager.c
Hope it helps
Have a great day,
Alice
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------