PLL Clock change issue on MQX 3.8.1

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

PLL Clock change issue on MQX 3.8.1

ソリューションへジャンプ
1,626件の閲覧回数
lucianomoretti
Contributor IV

I've got a K70 based MQX 3.8.1 project I've inherited, and I need to change the DDR frequency to 150Mhz from the bsp default of 120Mhz.  I've changed the bsp_cm.h file from:

#define CPU_PLL_FLL_CLK_HZ_CONFIG_0    120000000UL

to

#define CPU_PLL_FLL_CLK_HZ_CONFIG_0    150000000UL

I've verified that my BSP's .a file is being updated, and even gone so far as to printf the value of CPU_PLL_FLL_CLK_HZ_CONFIG_0 from my application code, but the O-scope still says my PLL is at 120Mhz.  The above change worked in my MQX 4.1.1 projects, and I can't figure out why it hasn't had the same effect in my MQX 3.8.1 project.

タグ(2)
0 件の賞賛
返信
1 解決策
1,444件の閲覧回数
lucianomoretti
Contributor IV

Thank you.  This helped immensely.  It looks like the PRDIV1 register was set up differently in the BSPs, and the #define didn't actually do anything. Going back to older 4.1.1 builds the DDR is clocked at 150mhz.

Now to work with my EE to verify all the settings to verify that all the peripherals are clocked correctly.

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,442件の閲覧回数
soledad
NXP Employee
NXP Employee

Hello Luciano,

Please check the attached document, this document shows how to change default clock settings in Kinetis BSPs.

I hope this helps!!


Have a great day,
Sol

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

0 件の賞賛
返信
1,445件の閲覧回数
lucianomoretti
Contributor IV

Thank you.  This helped immensely.  It looks like the PRDIV1 register was set up differently in the BSPs, and the #define didn't actually do anything. Going back to older 4.1.1 builds the DDR is clocked at 150mhz.

Now to work with my EE to verify all the settings to verify that all the peripherals are clocked correctly.

0 件の賞賛
返信