example for dfu-utils

This commit is contained in:
Peter D. Gray 2023-12-15 11:07:22 -05:00
parent 9367098259
commit 2f369e1d38
No known key found for this signature in database
GPG Key ID: A2DCD558C2BE5D7C

View File

@ -29,11 +29,15 @@ dfu-up: dev.dfu
up2: dev.dfu
$(PYTHON_DO_DFU) -u dev.dfu
# Super fast, assumes Coldcard already attached and unlock on this Mac.
# Super fast, assumes Coldcard already attached and unlocked on this Mac.
up: dev.dfu
cp dev.dfu /Volumes/COLDCARD/.
diskutil eject /Volumes/COLDCARD
# Slowest DFU, but easier w/ stock tools
dfu-slow: dev.dfu
dfu-util -d 0483:df11 -a 0 -D $< -R
# Fairly fast, assumes openocd already running, and its current directory is here.
ocp-up: dev.dfu
echo "load_image dev.dfu $(FIRMWARE_BASE) bin; reset run" | nc localhost 4444