AnsweredAssumed Answered

MC9S08AW60 Code execution corruption after Writing in Flash / EEPROM routine

Question asked by Raul Alvarez on Oct 7, 2013

Hi to all,.

 

Im new on this forum. I have annoying problem with a MC9S08AW60 microcontroller. When I try to store some variables (11 bytes) in a flash reserved zone (reserved zone 0x1860 through 0x1A5F but no more than 0x186A used), I observe a malfunctioning program, sometime freezes etc.
I think that's code corruption problem, Can anyone help me?
I'm not sure If my prm file is correctly configured (berore read  AN3730 and AN2616 but they not detailled information about PRM file configuration), after take a look into MAP file I state that tehres no code in reserved zone, but the program still fails... I'm bit desesperate.
flash.c, prm file and map file included here

 

Thanks in advance.

Original Attachment has been moved to: Project.prm.zip

Original Attachment has been moved to: flash.c.zip

Original Attachment has been moved to: Project.map.zip

Outcomes