Could someone help me with flash swap problem ?
I'm using C90TFS Flash driver from freescale to perform flash swap. But when flash swap completed and i restart the MCU, the MCU doesn't run. Here are my code for your reference.
I called SwapInit(), program the upper block, and then call SwapEnd(). By the way, when the MCU doesn't run, i read the flash memory using SWD. And the content of the flash match exactly with my firmware image (.bin).
Original Attachment has been moved to: swap.h.txt.zip
Original Attachment has been moved to: swap.c.txt.zip