pdf-icon

Product Guide

Industrial Control

Real-Time AI Voice Assistant

Offline Voice Recognition

Thread

Module Gateway H2

IoT Tools

IoT Cloud

Ethernet Camera

DIP Switch Usage Guide

Module GPS v2.0

Module GNSS

Module ExtPort For Core2

M5 DAPLink

This tutorial will guide you through flashing the M5 DAPLink firmware onto a Core2 or CoreS3 device, transforming it into an offline programmer for convenient firmware updates on other STM32-based products.

1. Preparations

M5Burner

  • Download the M5Burner firmware flashing tool for your operating system from the links below. Extract and launch the application.
Software Version Download Link
M5Burner_Windows Download
M5Burner_MacOS Download
M5Burner_Linux Download
  • Open the burner tool, select the corresponding device type from the left menu, and download the matching firmware for your device.
  • Download the firmware for CoreS3: CoreS3CoreS3 DAPLink. Refer to the CoreS3 documentation to learn how to enter download mode. Once the device is detected by your computer, proceed with flashing.
  • Download the firmware for Core2: Core2Core2 DAPLink. Refer to the Core2 documentation to install the required USB driver. Once the device is detected, proceed with flashing.

3. Importing Flashing Algorithms and Firmware

Download the algorithm package below. This package, along with the firmware, is imported into the host device and used to match different chip models during flashing. Some algorithms are preloaded in the firmware, while manual import allows for additional algorithm support. Import methods vary by device—refer to the details below.

Virtual USB Drive Import

Virtual USB Drive Import
This method is currently only supported for CoreS3.

Extract the algorithm package and copy it to the CoreS3 virtual USB drive. Create a program folder in the root directory to store the firmware files (hex/bin) for flashing.

MicroSD Import

MicroSD Import
This method is currently only supported for Core2.

Extract the algorithm package and copy it to the MicroSD card. Create a program folder in the root directory to store the firmware files (hex/bin). The directory structure is the same as the CoreS3 virtual USB method.

Web Import

Web Import
This method works for both Core2 and CoreS3. Imported data is automatically saved to the device's flash storage partition. (Note: For Core2 with an SD card, files are stored on the SD card. For CoreS3, safely eject the virtual USB drive before importing via the web.)

Power on the device to enable its AP hotspot. Connect your computer to the hotspot and visit 192.168.4.1 in a browser. Click Program to navigate to the file upload page, then upload the algorithm and firmware files.

4. Device Connection

The DAPLink pin mappings for the firmware are as follows:

DAPLink SWDIO SWCLK RESET 3V3 GND
Core2 G27 G19 G32 3V3 GND
CoreS3 G6 G7 G2 3V3 GND

For example, to update the firmware of a Unit EXT.IO2, locate the programming pads after opening the device casing and connect them according to the pin mapping above. If contact is unstable, tilt the Dupont wire pins to ensure proper connection.

5. Starting the Flashing Process

After importing the algorithms and firmware, the device will display available options upon startup. Select the algorithm and firmware matching your target device. Click Idle, then Busy to begin flashing. (Note: Some chips, like STM32F0xx series, may require pressing Busy twice.)

CoreS3 DAPLink Flashing Note
After connecting to a computer, CoreS3 mounts a virtual USB drive by default. Safely eject the drive before flashing. For convenience, power the device directly with a 5V charger.
Algorithm Supported Chips Flash Size
STM32F0xx_16 STM32F0xx 16K
STM32F0xx_64 STM32F0xx 64K
STM32G0xx_32 STM32G0xx 32K
STM32G0xx_64 STM32G0xx 64K
STM32G4xx_128 STM32G4XX 128K

6. Using with Module Bus

Module Bus Integration
For daily DAPLink debugging, the Module Bus is highly recommended for easier wiring. It extends the MBus interface to the board's edge and includes two sets of 2.54-15P 90° headers for seamless Dupont wire connections.
On This Page