Hello. I am learning about the OTA and want to know what really happens in the RAM and Flash memory in order to perform a succesfull remote firmware update (OTA).
So I know that the code program is stored in the flash memory and all the program variables and functions stored in the RAM ( that are declared at run-time) unless they are manually places in the flash memory.
When the OTA process starts, what happens first? Is the new binary first written to the RAM and then transferred to the Flash memory rewriting the old program on the flash?