Skip to content

Flashing a hotspot

Building the firmware

  1. Change directories to the firmware folder with
    cd /opt/centrunk/dvmfirmware-hs
    
  2. Build the firmware binary
    sudo make -f Makefile.STM32FX mmdvm-hs-hat-dual
    

Info

Depending on the performance of your Raspberry Pi or PC, this step can take a while.

  1. Change directories to the firmware folder with
    cd /opt/centrunk/dvmfirmware-hs
    
  2. Build the firmware binary
    1. Generic STM32 Board
      sudo make -f Makefile.STM32F4
      
    2. Repeater Builder Board
      sudo make -f Makefile.STM32F4_POG
      
    3. WA0EDA V3 cards
      sudo make -f Makefile.STM32F4_EDA
      

    Info

    Depending on the performance of your Raspberry Pi or PC, this step can take a while.

Flashing the board

You can flash the hotspot with a USB adapter board (recommended) or directly on the GPIO pins of a Raspberry Pi.

Flash with the following command while hat is on the USB Adapter Board. Set the adapter switch to position B or ‘ON’, and plug the adapter board into the Pi. Run the command:

sudo stm32flash -v -w dvm-firmware-hs_f1.bin /dev/ttyUSB0

  1. Using jumper wires, connect the sockets of BOOT 1 and BOOT 2 as shown on the image. Jumper wires

Danger

Make sure the wires are not touching each other!

  1. With the jumpers connected, press the reset button on the board to put it into programming mode.
  2. Flash the board:
    sudo stm32flash -v -w dvm-firmware-hs_f1.bin -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0
    
  3. Once the board is completely flashed, remove the jumpers added in step 1. This can be confirmed with a 100% progress and a success message in the command line window.
  4. The board should be ready to go. If unsuccessful, rinse and repeat the steps in this section.

Flash the board with the following commands:

Repeater Builder Board

sudo stm32flash -v -w dvm-firmware_f4-pog.bin -g 0x0 -i 20,-21,21:-20,21 /dev/ttyAMA0

This is unconfirmed at this time.

WA0EDA V3 Cards

sudo stm32flash -v -w dvm-firmware-eda.bin -g 0x0 -i 20,-21,21:-20,21 /dev/ttyAMA0

These boards may still have a Boot 0 and Boot 1 pin that need to be jumped like a normal hotspot.

Generic STM32F4 Board

sudo stm32flash -v -w dvm-firmware_f4.bin -g 0x0 -i 20,-21,21:-20,21 /dev/ttyAMA0