9S12XET256, how to erase and intialize the EEPROM while Programming

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

9S12XET256, how to erase and intialize the EEPROM while Programming

1,588 Views
HUST
Contributor I

 

9S12XET256, how to erase and intialize the EEPROM while Programming

 

Hi ,

        it  fails for us  to Erase and initialize the EEPROM  while programming.as you know , inside of this MCU, the EEPROM is emulated via DFLASH,we find the EEPROM can't be erased after programming, and naturally  e can't  initialize the EEPROM.

Any tool or method  recommended to erase and initialize  the EEPROM  will be appreciated.

 

        HUST From China 2009-04-22

Labels (1)
0 Kudos
2 Replies

506 Views
HUST
Contributor I

Sorry for not making me clear:

 

 

 in PRM:

 

SEGMENTS /*==================================================================================================================================*/ /* non-paged EEPROM *//*==================================================================================================================================*/ EEPROM = READ_ONLY 0x0C00 TO 0x0FFF;       

 

 

PLACEMENT  

       EEPROM_FF  INTO  EEPROM;

 

ENTRIES  

   EEPROMTest

 

 

 

 

in main:

 

#pragma CONST_SEG EEPROM_FF

const uint8  EEPROMTest = 0x88;

#pragma CONST_SEG  DEFAULT

 

  when i download the ABS file, at the end of verify process, the dialogbox shows :fail to load the 0x0c00; 

 

 

  so , i built this thread. would you give me some  idea?thanks

 

 

 

0 Kudos

506 Views
J2MEJediMaster
Specialist I

Start with this forum thread, which has some working code. (Warning, it's for a different derivative, but should be a good starting point.) You can also use the search box located at the lower left of this page to search for "EEPROM". This topic has been discussed often in these forums and a search should find some other solutions if that thread doesn't help you.

 

---Tom

0 Kudos