Internal EEPROM Corruption in MC9S12XDP512

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

Internal EEPROM Corruption in MC9S12XDP512

1,691 Views
kp2309
Contributor I
Hey guys
We are using MC9S12XDP512 controller for our existing product development.
 
The internal EEPROM of the controllers is getting corrupted permenantly in some cases.
It is not becoming default even after reprogramming the controller.
 
It works fine and we are able to read and write properly for some time.
 
We are using 190kHz frequency for EEPROM.
Also we are erasing the sectors before writing into EEPROM.
 
The product is in the last stage of release and suddenly we are facing such critical problem
Can anybody please tell me what are the areas which I should look in for finding the solution.
What can be the reasons for permenant corruption of EEPROM from hardware as well as software design point of view???
 
Please reply ASAP. 
 
-Regards,
KP
Labels (1)
0 Kudos
3 Replies

369 Views
kef
Specialist I
Sounds like bad ECLKDIV setting. Please tell us
 
1) what are your crystal (or external clock frequency) and bus clock frequencies.
2) what's you code to set up ECLKDIV. If you don't want to show the code, then please read contents of ECLKDIV register after setup is done in normal mode (not using BDM).
0 Kudos

369 Views
kp2309
Contributor I
Crystal frequency = 8MHz
We are using PLL to make it 40MHz hence Bus Clock  = 20MHz
ECLKDIV = 0x2A
After calculation EECLK comes out to be 190kHz

0 Kudos

369 Views
kef
Specialist I
Setting is OK, but are you sure ECLKDIV is set up properly? So what's your code, or what do you read from ECLKDIV in normal mode? Look for what Lundin replied here
 
 
 
Also, what did you mean by
   It is not becoming default even after reprogramming the controller.
 
Does it mean EEPROM isn't erased during erase and reprogram over BDM? Well, if you didn't disable EEPROM erasure, then maybe EEPROM erase/program limit was reached and part is damaged?


Message Edited by kef on 2008-12-19 10:41 AM
0 Kudos