Skip to content

Commit b5e5c08

Browse files
deadprogramconejoninja
authored andcommitted
boards: add flashing info using dfu-util for STM32F405
Signed-off-by: deadprogram <ron@hybridgroup.com>
1 parent eb89528 commit b5e5c08

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

content/microcontrollers/feather-stm32f405.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,35 @@ The [Adafruit Feather STM32F405](https://www.adafruit.com/product/4382) is a tin
2222

2323
## Flashing
2424

25+
Flashing this board using its DFU bootloader can be a bit cumbersome (see Adafruit docs at https://learn.adafruit.com/adafruit-stm32f405-feather-express/dfu-bootloader-details), but it is possible - without requiring an external programmer - by pulling the B0 pin high (you can use the board's 3.3V output pin) at bootup when connected to host PC via USB. This puts the device in bootloader mode.
26+
27+
Once in bootloader mode, the device can be programmed using the open-source tool `dfu-util`.
28+
2529
### CLI Flashing on Linux
2630

27-
Goes here
31+
You must first install the `dfu-util` program in order to flash the Adafruit Feather STM32F405 board.
32+
33+
sudo apt update
34+
sudo apt install dfu-util
2835

2936
### CLI Flashing on macOS
3037

31-
Goes here
38+
You must first install the `dfu-util` program in order to flash the Adafruit Feather STM32F405 board. You can do this using Homebrew on macOS:
39+
40+
brew install dfu-util
3241

3342
### CLI Flashing on Windows
3443

35-
Goes here
44+
You must first install the `dfu-util` program in order to flash the Adafruit Feather STM32F405 board.
45+
46+
- Download dfu-util from the website here: http://dfu-util.sourceforge.net/releases/dfu-util-0.9-win64.zip
47+
- Decompress the files to a directory such as `C:\dfu-util`
48+
- Add `C:\dfu-util` to your `PATH`.
3649

3750
### Troubleshooting
3851

39-
Goes here
52+
If you run into trouble getting dfu-util installed and working on Windows, see the blog post at https://www.hanselman.com/blog/HowToFixDfuutilSTMWinUSBZadigBootloadersAndOtherFirmwareFlashingIssuesOnWindows.aspx
53+
4054

4155
## Notes
4256

0 commit comments

Comments
 (0)