Stm32 implements BMS program