Debugging RAM program with PE Micro Multilink

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Debugging RAM program with PE Micro Multilink

1,447 次查看
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 项奖励
回复
4 回复数

1,284 次查看
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 项奖励
回复

1,284 次查看
mitchenerjosh
Contributor I

Yes this was selected already.

0 项奖励
回复

1,284 次查看
Alexis_A
NXP TechSupport
NXP TechSupport

Hi Joshua,

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

Best Regards,

Alexis Andalon

0 项奖励
回复

932 次查看
Lukas_Frank
Senior Contributor I

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

Issue2: https://community.nxp.com/t5/MCUXpresso-General/Debugging-RAM-program-with-PE-Micro-Multilink/m-p/86...

 

I also created my own issue:

My Question:

https://community.nxp.com/t5/i-MX-RT/IMXRT1064-Debug-with-P-amp-E-Micro-MultiLink-Error-with-Flash/m...

 

 

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.

0 项奖励
回复