Hello,
We are using the MK64FN1M microcontroller and we are trying to have the ability to flash two versions of the same app , remotely, into the program memory. The ideia is to prevent the device to be stuck if the flashing process goes wrong on one part of the memory having always the other half with an older version.
We are using an ethernet bootloader and we already can flash both parts of the memory and run the app from one or the other, but never having them both on memory or having the ability to switch from one to the other, or reflash them.
We must be doing something wrong on the memory partition , but I cant figure out what. Here is our partition :
Block 1

with SCB->VTOR = 0xF000 and when flashing, at the bootloader, the erase goes from 0xf000 to 0x7A000 and the start address is 0xF1D5;
Block 2

with SCB->VTOR = 0x7A000 and when flashing, at the bootloader, the erase goes from 0x7A000 to 0xF4240 and the start address is 0x7A1D5;
Can you please share some info on this idea.
Thank you for the help
Regards