Skip to content

Instantly share code, notes, and snippets.

@kc1awv
Last active March 25, 2021 20:46
Show Gist options
  • Save kc1awv/455cee6f8257ba752fc24e7f8aa08ae7 to your computer and use it in GitHub Desktop.
Save kc1awv/455cee6f8257ba752fc24e7f8aa08ae7 to your computer and use it in GitHub Desktop.
MMDVM Firmware - M17 Branch
# Update host
sudo apt update
sudo apt upgrade
sudo reboot
# Install prerequisites
sudo apt install gcc-arm-none-eabi \
binutils-arm-none-eabi \
libusb-1.0-0 \
libusb-1.0-0-dev \
libusb-1.0-0-doc \
libnewlib-arm-none-eabi \
git \
make \
curl \
python-pip \
gcc-arm-none-eabi \
libstdc++-arm-none-eabi-newlib \
stm32flash
# Clone MMDVM Firmware - M17_AX25_FM Branch
git clone -b M17_AX25_FM https://github.com/g4klx/MMDVM.git
cd MMDVM
# Build Firmware
git submodule init
git submodule update
make -f Makefile dvm
# Flash MMDVM Firmware to STM32 DVM USB
- put STM32 DVM USB into Bootloader mode by removing the USB cable, bridging JP1, then reattaching the USB cable
- JP1 can be shorted by soldering header pins in and installing a jumper, or by using something like tweezers or a wire
- PWR, ACT and DMR should be lit solid, NOT flashing!
If the LEDs are NOT in this configuration, STOP!! Re-do the short/power-on procedure described above until they are.
sudo stm32flash v -w bin/mmdvm_f4.hex -R /dev/ttyUSB0
- Output should be similar to the following:
stm32flash 0.5
http://stm32flash.sourceforge.net/
Interface serial_posix: 57600 8E1
Version : 0x31
Option 1 : 0x00
Option 2 : 0x00
Device ID : 0x0421 (STM32F446xx)
- RAM : 128KiB (12288b reserved by bootloader)
- Flash : 512KiB (size first sector: 1x16384)
- Option RAM : 16b
- System RAM : 30KiB
Write to memory
Erasing memory
Wrote and verified address 0x0800fec8 (100.00%) Done.
- The flash process should take a few minutes or so. If not, then you may have flashed the wrong file and should
start the flash over again.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment