-
Notifications
You must be signed in to change notification settings - Fork 9
Using HF2 HID
Mike Walters edited this page May 4, 2020
·
2 revisions
HF2 is a protocol for flashing binaries using USB-HID.
One big advantage with HID compared to MSC is that it usually doesn't require privileges to use, and doesn't require knowledge about where the MSC is mounted. This makes it convenient to use in scripts and makefiles.
HF2 HID support is enabled by default, configured with HF2_USE_HID
.
hf2-cli is a hf2 cli written in rust that works with TinyUF2.
To use it, first install rust and cargo. Then you can install it using:
cargo install hf2-cli
hf2-cli
supports flashing binary files to any specified address. VID and PID have to be explicitly passed in the command line. To flash a binary test.bin
at 0x6000C000
:
hf2 -v 0x239a -p 0x0058 flash --file test.bin --address 0x6000C000