Firmware for Battman BMS
Switch branches/tags
Nothing to show
Clone or download
Latest commit 0955b03 Dec 7, 2017
Permalink
Failed to load latest commit information.
ChibiOS_16.1.4 Major feature implementation: Charging, balancing, precharge, RTCC Nov 24, 2016
infinibatt-library @ b3c22ab Config works! Nov 28, 2016
.gitignore Current monitor interrupt and started SOC module Dec 5, 2016
.gitmodules Framework overhaul Nov 2, 2016
LICENSE Update LICENSE Oct 18, 2016
Makefile Current monitor interrupt and started SOC module Dec 5, 2016
README.md Update README.md Dec 7, 2017
STM32F303xC.ld Custom bootloader Nov 26, 2016
accessory.c Major feature implementation: Charging, balancing, precharge, RTCC Nov 24, 2016
accessory.h Obnoxious buzzer Nov 16, 2016
analog.c Testing changes Jun 4, 2017
analog.h Major feature implementation: Charging, balancing, precharge, RTCC Nov 24, 2016
buzzer.c Obnoxious buzzer Nov 16, 2016
buzzer.h Obnoxious buzzer Nov 16, 2016
charger.c Testing changes Jun 4, 2017
charger.h Major feature implementation: Charging, balancing, precharge, RTCC Nov 24, 2016
chconf.h ChibiOS upgrade and added USB serial interface Oct 24, 2016
comm_can.c Framework overhaul Nov 2, 2016
comm_can.h Framework overhaul Nov 2, 2016
comm_usb.c Testing changes Jun 4, 2017
comm_usb.h Custom bootloader Nov 26, 2016
config.c Testing changes Jun 4, 2017
config.h Config works! Nov 28, 2016
console.c Testing changes Jun 4, 2017
console.h ChibiOS upgrade and added USB serial interface Oct 24, 2016
current_monitor.c Current monitor interrupt and started SOC module Dec 5, 2016
current_monitor.h Current monitor interrupt and started SOC module Dec 5, 2016
datatypes.h More config Nov 28, 2016
eeprom.c Framework overhaul Nov 2, 2016
eeprom.h Custom bootloader Nov 26, 2016
faults.c Major feature implementation: Charging, balancing, precharge, RTCC Nov 24, 2016
faults.h Major feature implementation: Charging, balancing, precharge, RTCC Nov 24, 2016
fw_conf.h Testing changes Jun 4, 2017
fw_updater.c Custom bootloader Nov 26, 2016
fw_updater.h Custom bootloader Nov 26, 2016
gpio.c Testing changes Jun 4, 2017
gpio.h added hw_conf Aug 27, 2016
halconf.h Current monitor interrupt and started SOC module Dec 5, 2016
hw_conf.h Testing changes Jun 4, 2017
hw_conf_v3.0.h Framework overhaul Nov 2, 2016
hw_conf_v4.0.h Framework overhaul Nov 2, 2016
hw_conf_v4.1.h Major feature implementation: Charging, balancing, precharge, RTCC Nov 24, 2016
hw_conf_v4.2.h Add hw_conf Jul 12, 2017
led_rgb.c Obnoxious buzzer Nov 16, 2016
led_rgb.h Add 4.0 support Oct 23, 2016
ltc6803.c Testing changes Jun 4, 2017
ltc6803.h Testing changes Jun 4, 2017
main.c Current monitor interrupt and started SOC module Dec 5, 2016
mcuconf.h Major feature implementation: Charging, balancing, precharge, RTCC Nov 24, 2016
packet.c More config Nov 28, 2016
packet.h Custom bootloader Nov 26, 2016
power.c Testing changes Jun 4, 2017
power.h Power-on and shutdown delays Nov 10, 2016
rtcc.c Current monitor interrupt and started SOC module Dec 5, 2016
rtcc.h Major feature implementation: Charging, balancing, precharge, RTCC Nov 24, 2016
soc.c Current monitor interrupt and started SOC module Dec 5, 2016
soc.h Current monitor interrupt and started SOC module Dec 5, 2016
stm32f30x_conf.h Major feature implementation: Charging, balancing, precharge, RTCC Nov 24, 2016
ws2812b.c Major feature implementation: Charging, balancing, precharge, RTCC Nov 24, 2016
ws2812b.h Major feature implementation: Charging, balancing, precharge, RTCC Nov 24, 2016

README.md

Battman Firmware

Firmware for the "battman" battery management system.

Setup

Clone repository.

git clone https://github.com/raphaelchang/battman-firmware.git

Compiling

You'll need to install the following gcc arm cross compiler.

Mac OS

brew tap PX4/homebrew-px4
brew update
brew install gcc-arm-none-eabi

Ubuntu

sudo apt-get install gcc-arm-none-eabi

To build the files, navigate to the root of the repository and run the following:

make

Programming

You'll need to install dfu-util v0.9 or higher.

Mac OS

On Mac, the homebrew version is adequate.

brew install dfu-util

Ubuntu

On Ubuntu 14.04, dfu-util must be installed from source. See instructions here: http://dfu-util.sourceforge.net/build.html.

Uploading code

  1. Plug in Battman to computer via USB.
  2. Ensure that nothing is connected to the discharge output of the BMS.
  3. Enable bootloader mode by reseting the board while the bootloader button is held down.
  4. Ensure that no other boards are connected that are also in bootloader mode.
  5. Run the following to build and upload the code. make upload