A.k.a the AMS
- Install STM32CubeIDE
- Install STM32CubeProgrammer
- Install STM32CubeMX
- ST-LINK/V2
Note: Lots of the code is prewritten after setting up the project
- main.c and main.h
- 6811.c and 6811.h: contains the methods mostly written by analog devices
- balance.c and balance.h: conatins the cell balancing code
- can.c and can.h: contains the code to send CAN bus messages
- module.c and module.h: conatins the code to read voltages (Volt) and to read temperatures (Celsius)
- print.c and print.h: contains the methods for printing over serial
- safety.c and safety.h: conatins the code for cell summary, faults, warnings, and state
The #defines are in the files listed below, and the picture show what can be modified
main.h:
6811.c:
module.c:
safety.c:
can.c: