From 102cc06db65d964836d80398a71c614d41a44dcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20J=C3=B6rdens?= Date: Fri, 7 Jun 2019 10:17:50 +0200 Subject: [PATCH] README: more dfu util usage instructions thanks to airwoodix --- README.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 417605e..3dad5b9 100644 --- a/README.md +++ b/README.md @@ -57,16 +57,15 @@ See https://github.com/sinara-hw/Stabilizer ### Using USB-DFU +* Install the DFU USB tool (`dfu-util`) * Connect to the Micro USB connector below the RJ45 -* Configure the BOOT pins -* Install the DFU USB tool -* **TBD** +* Short JC2/BOOT +* `cargo objcopy --release --bin stabilizer -- -O binary stabilizer.bin` or `arm-none-eabi-objcopy -O binary target/thumbv7em-none-eabihf/release/stabilizer stabilizer.bin` +* `dfu-util -a 0 -s 0x08000000:84092 -D stabilizer.bin` where 84092 is the size of the binary ### Using ST-Link virtual mass storage -* `arm-none-eabi-objcopy -O binary - target/thumbv7em-none-eabihf/release/stabilizer - stabilizer.bin` +* `cargo objcopy --release --bin stabilizer -- -O binary stabilizer.bin` or `arm-none-eabi-objcopy -O binary target/thumbv7em-none-eabihf/release/stabilizer stabilizer.bin` * Connect the ST-Link debugger * copy `stabilizer.bin` to the `NODE_H743ZI` USB disk