AnsweredAssumed Answered

Report Swap status always causes reset

Question asked by Jonathan Guy on Jan 28, 2016
Latest reply on Jan 29, 2016 by Jonathan Guy

I can successfully erase and program Flash in either bank, however as soon as I perform a Swap Report Status Operation (CCOB4 = 0x08) my code resets. I can't find this behavior documented anywhere.  The device is MK221M0AVLL12. This is the first step in determining the Swap state, so I'm blocked from running any other Swap control commands until this is resolved.


The actual reset occurs when the CCIF bit is written to start the operation (in the "FLASH_FlashCommandSequenceStart()" function).


Any ideas why this operation might be causing a reset?