From 746ba53dab8dbbc64f32df89de5de15738b58cba Mon Sep 17 00:00:00 2001 From: therobs12 Date: Wed, 25 Sep 2024 13:32:40 +0800 Subject: [PATCH] Update stabilizer.md --- src/hw/stabilizer.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/hw/stabilizer.md b/src/hw/stabilizer.md index d5c59b0..74df2f9 100644 --- a/src/hw/stabilizer.md +++ b/src/hw/stabilizer.md @@ -62,8 +62,10 @@ With newer firmware with USB serial console: 1. Connect the Stabilizer to power. 2. Connect USB cable to the Stabilizer. -3. Run ``python -m serial /dev/ttyACM0`` to connect the serial port using ``pyserial``. -4. Input ``platform dfu`` in the console. +3. Run ``nix-shell -p python312Packages.pyserial``. +4. Run ``python -m serial /dev/ttyACM0`` to connect the serial port using ``pyserial``. +5. Input ``platform dfu`` in the console. +6. Run ``nix-shell -p dfu-util``. And for both: @@ -71,7 +73,7 @@ And for both: 6. Flash the device with the following command: ``` -dfu-util -a 0 -s 0x08000000:leave -R -D dual-iir.bin +dfu-util -a 0 -s 0x08000000:leave -R -D stabilizer-dual-iir.bin ``` 7. Look for "File downloaded successfully".