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....
解決済! 解決策の投稿を見る。
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
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