Debugging RAM program with PE Micro Multilink

cancel
Showing results for 
Search instead for 
Did you mean: 

Debugging RAM program with PE Micro Multilink

281 Views
mitchenerjosh
Contributor I

I'm having trouble debugging my RAM program with the PE micro multilink tool.

If there is nothing written to flash, it will enter debug mode with the green play button grayed out.

When I hit pause, nothing happens because I don't think that the program is running, and I also have to force close gdb server in task manager.

When I enter debug for my ram program, and there is something written to flash, it will work properly.

After doing some digging I found this in the MCUXpresso manual:  "Since an MCU will not automatically boot from RAM, a scheme is needed to take control of the debuggers reset mechanism"

There is a soft reset and there is also a kinetisRamReset.scp file but this can only be used in LinkServer Debug mode.

How can I have the flash erased, load my program into RAM, and have it start using the PE multilink tool?

Is there a certain configuration setup needed to run RAM programs with the PE tool I am not aware of?

Any Ideas?

0 Kudos
3 Replies

118 Views
Alexis_A
NXP TechSupport
NXP TechSupport

Hello Joshua,

Did you link the application to RAM in the MCUXpresso?

Go to Project properties -> C/C++ Build -> Settings -> Managed Linker Script and check the option "Link application to RAM"

pastedImage_1.png

If this option isn't active the program counter would point to an application in flash.

I hope this can help you.

Best Regards,

Alexis Andalon

0 Kudos

118 Views
mitchenerjosh
Contributor I

Yes this was selected already.

0 Kudos

118 Views
Alexis_A
NXP TechSupport
NXP TechSupport

Hi Joshua,

To try to replicate this, which device are you using?

Best Regards,

Alexis Andalon

0 Kudos