Skip to content

Commit

Permalink
Information on bookworm GPIO numbers for Pis.
Browse files Browse the repository at this point in the history
  • Loading branch information
W3AXL authored Aug 25, 2024
1 parent c45ec69 commit 251cfd4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,13 @@ Next, you will need to disable bluetooth on the board. Edit ```/boot/config.txt`

> Most sets of instructions reccomend to download stm32flash from online, however we have found the prepackaged version to work fine.
Once the hotspot is back on, navigate to the build folder where you compiled the firmware. Put a jumper across the J1 points on the board, and the RED heartbeat LED should stop flashing. Run the below command to flash.
Once the hotspot is back on, navigate to the build folder where you compiled the firmware. Put a jumper across the J1 points on the board, and the RED heartbeat LED should stop flashing. Run the below command to flash. Sudo is required on most systems to access GPIO pins.

```stm32flash -v -w dvm-firmware-hs_f1.bin -i 20,-21,21,-20 -R /dev/ttyAMA0```
```sudo stm32flash -v -w dvm-firmware-hs_f1.bin -i 20,-21,21,-20 -R /dev/ttyAMA0```

Note that on newer raspbian versions, the way GPIO chips are numbered has changed. If you're using raspbian bookworm (debian 12) or greater, use this command instead:

```sudo stm32flash -v -w dvm-firmware-hs_f1.bin -i 532,-533,533,-520 -R /dev/ttyAMA0```

You should see the below output if the board flashed successfully.
```
Expand Down

0 comments on commit 251cfd4

Please sign in to comment.