6 Commits

Author SHA1 Message Date
bastian 877508d047 Merge pull request 'feat: broadcast uaux (12V aux battery) on CAN 0x210 (SKUDAK-448)' (#1) from feat/uaux-can-broadcast into main
Build Firmware / Build stm32-teslacharger (push) Successful in 1m0s
2026-05-07 21:23:21 -04:00
Kyle 3d2dbbc709 fix: create obj/ directory before parallel build
Build Firmware / Build stm32-teslacharger (pull_request) Successful in 59s
2026-04-30 11:01:41 -04:00
Kyle 69822ca08e fix: use 'make get-deps' and 'make images' to skip host unit tests in CI
Build Firmware / Build stm32-teslacharger (pull_request) Failing after 1m0s
2026-04-30 10:40:24 -04:00
Kyle 7f1d417db6 fix: use HTTPS submodule URLs for CI (SSH has no GitHub key on runner)
Build Firmware / Build stm32-teslacharger (pull_request) Failing after 20s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-30 10:01:40 -04:00
Kyle 224e7ff286 ci: add Gitea Actions build workflow
Build Firmware / Build stm32-teslacharger (pull_request) Failing after 16s
Builds firmware on PR/push to main. Initializes libopencm3 and
libopeninv submodules then runs make. Uploads stm32_charger.bin
as a 30-day retained artifact.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-30 09:55:53 -04:00
Kyle d209a472a6 feat: broadcast uaux (12V aux battery) on CAN 0x210 (SKUDAK-448)
Adds AddSend for Param::uaux at CAN ID 0x210, bit 0, length 8, gain=10.
Transmits 12V aux battery voltage in decivolts/0.1V steps (e.g. 125 = 12.5V).
VCU reads byte 0 of 0x210 for 12V battery protection logic per SKUDAK-448.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-30 09:49:56 -04:00
3 changed files with 41 additions and 2 deletions
+36
View File
@@ -0,0 +1,36 @@
name: Build Firmware
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
build:
name: Build stm32-teslacharger
runs-on: fedora
steps:
- name: Checkout with submodules
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Build libopencm3
run: make get-deps
- name: Build firmware
run: make directories && make images -j$(nproc)
- name: Show binary size
run: ls -lh stm32_charger.bin
- name: Upload binary
uses: actions/upload-artifact@v3
with:
name: stm32-teslacharger-${{ github.sha }}
path: stm32_charger.bin
retention-days: 30
+2 -2
View File
@@ -1,6 +1,6 @@
[submodule "libopencm3"] [submodule "libopencm3"]
path = libopencm3 path = libopencm3
url = git@github.com:jsphuebner/libopencm3.git url = https://github.com/jsphuebner/libopencm3.git
[submodule "libopeninv"] [submodule "libopeninv"]
path = libopeninv path = libopeninv
url = git@github.com:jsphuebner/libopeninv.git url = https://github.com/jsphuebner/libopeninv.git
+3
View File
@@ -99,4 +99,7 @@ void ChargerCAN::MapMessages(CanMap* can)
can->AddSend(Param::udc, 0x109, 8, 16, 1); can->AddSend(Param::udc, 0x109, 8, 16, 1);
can->AddSend(Param::idc, 0x109, 24, 16, 1); can->AddSend(Param::idc, 0x109, 24, 16, 1);
can->AddSend(Param::opmode, 0x109, 40, 3, 5); //Set charging and connlock at once can->AddSend(Param::opmode, 0x109, 40, 3, 5); //Set charging and connlock at once
/***** Auxiliary TX *****/
can->AddSend(Param::uaux, 0x210, 0, 8, 10); //12V aux battery: byte 0, gain=10 (0.1V/decivolts, SKUDAK-448)
} }