标题: [M031] Using Bootloader to Upgrade APROM through BLE Module [打印本页] 作者: admin 时间: 昨天 10:28 标题: [M031] Using Bootloader to Upgrade APROM through BLE Module
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.
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.