Hello everyone,
First of all thanks you for your immediate helpful support.
I am working on FOTA(firmware update over the air).
I am using MCUxpresso tool id and lpc1768 MCU.
As a example i have Led_1 blinking code in MCU and i want to write Led_2 blinking code in the place of Led_1 code.
I have few concerns.
1)Failed to write internal flash (sector 0 to 15) by using IAP command. Sector preparing commands return error number 9.
2)When i received data(Led_2 blinking code) by UART and write in internal flash in any address(Sector16 to 20) and also updated FIRMWARE_UPDATE_FLAG and then erase Led_1 code by iap cmd and then write Led_2 code in the address of Led_1 code.
When i erase Led_1 code so code execution is stopped.
3)But i want execute code from ram when i deleted Led_1 code from internal flash.
4) How can i write secondary bootloader for resloving these problem?
If u have any other better idea than secondary bootloader to resolve my concern so please suggest me?
If u have any demo code so please provide me link?
Thanks in advance.