MC9S08AW60 Code execution corruption after Writing in Flash / EEPROM routine

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

MC9S08AW60 Code execution corruption after Writing in Flash / EEPROM routine

464 Views
raulalvarez
Contributor I

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

Labels (1)
Tags (1)
0 Kudos
Reply
0 Replies