Skip to content

Commit

Permalink
stlinkv3: improve flashing documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Demin authored and dragonmux committed Aug 4, 2024
1 parent 907688b commit 36b124c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/platforms/stlinkv3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ meson setup build --cross-file=cross-file/stlinkv3.ini
meson compile -C build
```

If you are building for bootloader you need to add option `-Dbmd_bootloader=true`
```sh
meson setup build --cross-file=cross-file/stlinkv3.ini -Dbmd_bootloader=true
meson compile -C build
```


## Flashing
Easiest is using the BMP bootloader. Load the BMP firmware easiest with
scripts/stm32mem.py or dfu-utils. BMP bootloader must be flashed with SWD
Expand All @@ -65,6 +72,9 @@ Revert to original ST firmware with
`java -jar STLinkUpgrade.jar`
Try to use old version that do not disable SWD access. Expect newer ST firmware even to be more restrictive.

If you did not build with bootloader option enabled flashing this firmware will "soft" brick stlink. While the stlink v3 is plugged into usb
use tweezers to short CN4 (2 pins next to the USB connector) this will force bootloader mode. On STLINK-V3MINIE version its TP1 and TP2 on the bottom.

## What remains to be done?

- Improve and document LED indication
Expand Down

0 comments on commit 36b124c

Please sign in to comment.