[M031] Using Bootloader to Upgrade APROM through BLE Module

Post Reply
chhsieh3
Posts: 307
Joined: 13 Mar 2020, 09:08

15 Dec 2022, 14:04

  • Application: This example code uses ISP_UART bootloader program in LDROM with IAP mode function to upgrade firmware in APROM through ESP32 BLE module.
  • BSP Version: M031_Series_BSP_CMSIS_V3.05.000
  • Hardware: NuMaker-M032KI V1.0
This example code uses ISP_UART bootloader program of the M031 series microcontroller (MCU) to upgrade firmware in APROM through ESP32 BLE module.

The IAP (In-Application Programming) bootloader allows the M031 to update the firmware in other Flash address block. After finishing the IAP process, the update process will remap the start address of new firmware to Vector Page Address and then user can use mobile phone’s APP to call system reset function to run the new firmware.

The ESP32 BLE module can interface with other systems to provide Wi-Fi and Bluetooth functionality through its UART interface. The sample code needs to connect the ESP32 BLE module to the NuMaker-M032KI board for BLE to UART transparent transmission. The ESP32_BLE_UART.ino in the ThirdParty folder is ESP32 firmware supports ISP command, user can use ESP32 Arduino IDE to upgrade the ESP32 BLE module.

Users can download and install the ISPTooL Android v1.1.1.apk APP from https://play.google.com/store/apps/deta ... d&hl=zh-hk and select the BLE interface to connect with ISP_UART bootloader program to upgrade firmware in APROM.

This example code provides two test programs. One programs data to APROM at offset 0x10000 and prints the contents of the address, and the other programs data to APROM at offset address 0x50000 and prints the contents of the address. User can copy the bin file to mobile phone to test the IAP process.

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

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 9 guests