My program is working in the next way; when the machine turns on, the program is loaded from the flash memory to the SDRAM. But now, I want to update the program when the machine is working using the UART port. So my problem is in case that someone turn off the machine during the updating process.
I have thought on saving the new code in a different flash block and then change the boot start address but I don´t know if it is possible and how to do that. So Is it possible this solution? Is there another solution?