Building and flashing the firmware
You don't have to solder in the H-Bridge or any other connectors (expect the Power connectors P3 and P6) to flash the firmware.
Install prerequisites (I used a minimal debain install, so you might have some of them already installed):
Code:
sudo apt install git python3 python3-serial make gcc-arm-none-eabi usbutils dfu-util
Clone the github repository (I used the repo from freak, since it has the latest updates, even though they link to rene's repo in their documentation):
Code:
git clone https://github.com/freakontrol/stmbl.git
cd stmbl/
Build the firmware:
Code:
make clean
make
make binall
Flash the HV controller: Connect a USB cable to the USB port on the HV side (this is the only time you should connect a USB cable to the HV side). Short the Boot jumper near the STM32F3 with a small screwdriver and provide 24V DC to P6. The controller should show up in lsusb:
Code:
Bus 001 Device 003: ID 0483:df11 STMicroelectronics STM Device in DFU Mode
If the controller does not show up, make sure you have contact with the boot jumper. Also try to flip the USB cable.
Flash the firmware with
Code:
sudo make f3_all_btburn
Flash the LV controller: Repeat the steps above on the LV side (connect USB cable, short boot pins on LV side near the STM32F4, provide 24V DC to P3, check for the controller using lsusb)
Flash the firmware with
Code:
sudo make all_btburn
The LV controller should reconnect and show up as
Code:
Bus 001 Device 005: ID 0483:5740 STMicroelectronics Virtual COM Port