• sales

    +86-0755-88291180

Modbus-Series-BootLoader-Description User Guide

Modbus Series BootLoader Description

Version Description

  • From September 2024, the BootLoader program will be added to the Modbus series products, which supports reading and restoring device parameters, and supports updating user programs.
  • The latest products that support this function will be labeled "V03 QC".

BootLoader Functions Introduction

The BootLoader program refers to the first program that is executed after the device is powered on. The program will detect the SWDIO pin. If SWDIO and GND are shorted at boot time, it will enter boot mode. In this mode, you can read and restore device parameters and update user programs. If SWDIO is not pulled low when the device boots, skip boot mode and enter user mode to start normal functionality.

BootLoader Operation Description

The program starts with LED always on to detect SWDIO pins. Short-circuiting the SWDIO/SWIO/SWD and GND pins will enter Boot mode, causing the LED to stay on. Without short-circuiting, it jumps to the user program, and the LED will slowly blink. If the user program has issues and the jump fails, the LED will rapidly blink, requiring a re-download of the user program.
(The picture takes the Modbus RTU IO 8CH module as an example. If you use the network port series module, you need to connect to the computer through the network cable, and convert the TCP connection to a virtual serial port to continue the operation.)

Use SecureCRT to connect to the serial port, the default serial port is 115200 N 8 1 format, and make sure not to check XON/XOFF.

If you need to update the user program, select 1024 bytes for the Ymodem package size.

When booting up, short connect SWDIO and GND to enter the bootloader program. After the bootloader program runs, the following interface will be displayed.

1. Download the program; 2. Restore device parameters; 3. Read device parameters; 4. Exit bootloader to run user program.
Enter 3 to read the device parameters, enter 2 to restore the default device parameters, the default serial port is in 9600 N 8 1 format, and the device address is 0x01.

Enter 1 to enter the upgrade user program mode, and the interface is displayed as follows

In the SecureCRT menu, select Transfer->Send Ymodem... Select to update Bin program, select Add, and select OK to start sending.

The program is downloaded as shown below.

Enter 4 to exit the bootloader program and enter the user program.

TAG: Raspberry Pi IR Thermal Imagi ESP32-S3FH4R2-MINI-Tiny-Stamp-WIFI-Bluetooth5 Industrial CAN FD RS232/RS485 bidirectional converter CAN2.0A/B BPI-M4 Zero Raspberry Pi Pico 2 RP2350B 1.46 inch Round LCD Touch Display 412x412 HMI LVGL QMI8658 6-axis 65K Colors ESP32-S3 Industrial 8-Channel Controller with WiFi Bluetooth CAN IoT RS485 and RJ45 ETH POE Raspberry Pi 5 Power Raspberry Pi 5 LIR2032 Raspberry Pi 15.6 inch QLED Quantum Dot Display 1920x1080 Capacitive Touchscreen For Computer PC/Jetson/Game $167.99 Raspberry Pi 5 PD Activation Industrial Isolated 4CH RS485 TO POE ETH (B) RJ45 Converter UART For Modbus Arduino Thermal imaging camera BG95-M3-Zero QuecPython EVB development support LTE/EGPRS and GNSS ESP32 C3 Voice Robot Mini Development Board AI DeepSeek Toy Doll Core 1.28 inch 1.54inch LCD ADXL354C Sensor Raspberry Pi 5 PCIe to M.2 Mini NVMe SSD Board (E) With Customized Active Cooler Together Raspberry Pi 5 PCIe to M.2 NVME SSD And Gigabit Ethernet RJ45 HAT RTL8111H M_KEY For 2230/2242/2260/2280 ESP32-C5 WIFI6 Development Board ESP32-C5-WROOM-1 N16R4/N16R8 X1202 Raspberry Pi 5 UPS Board Uninterruptible Power Supply For 18650-Li-Battery (NOT includ) 4-Ports 2.8inch Capacitive TouchScreen LCD Display ST7789 CST328 240x320 For Arduino/Raspberry Pi/ESP32/Pico