Skip to content

steamicc/DapLink-EasyFlash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DapLink - EasyFlash

English - Français

Introduction

This tools is for internal usage, we use it to load daplink on target (STM32L475, STM32WB55, ...), to replace ST-LINK.

With OpenOCD, the program steps are :

  1. Unlock the RDP of the STM32F103xB
  2. Mass erase flash
  3. Flash bootloader
  4. Send firmware
  5. (optionnal) Send test program

screenshot

Appearance may vary depending on your OS configuration.

Requirements

💻 System

To avoid installing OpenOCD on your computer, we recommend using the pre-built version maintained by XPack. The tested and compatible version is v0.12.0-4.

Once you've downloaded and decompressed the archive corresponding to your OS, move the files/folders as follows (the term root folder refers to the folder where the easy-flash-daplink-[version]-[os] executable is located):

  • All files in the bin folder must be moved to the root folder.
  • The scripts folder in the openocd folder must be moved to the root folder

💡 The archives available in releases already contains all the files placed where they need to be.

⚠️ Mac OS X is not yet supported, but PRs are welcome 😉

💾 Bootloader & Firmware

💡 Older releases are available here: https://github.com/letssteam/DAPLink/releases

⚠️ For other targets, please go directly to the DapLink GitHub

Usage

🔌 Hardware

To enable the program to flash the bootloader, firmware and then the test program, the board must be wired to a probe (ST-Link, Black magic probe, etc.), and connected to the computer (using a micro-USB cable).

⚠️ Connect the target (STM32 Disco L475 IoTNode, STM32 Nucleo WB55, ...) to your computer after wiring and connecting the probe to your computer

STeaMi

STM32 Disco L475 IoTNode

STM32 Nucleo WB55

💻 Software

The program offer a simple GUI interface to select the bootload and the firmware that will be flashed on the STM32F1x.

  1. Select files you downloaded from requirements
    1. The bootloader binary file to flash (e.g: stm32f103xb_bl.bin)
    2. The firmware binary file to flash (e.g: stm32f103xb_stm32l475vg_if.bin)
    3. (optionnal) The program binary file to flash (you can find test program in test bin folder)
  2. Set the target mount point name (e.g: DIS_L4IOT, DAPLINK, STEAMI...)
  3. Define the timeout mount point waiting (e.g: 10), in seconds
  4. Push the "Start" button.

💡 Pro tips: All inputs are saved for the next time you will open the tool !

🦀 Run from sources

  1. Install rust
  2. Clone or download this repository git clone https://github.com/steamicc/DapLink-EasyFlash.git
  3. Enter in project folder cd DapLink-EasyFlash
  4. Run cargo run from the project root.

Test files

In the test bin folder, you can find some simple programs for targets.

test-l475.bin

It blinks the LEDs, LD1 and LD2, in two different patterns.

test-wb55.bin

Toggles between high and low states of pins PC10 and PC12. (The video is the result on the STeaMi board).

About

Easy DAPLink firmware flashing tool for STM32 boards

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages