Page 1 of 1

Tesla M3 BMS not connecting to ESP8266

Posted: Fri Aug 02, 2024 6:20 pm
by batman
Hello!
My friend asked me to help him with the Tesla M3 BMS project, but we have some issues that we don't know how to resolve, so we're looking for some help & clarifications here.

We will really appreciate your willingness to help.

We have:
  • Tesla M3 Battery Pack
  • Damien Maguire PCB with BATMAN!! in it
  • ESP8266 WiFi module
  • Source code for ESP8266 & STM32
Our main goal is to have the ability to see the charge levels of the batteries on a Tesla Battery Pack, and be sure that it's charging and discharging equally between all the cells.

So far we managed to install the code on to ESP8266 and we can see the red banner with the error:
https://i.postimg.cc/TPKWHzmg/Screensho ... -07-AM.png

Our main PCB with Batman has only one red led with a steady signal, is it something wrong with the wiring?
https://i.postimg.cc/dVdbm1Ny/2024-08-02-11-13-11.jpg
https://i.postimg.cc/1fqsDrnn/2024-08-02-11-13-18.jpg

Also we uploaded the stm32m3bms.bin to STM32 chip on the PCB via SWD interface using ST-link v2 usb.

Hope someone can help us to clarify what we're missing here...

Re: Tesla M3 BMS not connecting to ESP8266

Posted: Fri Aug 02, 2024 6:53 pm
by tom91
batman wrote: Fri Aug 02, 2024 6:20 pm Also we uploaded the stm32m3bms.bin to STM32 chip on the PCB via SWD interface using ST-link v2 usb.
What did you do? What programme are you using? I use STM32CubeProgrammer

Please upload the bootloader to the STM32 via st link first: https://github.com/jsphuebner/stm32-CAN ... s/tag/v1.2 you need the .hex file

Then upload the programme to the STM32 vis st link:https://github.com/damienmaguire/Tesla- ... /tag/0.03A again using the .hex

For the ESP use this https://github.com/jsphuebner/esp32-web-interface

Re: Tesla M3 BMS not connecting to ESP8266

Posted: Fri Aug 02, 2024 7:08 pm
by batman
tom91 wrote: Fri Aug 02, 2024 6:53 pm What did you do? What programme are you using? I use STM32CubeProgrammer

Please upload the bootloader to the STM32 via st link first: https://github.com/jsphuebner/stm32-CAN ... s/tag/v1.2 you need the .hex file

Then upload the programme to the STM32 vis st link:https://github.com/damienmaguire/Tesla- ... /tag/0.03A again using the .hex

For the ESP use this https://github.com/jsphuebner/esp32-web-interface
Thank you, we only uploaded the stm32_m3bms file, but we'll try to do it the way that you suggested.
Will keep you posted.

Re: Tesla M3 BMS not connecting to ESP8266

Posted: Sat Aug 03, 2024 6:02 pm
by batman
tom91 wrote: Fri Aug 02, 2024 6:53 pm What did you do? What programme are you using? I use STM32CubeProgrammer

Please upload the bootloader to the STM32 via st link first: https://github.com/jsphuebner/stm32-CAN ... s/tag/v1.2 you need the .hex file

Then upload the programme to the STM32 vis st link:https://github.com/damienmaguire/Tesla- ... /tag/0.03A again using the .hex

For the ESP use this https://github.com/jsphuebner/esp32-web-interface
Hey, we successfully uploaded the bootloader .hex file, but I'm not sure how to upload the firmware on top of it.
Can you please clarify the steps on how to upload it on top of bootloader?
Thank you in advance!

Re: Tesla M3 BMS not connecting to ESP8266

Posted: Sat Aug 03, 2024 6:03 pm
by tom91
What program are you using? a .hex has the memory address in it, so you can just upload it.

Re: Tesla M3 BMS not connecting to ESP8266

Posted: Sat Aug 03, 2024 6:10 pm
by batman
tom91 wrote: Sat Aug 03, 2024 6:03 pm What program are you using? a .hex has the memory address in it, so you can just upload it.
I used STM32CubeProgrammer.