I've been reading MK20DX256VLH7 datasheet for a day and still didn't find any description about built-in mechanisms for intrinsic firmware update. I mean stuff that helps (allows) currently running firmware update itself. e.g. 2 banks of flash feature in SAM3x8e that can be switched and etc.
Is it possible with these devices firmware to be updated by firmware itself?
This device MK20DX256VLH7 has 256Kb flash memory for firmware. Is it possible to overwrite the program flash while firmware is running? (suppose isn't due to it's executed from flash)
MK20DX256VLH7 has SPI based 'EzPort' that is the way of program it. The programming process is controlled by EzPort protocol. I would like my firmware control the update and just receive the firmware via UART, I2C etc. as the raw binary array.
E.g. ESP8266 provide special command that copies a memory to zero address and reboot. I'm asking for same features in these MCUs.