找回密码
 立即注册

QQ登录

只需一步,快速开始

开启左侧

[M031] Using Bootloader to Upgrade APROM through BLE Module

[复制链接]
admin 发表于 2026-3-20 10:28:51 | 显示全部楼层 |阅读模式
  • 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/details?id=com.nuvoton.nuisptool_android&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-download.jsp?tp_GUID=EC012022120806044959
牛卧堂
回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies |上传

本版积分规则

新唐MCU