stabilizer: how to clear usb settings

This commit is contained in:
mwojcik 2024-06-20 13:21:57 +08:00
parent ea1b0b5c56
commit 2777676057
1 changed files with 13 additions and 0 deletions

View File

@ -78,6 +78,19 @@ dfu-util -a 0 -s 0x08000000:leave -R -D dual-iir.bin
For normal usage, the stabilizer must be configured with USB console later (try ``help`` command first), to set its IP address and MQTT broker address. However, for general testing (like the one below), you don't need to configure it any further.
### Clearing settings
In case someone sets some setting wrongly, or updates the firmware and suddenly there's an incompatibility, you may find (firmware, not yourself) in a state of panic, where it will not allow you to change the settings back.
1. Get into DFU mode (described above), probably with jumper method.
2. Use dfu-util to clear the flash completely:
```
dfu-util -a 0 -s 0x08000000:mass-erase:force:leave
```
3. Reflash the target firmware.
## Testing
1. Ensure that the [firmware](#getting-the-firmware) has been flashed onto the Stabilizer