AnsweredAssumed Answered

Problem writing to flash on a MPC5517

Question asked by Richard Yates on Jan 27, 2014
Latest reply on Jan 30, 2014 by Lukas Zadrapa

I have a problem writing to the High block (H0) flash section on a MPC5517 and I'm hoping someone may have some suggestions. The software is a simple maintenance application that waits for serial commands and performs actions based on those commands (reading ADC values, setting digital outputs, reading/writing H0 flash, etc).


The software is targeted as running out of RAM and when loaded via the debugger (PEMicro Nexus ICD) the software works perfectly and can read/write and erase the flash as required.


However when the software is booted via the serial port all the functions except the flash writing work fine. The software can read previously programmed flash values but won't erase or write new values; no exceptions are thrown - the application performs perfectly after a flash write is commanded.


I initially suspected the debugger initialisation script was doing something different to the BAM during serial boot but I haven't managed to (in my limited time spent looking) find anything.


Any help or suggestions welcome,