[M467 | M487 | M263 | M2354] Update Wi-Fi Module Firmware on NuMaker IoT Boards

Post Reply
morgandu
Posts: 45
Joined: 28 Apr 2017, 22:47

01 Feb 2024, 11:33

[For further inquiries, please e-mail to shchen2@nuvoton.com]
[Visit https://www.nuvoton.com/iot_startup for more IoT solutions]



Some NuMaker IoT Boards have equipped with ESP-12F Wi-Fi modules. Such as
  • NuMaker-IoT-M487 v1.3
  • NuMaker-IoT-M467
  • NuMaker-IoT-M263A
  • NuMaker-IoT-M2354
The Wi-Fi module is provided by AI-Thinker. The module contains a ESP8266 Wi-Fi chip and a 32M-bit NOR Flash.
When the NuMaker board is produced, the Wi-Fi module firmware will be updated to NONOS version 1.7.0.0

The document only applies to ESP-12 Wi-Fi module, not ESP-01 and ESP-03 Wi-Fi modules on early NuMaker boards, due to insufficient NOR Flash size on the modules.
  • NuMaker-IoT-M487 v1.2 or earlier
  • NuMaker-PFM-M2351
Updating the firmware of the Wi-Fi module on the NuMaker-IoT board can be inconvenient if the module needs to be detached. By running the UART pass-through firmware in NuMicro MCU, connecting the UART on NuMaker IoT Board to the UART on the Wi-Fi module allows you to update the Wi-Fi module using Wi-Fi update tools on a PC without the need to detach the Wi-Fi module.

Picture01.png
Picture01.png (54.12 KiB) Viewed 4381 times


Program Pass-through Firmware

Follow the steps to build UART pass-through firmware
  • Mbed Studio* creates an empty project with Mbed OS v6
  • Replace the main.cpp in the project with the main.cpp in the attached zip file.
  • Select NuMaker-IoT board
  • Build it.
Or the pre-built UART pass-through firmware are in attached zip file for following boards:
  • NuMaker-IoT-M487 : SerialPassthrough_ESP8266_NUMAKER_IOT_M487_PH8PH9_PH3.bin
  • NuMaker-IoT-M467 : SerialPassthrough_ESP8266_NUMAKER_IOT_M467_PC1PC0_PC4.bin
  • NuMaker-IoT-M263A : SerialPassthrough_ESP8266_NUMAKER_IOT_M263A_PC7PC6_PE12.bin
SerialPassthrough_source_and_binary.zip
(70.15 KiB) Downloaded 1019 times
  • Firmware Program via Nu-Link-ME (such as NuMaker-IoT-M487)
    Make sure the ISW1 on Nu-Link-ME are all set to ON
Picture02.png
Picture02.png (304.03 KiB) Viewed 4381 times
  • Firmware Program via Nu-Link2-ME (such as NuMaker-IoT-M467, NuMaker-IoT-M263A, and NuMaker-IoT-M2354)
    Make sure the ICESW2 on Nu-Line2-ME that no.1 & 2 are set to ON andno.3 & 4 are set to OFF
Picture04.png
Picture04.png (269.23 KiB) Viewed 4381 times
  • Connect the USB connector on Nu-Link/Nu-Link2 to the PC with a Micro USB cable.
  • A “NuMicro MCU” drive appears on the PC
  • Copy SerialPassthrough_ESP8266_NUMAKER_IOT_xxxx.bin to “NuMicro MCU” drive to program the firmware to board.
Picture03.png
Picture03.png (20.67 KiB) Viewed 4381 times


Update Wi-Fi Module Firmware

Set Wi-Fi Module to Firmware Download Mode
  • Remove power supply from NuMaker IoT board, i.e., disconnect the USB cable.
  • Pull down Wi-Fi module (GPIO0) pin
    • NuMaker-IoT-M467 and NuMaker-IoT-M263A : No.2 of SW5 switch set to ON
    • NuMaker-IoT-M487 : Short J3 on Wi-Fi module board
    • NuMaker-IoT-M2354 : Short J5
    Picture06.jpg
    Picture06.jpg (77.69 KiB) Viewed 4381 times
  • Then connect the USB cable to Nu-Link USB to power up NuMaker IoT board.
Picture07.jpg
Picture07.jpg (211.58 KiB) Viewed 4381 times

Download Flash Tool for ESP-12F Wi-Fi module
Picture08.png
Picture08.png (39.83 KiB) Viewed 4381 times

Download Wi-Fi Module Firmware
  • Visit AI-Thinker web site https://docs.ai-thinker.com/en/固件汇总
  • AI-Thinker provides several firmware versions with distinct functionalities. As the original firmware lacked MQTT protocol commands, we selected firmware that supports MQTT commands for this demonstration. Scroll down the web page then download the “MQTT transparent transmission of AT firmware (AT communication serial port is changed to UART0)”
  • Extract the zip to a directory.
Picture09.png
Picture09.png (33.26 KiB) Viewed 4381 times

Execute Wi-Fi Module Tool
  • In the directory where the ESP Download Tool zip file is extracted, locate “flash_download_tool_v3.8.x.exe” and execute it.
  • Click Developer Mode
  • Click ESP8266 DownloadTool
Picture10.png
Picture10.png (24.04 KiB) Viewed 4381 times

Configure ESP Download Tool
  • Click to select the MQTT firmware file, “_1112_ESP8266_AT-4M.bin”
  • The firmware file has been combined into a completed one, so set address to 0x00000.
  • Check the row, and ensure others remain unchecked.
  • Verify that settings match the right screen.
  • Select the COM port of Nu-Link, andBaud rate set to 115200
  • Click START to start download firmware
  • The progress bar shows the download state
  • When the entire progress bar turns green, it indicates that the download is complete
Picture11.png
Picture11.png (47.53 KiB) Viewed 4381 times

Verify the Wi-Fi Module
  • Remove power supply from NuMaker IoT board
  • Remove the Download Wi-Fi module (GPIO0) pin
    • NuMaker-IoT-M467, NuMaker-IoT-M263A : No.2 of SW5 switch set to OFF
    • NuMaker-IoT-M487 : Remote jumper on J3 on Wi-Fi module board
    • NuMaker-IoT-M2354 : Remove jumper on J5
  • Then connect the USB cable to Nu-Link USB to power up NuMaker IoT board.
  • Use a terminal tool to open the Nu-Link VCOM
  • Input an AT command, such as "AT+GMR". Need to append CR (CTRL-M) and (CTRL-J) LF at end of each AT command
  • If it works, it will response firmware version.
Picture12.png
Picture12.png (18.48 KiB) Viewed 4381 times

That's all.

If you want to restore to original firmware
Picture13.png
Picture13.png (31.04 KiB) Viewed 4381 times

Enjoy it. ;)

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 91 guests