Skip to content

BMS Initial Flashing

Flashing of the STM32 is performed with the Debugger.

  • Unzip the release.zip file to the desktop or a temporary folder.
  • Connect the Debugger flat wire cable to the BMS and the USB port of the PC
  • Attach power supply to the BMS (24V @battery connetions)
  • Open/Double-click 1-open_console-miniterm.bat to monitor the application execution output.
    Select the port of the debugger, e.g. STLink at COM1: 1
  • Open/Double-click 2-flash-bms_<**hardwar_version**>_selftest.bat to call the flash process with the selftest application
    (!Caution!: Hardware version must match the physical board revision!)
    Flashing takes some seconds, the STMProgrammer will close after the upload (green bar), maybe an error is printed
  • Restart the board (button press, power supply re-attach, ...)

Info

Manual Process : Use the .hex file of the Board and Software, apply to the script: scripts/flash-bms.bat
(e.g., via Drag-and-Drop, or as parameter in a console call)
The STMProgrammer / A terminal will open.