Debug interface without erasing memory

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

Debug interface without erasing memory

Jump to solution
2,243 Views
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

Labels (2)
0 Kudos
1 Solution
1,604 Views
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

View solution in original post

2 Replies
1,605 Views
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,604 Views
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 Kudos