examples/device/dfu_runtime/README.md
A minimal device that exposes a DFU runtime interface, advertising to the host that it can be switched into DFU (bootloader) mode.
| Interface | Class driver |
|---|---|
| 0 | DFU Runtime |
Notable tusb_config.h settings:
#define CFG_TUD_DFU_RUNTIME 1
CMake:
mkdir build && cd build
cmake -DBOARD=raspberry_pi_pico ..
cmake --build .
Make:
make BOARD=raspberry_pi_pico all
List the device; it appears in Runtime mode:
dfu-util -l
Request a switch to DFU mode:
dfu-util -e
This sends a DETACH request. Since the example is minimal it does not enter a real bootloader; it instead changes the LED to a fast blink as confirmation.