How can I configure the debugger to not erase data flash in 10.5?

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

How can I configure the debugger to not erase data flash in 10.5?

1,192 Views
LesleyF
Contributor I

In Codewarrior 10.5 for DSC (568367) I want to disable download to data the data flash (range 04000-07FFF).  In the classic Codewarrior you could just comment out the line in the .cfg file.  Can you change the .mem file to prevent the debugger from erasing this section?  I tried to change the permission to "Read" but it still erased it.

 

//         Memory Map:

//         ----------------------------------------------------------------------

//         <memory address rage>     <access size>     <permission>

range      p:0x00000000 p:0x0003FFFF       2           ReadWrite      // FLASH

range      p:0x00040000 p:0x00043FFF       2           ReadWrite      // FLASH

reserved   p:0x00044000 p:0x0004F7FF

range      p:0x0004F800 p:0x0004FFFF       2           ReadWrite      // RAM

reserved   p:0x00050000 p:0x001FFFFF

 

 

range      x:0x00000000 x:0x00003FFF       2           ReadWrite      // RAM

range      x:0x00004000 x:0x00007FFF       2           Read           // FLASH

reserved   x:0x00008000 x:0x0000EFFF

//         x:0x0000F000 x:0x0000FFFF       2           ReadWrite      // Memory Mapped Registers

reserved   x:0x00010000 x:0x00FFFEFF

//         x:0x00FFFF00 x:0x00FFFFFF       2           ReadWrite      // Memory Mapped Registers

Labels (1)
0 Kudos
4 Replies

869 Views
BlackNight
NXP Employee
NXP Employee

Hello,

if you are using P&E Multilink, then you can preserve memory ranges from beeing erased:

http://mcuoneclipse.com/2012/04/27/programming-part-of-flash/

Erich

869 Views
LesleyF
Contributor I

Hi Erich,

Yes I am using a P&E Multilink.  The link you gave was helpful but I do not see the same "Advanced Options" page that is shown in your link.  I do not see a way to define memory for preservation.  I see the followoing on the Advanced options page.   Is this feature hidden somewhere else?  I really appreciate your help.

Lesley

DSC_AdvancedOptions.png

0 Kudos

869 Views
BlackNight
NXP Employee
NXP Employee

It's on the Connection tab:

connection.png

0 Kudos

869 Views
LesleyF
Contributor I

Hi Erich,

Thanks so much. I really appreciate your timely help with this. Freescale is a great company to work with. You guys are great.

Lesley Freed

Agilent Technologies

0 Kudos