Debug interface without erasing memory

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

Debug interface without erasing memory

跳至解决方案
2,431 次查看
AgustinDiaz
NXP Employee
NXP Employee

Hi,

 

I have two question regarding the S32DS debugger for the S32K144:

 

1) In Code Warrior there was the option available to 'attach' to the MCU while it was running its program by selecting the corresponding elf file. This way the debugger was able to debug the program flashed in the MCU without erasing it. Is this option available for the S32K144?

 

2) In the debug configurations at the advance options for the SWD protocol of the debugger tab there is a functionality for Non-Volatile Memory Preservation:

174323_174323.pngpastedImage_2.png

What does the memory ranges represent and are the ranges measured in bytes? 

 

Best Regards,

Agustin Diaz

标签 (2)
0 项奖励
回复
1 解答
1,792 次查看
stanish
NXP Employee
NXP Employee

Hello Agustin,

1) Yes, you can attach to the device.

In the debug configuration tick the option "Attach to Running Target"

pastedImage_1.png

2) This option allows you to preserve selected memory ranges - it basically dumps the memory range prior to the mass erase and programs it back after.

Default values and description might be misleading so we logged it as an usability issue.

The values/addresses entered are in hexadecimal format and value must be aligned to word size:

From: address must end with 0x0, 0x4, 0x8, 0xC.

To: address must end with 0x3, 0x7, 0xB, 0xF.

e.g. to preserve memory range: 0x1000 .. 0x1FFF:

pastedImage_2.png

Hope it helps.

Stan

在原帖中查看解决方案

2 回复数
1,793 次查看
stanish
NXP Employee
NXP Employee

Hello Agustin,

1) Yes, you can attach to the device.

In the debug configuration tick the option "Attach to Running Target"

pastedImage_1.png

2) This option allows you to preserve selected memory ranges - it basically dumps the memory range prior to the mass erase and programs it back after.

Default values and description might be misleading so we logged it as an usability issue.

The values/addresses entered are in hexadecimal format and value must be aligned to word size:

From: address must end with 0x0, 0x4, 0x8, 0xC.

To: address must end with 0x3, 0x7, 0xB, 0xF.

e.g. to preserve memory range: 0x1000 .. 0x1FFF:

pastedImage_2.png

Hope it helps.

Stan

1,792 次查看
neojung
NXP Employee
NXP Employee

Hi Stanislav,

I tried to attach the multilink to MPC5606B, but it seems that this way is not working with PA.

Do I need to wait flash programmer of incoming S32DS 1.2 PA release?

Best regards,

Neo

0 项奖励
回复