Skip to content
Snippets Groups Projects
Commit 2c72ae5c authored by Damien George's avatar Damien George
Browse files

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.
parent f0e2d13f
No related branches found
No related tags found
No related merge requests found
...@@ -130,7 +130,7 @@ The STM version ...@@ -130,7 +130,7 @@ The STM version
The "stmhal" port requires an ARM compiler, arm-none-eabi-gcc, and associated The "stmhal" port requires an ARM compiler, arm-none-eabi-gcc, and associated
bin-utils. For those using Arch Linux, you need arm-none-eabi-binutils and bin-utils. For those using Arch Linux, you need arm-none-eabi-binutils and
arm-none-eabi-gcc packages from the AUR. Otherwise, try here: arm-none-eabi-gcc packages. Otherwise, try here:
https://launchpad.net/gcc-arm-embedded https://launchpad.net/gcc-arm-embedded
To build: To build:
...@@ -146,9 +146,6 @@ Then to flash the code via USB DFU to your device: ...@@ -146,9 +146,6 @@ Then to flash the code via USB DFU to your device:
$ make deploy $ make deploy
You will need the dfu-util program, on Arch Linux it's dfu-util-git in the This will use the included `tools/pydfu.py` script. If flashing the firmware
AUR. If the above does not work it may be because you don't have the does not work it may be because you don't have the correct permissions, and
correct permissions. Try then: need to use `sudo make deploy`.
$ sudo dfu-util -a 0 -d 0483:df11 -D build-PYBV10/firmware.dfu
...@@ -25,8 +25,8 @@ USBDEV_DIR=usbdev ...@@ -25,8 +25,8 @@ USBDEV_DIR=usbdev
FATFS_DIR=lib/fatfs FATFS_DIR=lib/fatfs
DFU=../tools/dfu.py DFU=../tools/dfu.py
# may need to prefix dfu-util with sudo # may need to prefix dfu-util with sudo
USE_PYDFU ?= 0 USE_PYDFU ?= 1
PYDFU = ../tools/pydfu.py PYDFU ?= ../tools/pydfu.py
DFU_UTIL ?= dfu-util DFU_UTIL ?= dfu-util
DEVICE=0483:df11 DEVICE=0483:df11
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment