Tool/software:
Please give us a sample program that will help us to achieve the following.
When updating F/W, we would like to run the program on RAM and rewrite Flash via UART communication.
Example: For the first time, a program for F/W updater is written in Flash together with a normal program in the manufacturing process in advance.
(1) While the normal program is running, the prg for F/.W updater is copied to RAM by a communication instruction, and operation starts in RAM.
(2) Erase Flash by communication and write to Flash while receiving new F/W.
(3) Reset itself and boot from Flash.