How to make debugger only erase the section I want to

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

How to make debugger only erase the section I want to

1,649 Views
yuehedeng
Contributor III

Hello,

 

   I'm working on my boot loader based on MPC574x + S32 DS + P&E multilink. My boot loader and main APP have different project and flash section. Below are part of my ld file for main APP and BLD.

 

/********************* main APP Z4 core code placed here ******************/
Z4_APP_Header_text : org = 0x1000000, len = 64
Z4_APP_RAMFunc_text : org = 0x1000040, len = 16k
Z4_APP_text : org = 0x1004040, len = 1280K-16K-64

 

/********************* boot loader code placed here ******************/
bld_text : org = 0x00F90014, len = 73708
ramfunc_text : org = 0x00F96000, len = 8K

 

 So my question is: how to make multilink only erase  these two sections when debug boot loader project?

bld_text : org = 0x00F90014, len = 73708
ramfunc_text : org = 0x00F96000, len = 8K

 

When I debug my boot loader project, it will erase main APP(cod flash start from 0x1000000 ) automatically. It  makes me difficult to debug my boot loader.

Labels (2)
2 Replies

1,202 Views
stanish
NXP Employee
NXP Employee

Hi,

FYI: similar question has been discussed here:

Debug interface without erasing memory 

Stan

1,202 Views
martin_kovar
NXP Employee
NXP Employee

Hello,

open Debug Configuration of your project and click Advance Options.

pastedImage_1.png

Advanced Options window will be opened. There is Non-Volatile Memory Preservation feature which allows you to choose, which memory areas will not be erased during code downloading.

pastedImage_2.png

Regards,

Martin