Skip to content

Commit 2c72ae5

Browse files
committed
stmhal: Switch from dfu-util to tools/pydfu.py for deflt deploy method.
tools/pydfu.py is now the recommended way of deploying a DFU file. Old behaviour of dfu-util can be obtained by passing USE_PYDFU=0 when invoking make. The main README.md file has been updated to reflect this change.
1 parent f0e2d13 commit 2c72ae5

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ The STM version
130130

131131
The "stmhal" port requires an ARM compiler, arm-none-eabi-gcc, and associated
132132
bin-utils. For those using Arch Linux, you need arm-none-eabi-binutils and
133-
arm-none-eabi-gcc packages from the AUR. Otherwise, try here:
133+
arm-none-eabi-gcc packages. Otherwise, try here:
134134
https://launchpad.net/gcc-arm-embedded
135135

136136
To build:
@@ -146,9 +146,6 @@ Then to flash the code via USB DFU to your device:
146146

147147
$ make deploy
148148

149-
You will need the dfu-util program, on Arch Linux it's dfu-util-git in the
150-
AUR. If the above does not work it may be because you don't have the
151-
correct permissions. Try then:
152-
153-
$ sudo dfu-util -a 0 -d 0483:df11 -D build-PYBV10/firmware.dfu
154-
149+
This will use the included `tools/pydfu.py` script. If flashing the firmware
150+
does not work it may be because you don't have the correct permissions, and
151+
need to use `sudo make deploy`.

stmhal/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ USBDEV_DIR=usbdev
2525
FATFS_DIR=lib/fatfs
2626
DFU=../tools/dfu.py
2727
# may need to prefix dfu-util with sudo
28-
USE_PYDFU ?= 0
29-
PYDFU = ../tools/pydfu.py
28+
USE_PYDFU ?= 1
29+
PYDFU ?= ../tools/pydfu.py
3030
DFU_UTIL ?= dfu-util
3131
DEVICE=0483:df11
3232

0 commit comments

Comments
 (0)