Yiye Lv

How to configure Codewarrior to disable eeprom erase during downloading

Discussion created by Yiye Lv on Dec 17, 2010
Latest reply on Dec 21, 2010 by kef

Hello Experts,

I try to disable eeprom erase during downloading, so i configure in CW debugger window(File->Configuration->Load->click 'Advanced'->select 'EEPROM'). But the result is eeprom stil will be erased to 0 or 0xFF after downloading before the program is RUN.

ECU:PC9S12G128MLL
IDE: CW_HC12_v5.1_EVAL(download from freescale web)
Debugger firmware:P&E USB Multilink
prm setting:
SEGMENTS  /* Here all RAM/ROM areas of the device are listed. Used in PLACEMENT below. */

/* Register space  */
/*    IO_SEG        = PAGED         0x0000 TO   0x03FF; intentionally not defined */

/* RAM */
      RAM           = READ_WRITE    0x2000 TO   0x3FFF;
/* D-Flash */
      DFLASH        = READ_ONLY   0x000400 TO 0x0013FF;
·········

PLACEMENT /* here all predefined and user segments are placed into the SEGMENTS defined above. */

·········
   EEPROM_DATA   INTO  DFLASH;
END

 

Can you give the suggestion about this issue? Thanks

Outcomes