i.MX RT1170 Failed to boot after Spread Spectrum Clocking is enabled

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

i.MX RT1170 Failed to boot after Spread Spectrum Clocking is enabled

ソリューションへジャンプ
1,613件の閲覧回数
SeenFan
Contributor II

Trying to enable SSC on RT1170 EVK with MCUXpresso.

Ref: AN12879

Steps:

1. Base project: SDK Example evkmimxrt1170_semc_cm7

2. Using IDE to config SSC 

IDE_Clocking.png

source_diff.png

3. Boot failed

Boot_Failed.png

4. Sometimes can boot normally (~ 1/50)

Any step I missed?

Regards

Seen

0 件の賞賛
返信
1 解決策
1,552件の閲覧回数
jingpan
NXP TechSupport
NXP TechSupport

Hi @SeenFan ,

This is because RT1170 FlexSPI use PLL2 as clock source when use default configure. When you change PLL2 frequency, FlexSPI may fail to get next instruction. To resolve this, you can put fsl_clock.c to SRAM. Please refer to my demo code.

 

Regards,

Jing

元の投稿で解決策を見る

0 件の賞賛
返信
4 返答(返信)
1,553件の閲覧回数
jingpan
NXP TechSupport
NXP TechSupport

Hi @SeenFan ,

This is because RT1170 FlexSPI use PLL2 as clock source when use default configure. When you change PLL2 frequency, FlexSPI may fail to get next instruction. To resolve this, you can put fsl_clock.c to SRAM. Please refer to my demo code.

 

Regards,

Jing

0 件の賞賛
返信
1,527件の閲覧回数
SeenFan
Contributor II

Hi Jin,

If I want to locate and run program on SDRAM. 
What I need to pay attention to?

 

Regards

Seen

0 件の賞賛
返信
1,519件の閲覧回数
jingpan
NXP TechSupport
NXP TechSupport

Hi @SeenFan ,

SDRAM can be initialized by DCD and boot ROM.  Then boot ROM will copy your application code to SDRAM. I think the most important thing is the cache problem. You can refer to these link.

https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/How-to-move-CM4-core-project-to-SDRAM-in-RT1176...
2.debug in sdram
https://community.nxp.com/t5/MCUXpresso-IDE/Running-and-debugging-program-in-SDRAM/m-p/1405167
3.Using NonCached Memory on i.MXRT
https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/Using-NonCached-Memory-on-i-MXRT/ta-p/1183369

Regards,

Jing

 

0 件の賞賛
返信
1,534件の閲覧回数
SeenFan
Contributor II

Hi Jing,

It works. Thanks a lot.

 

Regards

Seen

0 件の賞賛
返信