Skip to content

Commit 8de2f34

Browse files
authored
Add flashing instructions to README
Added instructions for flashing firmware using both UI and command line methods, including verification steps.
1 parent 75a7eb7 commit 8de2f34

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,29 @@ FALCON uses Zephyr's workspace management and meta-tool, [west](https://docs.zep
2727

2828
For a nice UI based developer experience, use VS Code with the 'Zephyr IDE Extension Pack' extension
2929

30+
## Flashing the Firmware
31+
1. To flash the main rocket firmware, ensure the ubcrocket_polarity flight controller board is plugged in to the computer through an ST-Link, and is powered
32+
33+
**UI Method**
34+
35+
2. Open the FALCON directory in vscode
36+
3. Open the Zephyr IDE extension (the one with the bird)
37+
4. Ensure the "firmware" project is selected
38+
5. Click "Build Pristine" near the bottom of extension
39+
6. Click "Flash"
40+
41+
**Command Line Method**
42+
43+
2. cd into FALCON dir
44+
3. run `source .venv/bin/activate`
45+
4. cd into "app" dir: `cd app`
46+
5. run `west build -b ubcrocket_polarity firmware -p`
47+
6. run `west flash`
48+
49+
**Verification**
50+
51+
Both of these methods can be verified by opening a serial monitor to the port with a baud rate of 115200. When flashing, you should see some logs print that start up each thread, verify that the SD card was properly mounted, and verify that the sensors initiated successfully.
52+
3053
## Zephyr VSCode Setup
3154
TODO
3255

0 commit comments

Comments
 (0)