Files
BMU-21S-Firmware/USER/Ref/bmu-18s-firmware

BMU-18S Firmware

This repository contains the Battery Management Unit (BMU) firmware for STM32F103 (18S LFP Configuration).

Project Overview

  • Hardware: STM32F103CB, LTC6813 AFE
  • Platform: Keil MDK-ARM (uVision5)
  • OS: uC/OS-III
  • Battery Chemistry: LiFePO4 (LFP)

Features

  • Cell Voltage/Temperature monitoring and protection.
  • System Over Voltage (SOV) and Under Voltage (SUV) protection.
  • Hardware fallback SAFETY_SIGNAL for emergency protection.
  • CAN communication protocol for status and parameter management.

Build Instructions

  1. Open USER/BMU-18S_APP.uvprojx in Keil uVision5.
  2. Build Project (F7).
  3. The .hex file will be generated in USER/FLASH/obj/ and automatically converted to .bin.

Recent Modifications

  • Fixed SOV/SUV unit mismatch in CAN communication.
  • Refined Safety Signal logic with fixed, wider thresholds for hardware fallback.
  • Optimized CUV/SUV protection logic to prevent flickering during charging.
  • Updated safety thresholds for LFP chemistry (Min Cell Voltage: 2.0V).

© 2021-2026 Amogreentech Co., Ltd.