Before you start
- Get the latest .hex file from here.
- Turn ProgArm on and switch the SW2 to Flashing Mode.
- Press and hold Reset button for more than 300 ms. This will put the device into Flashing Mode.
- Follow the instructions below.
GNU/Linux
- Use any bluetooth manager to establish bluetooth connection. If you have no bluetooth manager try blueman!
- Download and install stm32flash.
- Upload firmware using this command:
stm32flash -b 38400 -w ProgArm-Firmware.hex /dev/rfcomm0
- If the command above requires root privileges, then your user is not in the dialout group. It is highly recommended to be in
dialout
group, although not obligatory for flashing process. If adding your user to dialout group (and rebooting) didn't help, check sudo lsof /dev/rfcomm0
. If you see ModemManager in the output, then try killing it.
Windows
- Use standard Windows bluetooth manager to connect to the device. Let Windows to automatically install drivers for Serial-Over-Bluetooth interface.
- Download and install STM32 Flash Loader Demonstrator.
- Use Device Manager to see what numbers do HC-05 virtual com ports have. The port with lower number is main Tx/Rx port
- Configure the app as following:
- Port name: Your port number
- Baud rate: 38400
- Data bits: 8
- Parity: even
- Echo: disabled
- Timeout: can be any (I use 3s)
- Click Next, choose your memory size and load .hex file to the STM32.