Do you have (or can you add) a debug port (EUSART, SEROUT, DEBUG)?
If so, then print the value of your variable out before calling the write routine, before executing the write command, after...
Type: Posts; User: HenrikOlsson; Keyword(s):
Do you have (or can you add) a debug port (EUSART, SEROUT, DEBUG)?
If so, then print the value of your variable out before calling the write routine, before executing the write command, after...
Now there's a problem description if I've ever seen one :-)
My bet is that it has something to do with the interrupts. Have you tried to disable the USB comms and change/save/read back the EEPROM...