36 Commits

Author SHA1 Message Date
jazzpi
9c1d743bfd Explain clock synchronization mechanism 2022-08-03 00:52:28 +02:00
jazzpi
76427bdede Add second stage to frequency hopping 2022-08-02 23:28:16 +02:00
jazzpi
03080cd69a Frequency hopping using master heartbeats 2022-08-02 21:18:22 +02:00
jazzpi
9fb5e145ad Enable automatic Bus-Off management 2022-08-02 21:14:59 +02:00
jazzpi
2f267110a9 TimeSync -> ClockSync 2022-08-02 19:11:31 +02:00
jazzpi
29e15fc0f7 Trim HSI until time sync packets are received 2022-07-31 12:09:55 +02:00
jazzpi
171d3e40cd Use HSI with CAN-based time synchronization 2022-07-31 00:54:36 +02:00
jazzpi
dc40179461 Enable automatic retransmission for CAN 2022-07-30 20:06:27 +02:00
jazzpi
8b8b2f10f0 Fix CubeMX Init function generation order
The previous generation order broke UART DMA. See
https://community.st.com/s/question/0D53W00001EzCmCSAV/mxdmainit-order-in-the-mainc-file-generated-by-stm32cubemx-how-to-fix
2022-07-30 20:02:22 +02:00
jazzpi
9cd8df92a3 Use HSE 2022-07-29 01:52:40 +02:00
jazzpi
bf79b35967 event fixes 2022-07-20 12:44:20 +02:00
jazzpi
da5118c73b Perform error checks _after_ one second 2022-07-19 19:34:25 +02:00
jazzpi
93bd0dfe76 Ignore temperature readings of 0x7FF 2022-07-19 19:34:09 +02:00
jazzpi
5213a41174 Working version 2022-07-18 16:53:52 +02:00
jazzpi
0fa19004d3 Use DMA for TMP144 communication 2022-06-24 09:35:47 +02:00
jazzpi
2c4a428534 Implement simple fan control 2022-06-24 04:38:23 +02:00
jazzpi
405b255936 Send AMS Errors 2022-06-24 04:38:00 +02:00
jazzpi
c8d6894e4b Implement TMP144 timeout 2022-06-24 04:36:31 +02:00
jazzpi
ec1383960b Use new AMS CAN interface 2022-06-23 14:55:10 +02:00
jazzpi
2acde9d565 Save all measured temperatures 2022-06-23 14:24:08 +02:00
jazzpi
e58b9ffae0 Move main UART RX callback to main.c 2022-06-23 13:05:39 +02:00
jazzpi
839a9a930a Continue balancing on fault 2022-06-23 12:48:06 +02:00
jazzpi
8f0e661e18 Fix BQ initialization 2022-06-23 12:41:46 +02:00
jazzpi
9f69121203 Change AMS CAN to 500kbaud 2022-06-23 12:08:22 +02:00
jazzpi
d54635c17e Transmit BQ CRC big-endian 2022-06-23 12:07:18 +02:00
jazzpi
705b9da821 Implement fan PWM 2022-06-14 00:44:46 +02:00
jazzpi
bf08863de8 Implement EEPROM bytewise read/write 2022-06-12 21:05:42 +02:00
jazzpi
63107dc35c Limit main loop to 10 Hz 2022-06-12 21:04:04 +02:00
jazzpi
36c6bf2997 Move doc comments to header 2022-06-12 15:22:10 +02:00
jazzpi
e503dbe632 Store details for BQ errors 2022-06-12 14:44:37 +02:00
jazzpi
6986e5dd3b Use status LEDs 1 & 2 2022-06-12 13:37:28 +02:00
jazzpi
69645deb32 Get BQ communication to work 2022-06-12 00:00:42 +02:00
jazzpi
033e3c3dde Fix STM config for Slave v3 2022-06-11 23:59:32 +02:00
jazzpi
94ab7d4237 CRLF -> LF 2022-06-11 23:57:07 +02:00
jazzpi
81177c74fe Remove calloc/free calls 2022-06-09 16:35:05 +02:00
jazzpi
6defd164b9 Recreate project for CubeMX/STM32forVSCode 2022-06-09 16:33:57 +02:00