From 1f4652c904b790556aca693a2d05d9d8046860ba Mon Sep 17 00:00:00 2001 From: Egor Savkin Date: Wed, 25 Sep 2024 13:45:36 +0800 Subject: [PATCH] Use nested items for stabilizer instructions Signed-off-by: Egor Savkin --- src/hw/stabilizer.md | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/src/hw/stabilizer.md b/src/hw/stabilizer.md index 5ee37fd..474809e 100644 --- a/src/hw/stabilizer.md +++ b/src/hw/stabilizer.md @@ -53,26 +53,23 @@ cargo objcopy --release --bin dual-iir -- -O binary dual-iir.bin Once you have the binary, you can now flash it. -Without firmware on the device or with older firmware (without USB serial console), you need to use the jumper method: - -1. Have the Stabilizer disconnected from power. -2. Use a jumper of some sort to short BOOT pins on the board. -3. Turn on the power. -4. You can remove the jumper after few seconds. - -With newer firmware with USB serial console: - -1. Connect the Stabilizer to power. -2. Connect USB cable to the Stabilizer. -3. Ensure you have `pyserial` module either with `nix-shell -p python312Packages.pyserial` for NixOS users - or using `pip install pyserial` if you are using venv. -4. Run `python -m serial /dev/ttyACM0` to connect the serial port using `pyserial`. -5. Input `platform dfu` in the console. -6. Once the device is now in DFU mode, flash the device with the following command (needs `nix-shell -p dfu-util`): +1. Without firmware on the device or with older firmware (without USB serial console), you need to use the jumper method: + 1. Have the Stabilizer disconnected from power. + 2. Use a jumper of some sort to short BOOT pins on the board. + 3. Turn on the power. + 4. You can remove the jumper after few seconds. +2. With newer firmware with USB serial console: + 1. Connect the Stabilizer to power. + 2. Connect USB cable to the Stabilizer. + 3. Ensure you have `pyserial` module either with `nix-shell -p python312Packages.pyserial` for NixOS users + or using `pip install pyserial` if you are using venv. + 4. Run `python -m serial /dev/ttyACM0` to connect the serial port using `pyserial`. + 5. Input `platform dfu` in the console. +3. Once the device is now in DFU mode, flash the device with the following command (needs `nix-shell -p dfu-util`): ``` dfu-util -a 0 -s 0x08000000:leave -R -D stabilizer-dual-iir.bin ``` -7. Look for "File downloaded successfully". +4. Look for "File downloaded successfully". 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