imx rt 1024 load ram app through JLink

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

imx rt 1024 load ram app through JLink

ソリューションへジャンプ
569件の閲覧回数
bp1979
Senior Contributor I

Dear NXP,

Can you please show me a working example where a axf file (compiled with "link to RAM") gets written to DTC (0x20000000) and actually runs?

What we tried so far:

loadfile evkmimxrt1024_iled_blinky.axf 0x20000000 noreset
halt
setpc 0x20000000
go

When I run that axf file from MCUxpresso, it works fine. But I need production site to run that app through JLink. I can't get it done. 

PS: The above JLink commands do work, when I execute these steps after launching the program from MCUxpresso first. But again, it needs to work, from power on, connect JLink, and loadfile, etc.

I am 100% it CAN work, because it works from MCUxpresso, so what am I missing in the above sequence?

I really hope you can find the time to try this on an EVK and give the exact answer, I already spend way too much time trying stuff I found on the internet, on nxp forums, suggestions from chat gpt, nothing gives....

 

タグ(1)
0 件の賞賛
返信
1 解決策
549件の閲覧回数
bp1979
Senior Contributor I

Oh oh oh.... sometimes... I wish... I wish things...

If anybody else is struggling to get a RAM app going from JLink, a big hint: "where is the reset handler located?"

In my case, not on 0x20000000...

This works perfectly

J-Link>mem32 0x20000000,4
20000000 = 20010000 200002DD 20000361 200045D1 
                    ^^^^^^^^

halt
loadfile evkmimxrt1024_iled_blinky.axf 0x20000000 noreset
setpc 0x200002DD
go

 

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
550件の閲覧回数
bp1979
Senior Contributor I

Oh oh oh.... sometimes... I wish... I wish things...

If anybody else is struggling to get a RAM app going from JLink, a big hint: "where is the reset handler located?"

In my case, not on 0x20000000...

This works perfectly

J-Link>mem32 0x20000000,4
20000000 = 20010000 200002DD 20000361 200045D1 
                    ^^^^^^^^

halt
loadfile evkmimxrt1024_iled_blinky.axf 0x20000000 noreset
setpc 0x200002DD
go

 

0 件の賞賛
返信