AnsweredAssumed Answered

How to make debugger only erase the section I want to

Question asked by Yuehe Deng on Feb 16, 2017
Latest reply on Feb 16, 2017 by stanish

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.

Outcomes