• 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: Refractive Prism Raspberry Pi PICO Keyboard Raspberry Pi Pico ESP32-P4 Smart 86 TV Box Development Board 4 inch 720x720 Display TouchScreen RS485 Relay Camera RJ45 ETH STM32 downloader Pico-DALI2 Expansion Board For ESP32 C6 S3 DALI communication control multiple LED Spotpear Rockchip Industrial USB TO RS485 Isolated Bidirectional Converter Original FT232RNL 1200m Long Distance UNO Minima RA4M1 ZERO Tiny SuperMini R7FA4M1 Board Compatible With R4 For Arduino Raspberry Pi 5 PCIe TO Gigabit RJ45 ETH Adapter Board (C) Driver-Free RTL8111H For Pi5 Raspberry Pi Prism Workstation electronic Nameplate 8inch LCD 1280x800 Computer PC Monitor Display Secondary Screen TypeC USB CPU RAM Raspberry Pi USB Camera 2MP OV2735 Distortion-Free USB 2.0 For Jeston RDK Tang-Nano-20K-FPGA-Unboxing Raspberry Pi Compute Module 5 CM5 Cortex A76 BCM2712 With/Without Wi-Fi RAM 2/4/8/16GB eMMC Lite/8/16/32/64GB Raspberry Pi 4B/5 Industrial UART 2CH RS485 RS232 CAN FD HAT With Case For Installation of guide rails and hanging Milk-V Duo S 512MB SG2000 RISC-V Jetson Nano IO Board