stabilizer: how to clear usb settings #21

Merged
esavkin merged 1 commits from mwojcik/assembly:stabilizer-clear-settings into master 2024-06-20 13:25:57 +08:00
1 changed files with 13 additions and 0 deletions
Showing only changes of commit 2777676057 - Show all commits

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. 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 ## Testing
1. Ensure that the [firmware](#getting-the-firmware) has been flashed onto the Stabilizer 1. Ensure that the [firmware](#getting-the-firmware) has been flashed onto the Stabilizer