Clock differnces in SDK_2.4.1_MK22FN128xxx10

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

Clock differnces in SDK_2.4.1_MK22FN128xxx10

Jump to solution
1,044 Views
shuichiy
Contributor III

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.

0 Kudos
1 Solution
870 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

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.

for FRDM-K22F board.png

clock_config.png

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
3 Replies
870 Views
shuichiy
Contributor III

Hi Robin,

Thank you for your advice.

Finally I have generated clock_config.c/h and they work fine !

0 Kudos
870 Views
shuichiy
Contributor III

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.

0 Kudos
871 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

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.

for FRDM-K22F board.png

clock_config.png

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos