Compare commits
6 Commits
0de1be186a
...
877508d047
| Author | SHA1 | Date | |
|---|---|---|---|
| 877508d047 | |||
| 3d2dbbc709 | |||
| 69822ca08e | |||
| 7f1d417db6 | |||
| 224e7ff286 | |||
| d209a472a6 |
@@ -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
@@ -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
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user