MMDVM Duplex Hat Firmware Upgrade via SSH on Pi-Star
· 2 min read
This guide walks you through upgrading the firmware on your MMDVM Duplex Hat to the latest version using SSH on Pi-Star.
Step 1: SSH into Pi-Star
Open Advanced → SSH Access in the Pi-Star web interface, then log in:
pi-star@pi-star:~$
Step 2: Download the Latest Firmware
Download the latest MMDVM duplex hat firmware from WPSD:
cd /tmp
wget https://wpsd-swd.w0chp.net/WPSD-SWD/WPSD-Binaries/raw/branch/master/firmware/mmdvm_hs_dual_hat_fw.bin
You should see a successful download:
mmdvm_hs_dual_hat_fw.bin 100%[===========>] 54.59K 238KB/s in 0.2s
2024-03-22 08:18:12 (238 KB/s) - 'mmdvm_hs_dual_hat_fw.bin' saved [55904/55904]
Step 3: Flash the Firmware
First stop the MMDVMHost service, then flash:
sudo killall MMDVMHost
sudo stm32flash -R -w mmdvm_hs_dual_hat_fw.bin /dev/ttyAMA0
You should see output like:
stm32flash 0.5
http://stm32flash.sourceforge.net/
Using Parser : Raw BINARY
Interface serial_posix: 57600 8E1
Version : 0x22
Option 1 : 0x00
Option 2 : 0x00
Device ID : 0x0410 (STM32F10xxx Medium-density)
- RAM : Up to 20KiB (512b reserved by bootloader)
- Flash : Up to 128KiB (size first sector: 4x1024)
Option RAM : 16b
System RAM : 2KiB
Write to memory
Erasing memory
Wrote address 0x0800da60 (100.00%) Done.
Step 4: Verify the Upgrade
Run the modem detection tool to confirm the new firmware version:
sudo wpsd-detectmodem
Expected output:
Detected MMDVM_HS Port: /dev/ttyAMA0 (GPIO) Baud: 115200 Protocol: V1
Modem Data: MMDVM_HS_Dual_Hat-v1.6.1 20231115_WPSD 14.7456MHz dual ADF7021
FW by CA6JAU, G4KLX, W0CHP.
What This Does
| Item | Detail |
|---|---|
| Firmware file | mmdvm_hs_dual_hat_fw.bin (MMDVM Duplex Hat) |
| Flash tool | stm32flash |
| Target device | STM32F10xxx Medium-density |
| Port | /dev/ttyAMA0 (GPIO serial) |
| Baud rate | 57600 (serial), 115200 (modem) |
Tip: If you are using a simplex hat, use
mmdvm_hs_hat_fw.bininstead. For the duplex hat, always usemmdvm_hs_dual_hat_fw.bin.
Reference: WPSD Firmware Repository
