Tesla charger STM32 firmware now open source

Topics concerning the Tesla front and rear drive unit drop-in board
Post Reply
User avatar
johu
Site Admin
Posts: 5683
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 960 times
Contact:

Tesla charger STM32 firmware now open source

Post by johu »

I finally got around to publishing the charger firmware.
Janosch has added unit tests to it for that finishing touch, thanks very much!

https://github.com/jsphuebner/stm32-teslacharger

Please understand that with this step I completely withdraw from development and support of this firmware and would be happy to find a new maintainer.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
evolver1566
Posts: 6
Joined: Mon Dec 05, 2022 5:36 am
Has thanked: 5 times
Been thanked: 6 times

Re: Tesla charger STM32 firmware now open source

Post by evolver1566 »

Thank you for everything that you've done, Johannes. It's such a terrific effort.
nathaniel
Posts: 92
Joined: Thu Jun 09, 2022 10:17 am
Been thanked: 42 times

Re: Tesla charger STM32 firmware now open source

Post by nathaniel »

hi, can someone build the .bin and .hex for me, i'm messing around with the terminal and cubeIDE but i keep getting the same error messages. I would like to try this version but I just can't get it to build.

thx
royhen99
Posts: 195
Joined: Sun Feb 20, 2022 4:23 am
Location: N. Wiltshire. UK
Has thanked: 14 times
Been thanked: 94 times

Re: Tesla charger STM32 firmware now open source

Post by royhen99 »

Files below, but it's version 1.17.R which I think you are already using.
Attachments
stm32_charger.hex
(65.97 KiB) Downloaded 35 times
stm32_charger.bin
(23.44 KiB) Downloaded 43 times
nathaniel
Posts: 92
Joined: Thu Jun 09, 2022 10:17 am
Been thanked: 42 times

Re: Tesla charger STM32 firmware now open source

Post by nathaniel »

Thx men!
I'm the meantime I got the building also working! But when I make some changes in the chargercan file and build it and then upload the changes are not working. I changed the DC set current to ac set current but when I flash the new bin file the DC current is still changing via the can messages and not the AC current.
I think the flashing via the web interface is not working. I got the upload complete message followed bij 0% until 100% so normal that would be ok. But maybe got a old bootloader and the flashing via web is not working. Try tomorrow via stlink.
User avatar
johu
Site Admin
Posts: 5683
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 960 times
Contact:

Re: Tesla charger STM32 firmware now open source

Post by johu »

Ah, what it does is checking whether the canmap loaded successfully from flash. Only if it didn't it will execute the code in chargercan. That change was necessary to allow user mappings again. You'd need to erase the second-to-last flash page for it to be reinitialized.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Post Reply