RT1021: Connecting to external SDRAM with Segger J-Link

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

RT1021: Connecting to external SDRAM with Segger J-Link

ソリューションへジャンプ
1,218件の閲覧回数
rshipman
Contributor V

Hi,

I have just started using a Segger J-Link Ultra+ with MCUXpresso and I am unable to debug code that is running on the RT1021 using external SDRAM. I just get 0xdeadbeee in the debug call stack.

If I use a project that runs entirely in internal SRAM, the debugger seems to work ok.

Up until now I have been using an LPC-Link2 debugger, using the MCUXpresso LinkServer CMSIS-DAP option to debug. I have a .scp script to initialise the SDRAM which works fine.

I believe the J-Link problem is because the SDRAM has not been initialised and I need a J-Link script to do this.

If it is a J-Link script that I need, do you have an example that would initialise the SDRAM in the same way as the .scp one please? Perhaps you have one for the RT1020-EVK? That would be perfect if you do.

Any information would be very helpful.

Thanks and regards,

Ronnie

 

ラベル(1)
0 件の賞賛
1 解決策
1,210件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @rshipman ,

   JLINK+MCUXpresso+SDRAM, need to use the .jlinkscript file to enable the SEMC for the SDRAM.

 Please open the SDK demo code, it already contains the script file:

\SDK_2_12_0_EVK-MIMXRT1020\boards\evkmimxrt1020\demo_apps\hello_world

kerryzhou_0-1661145038832.png

Then in the mcuxpresso debug configurations, add the related script file is OK.

 

Wish it helps you!

Best Regards,

Kerry

 

元の投稿で解決策を見る

2 返答(返信)
1,207件の閲覧回数
rshipman
Contributor V

Hi Kerry,

Many thanks for your prompt reply!

Ronnie

0 件の賞賛
1,211件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @rshipman ,

   JLINK+MCUXpresso+SDRAM, need to use the .jlinkscript file to enable the SEMC for the SDRAM.

 Please open the SDK demo code, it already contains the script file:

\SDK_2_12_0_EVK-MIMXRT1020\boards\evkmimxrt1020\demo_apps\hello_world

kerryzhou_0-1661145038832.png

Then in the mcuxpresso debug configurations, add the related script file is OK.

 

Wish it helps you!

Best Regards,

Kerry