Page 1 of 1

Tesla charger STM32 firmware now open source

Posted: Mon Jan 23, 2023 10:39 am
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.

Re: Tesla charger STM32 firmware now open source

Posted: Wed Jan 25, 2023 6:51 am
by evolver1566
Thank you for everything that you've done, Johannes. It's such a terrific effort.

Re: Tesla charger STM32 firmware now open source

Posted: Sat Apr 29, 2023 2:28 pm
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

Re: Tesla charger STM32 firmware now open source

Posted: Sat Apr 29, 2023 7:09 pm
by royhen99
Files below, but it's version 1.17.R which I think you are already using.

Re: Tesla charger STM32 firmware now open source

Posted: Sat Apr 29, 2023 8:16 pm
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.

Re: Tesla charger STM32 firmware now open source

Posted: Mon May 01, 2023 3:34 pm
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.