Use nested items for stabilizer instructions

Signed-off-by: Egor Savkin <es@m-labs.hk>
This commit is contained in:
Egor Savkin 2024-09-25 13:45:36 +08:00
parent 7dfe91b523
commit 1f4652c904

View File

@ -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. 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. 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.
1. Have the Stabilizer disconnected from power. 2. Use a jumper of some sort to short BOOT pins on the board.
2. Use a jumper of some sort to short BOOT pins on the board. 3. Turn on the power.
3. Turn on the power. 4. You can remove the jumper after few seconds.
4. You can remove the jumper after few seconds. 2. With newer firmware with USB serial console:
1. Connect the Stabilizer to power.
With newer firmware with USB serial console: 2. Connect USB cable to the Stabilizer.
3. Ensure you have `pyserial` module either with `nix-shell -p python312Packages.pyserial` for NixOS users
1. Connect the Stabilizer to power. or using `pip install pyserial` if you are using venv.
2. Connect USB cable to the Stabilizer. 4. Run `python -m serial /dev/ttyACM0` to connect the serial port using `pyserial`.
3. Ensure you have `pyserial` module either with `nix-shell -p python312Packages.pyserial` for NixOS users 5. Input `platform dfu` in the console.
or using `pip install pyserial` if you are using venv. 3. Once the device is now in DFU mode, flash the device with the following command (needs `nix-shell -p dfu-util`):
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`):
``` ```
dfu-util -a 0 -s 0x08000000:leave -R -D stabilizer-dual-iir.bin 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), 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 to set its IP address and MQTT broker address. However, for general testing (like the one below), you don't need to