From 2777676057e158ab2694d4ef6a3f27094c7715eb Mon Sep 17 00:00:00 2001 From: mwojcik Date: Thu, 20 Jun 2024 13:21:57 +0800 Subject: [PATCH] stabilizer: how to clear usb settings --- src/hw/stabilizer.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/hw/stabilizer.md b/src/hw/stabilizer.md index 887c966..a8f24ba 100644 --- a/src/hw/stabilizer.md +++ b/src/hw/stabilizer.md @@ -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