imx rt 1024 load ram app through JLink

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx rt 1024 load ram app through JLink

Jump to solution
570 Views
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....

 

Tags (1)
0 Kudos
Reply
1 Solution
550 Views
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

 

View solution in original post

0 Kudos
Reply
1 Reply
551 Views
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 Kudos
Reply