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?
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"
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
Yes this was selected already.
Hi Joshua,
To try to replicate this, which device are you using?
Best Regards,
Alexis Andalon
Hi Dear @Alexis_A ,
I have same problem. I look up open issues below, I can’t find a solution.
Issue1: https://community.nxp.com/t5/i-MX-RT/Flash-Programming/m-p/1071788/thread-id/8849
I also created my own issue:
My Question:
Could you please help me about my question?
I am not able to debug with my PEMicro probe both in Flash or RAM usage..
Thanks and Regards.