Clock differnces in SDK_2.4.1_MK22FN128xxx10

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

Clock differnces in SDK_2.4.1_MK22FN128xxx10

ソリューションへジャンプ
2,057件の閲覧回数
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 件の賞賛
返信
1 解決策
1,883件の閲覧回数
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 件の賞賛
返信
3 返答(返信)
1,883件の閲覧回数
shuichiy
Contributor III

Hi Robin,

Thank you for your advice.

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

0 件の賞賛
返信
1,883件の閲覧回数
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 件の賞賛
返信
1,884件の閲覧回数
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 件の賞賛
返信