Hi all,
I have downloaded SDK 2.4.1 for uVision, then I noticed there are differences between devices\MK22FN12810\drivers folder and devices\MK22FN51212\drivers folder.
In fsl_clock.h under MK22128FN10 folder, following statement is nothing around #634.
mcg_pll_config_t pll0Config; /*!< MCGPLL0CLK configuration. */
As a result, samples in boards\frdmk22f\driver_examples with MK22128FN10 drivers raise compile errors such as follows:
compiling clock_config.c...
......\clock_config.c(164): error: #136: struct "_mcg_config" has no field "pll0Config"
.pll0Config =
../clock_config.c: 0 warnings, 1 error
My questions are:
Can I comment out statements which causes errors in fsl_clock.c/h ? Is it no problem ?
Or should I use drivers under MK22FN51212 folder even though MCU is MK22FN12810 ?
Your any comments would be appreciated.
Thanks in advance.
Solved! Go to Solution.
Please download the latest MCUXpresso Config Tools, it's able to generate clock_config.c/h for MK22128FN10.
You may need to configure the clock configuration according to your needs.
Best Regards,
Robin
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Robin,
Thank you for your advice.
Finally I have generated clock_config.c/h and they work fine !
Could someone give me clock_config.c/h for MK22128FN10 ?
Now I use blank's one which are in template folder in SDK and I'm confused what problems will happen.
Please download the latest MCUXpresso Config Tools, it's able to generate clock_config.c/h for MK22128FN10.
You may need to configure the clock configuration according to your needs.
Best Regards,
Robin
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------