Page 1 of 1

[M480] ISP Firmware Update and Restore

Posted: 05 Dec 2022, 14:17
by chhsieh3
  • Application: This LDROM sample code divides APROM into run part and backup part. To restore the firmware in APROM, two parts are compared and updated after power cycling.
  • BSP Version: M480 Series BSP CMSIS V3.05.003
  • Hardware: NuMaker-PFM-M487 V3.0
This LDROM sample code supports APROM update via UART, firmware verification and restoration is processed by separated bank. Since the M480 series microcontrollers (MCUs) are not equipped with bank re-mapping, two banks in APROM are acted as run part and backup part respectively as shown in Figure1-1 Flash Memory Allocation. When doing firmware update via ICE or UART, it is necessary to program an application to APROM_SIZE/2. Band0 and Bank1 are compared page by page after power cycling. If a difference is detected, sample code in LDROM starts updating the corresponding page in APROM. Besides, two banks are also compared after normal power cycling to correct the page fault.

You can download the sample code at https://www.nuvoton.com/resource-downlo ... 2810151944