Tesla M3 BMS not connecting to ESP8266

Topics concerning OEM and open source BMSes
Post Reply
batman
Posts: 4
Joined: Thu Aug 01, 2024 6:44 pm

Tesla M3 BMS not connecting to ESP8266

Post 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...
User avatar
tom91
Posts: 2392
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 206 times
Been thanked: 563 times

Re: Tesla M3 BMS not connecting to ESP8266

Post 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
Creator of SimpBMS
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
batman
Posts: 4
Joined: Thu Aug 01, 2024 6:44 pm

Re: Tesla M3 BMS not connecting to ESP8266

Post 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.
batman
Posts: 4
Joined: Thu Aug 01, 2024 6:44 pm

Re: Tesla M3 BMS not connecting to ESP8266

Post 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!
User avatar
tom91
Posts: 2392
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 206 times
Been thanked: 563 times

Re: Tesla M3 BMS not connecting to ESP8266

Post by tom91 »

What program are you using? a .hex has the memory address in it, so you can just upload it.
Creator of SimpBMS
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
batman
Posts: 4
Joined: Thu Aug 01, 2024 6:44 pm

Re: Tesla M3 BMS not connecting to ESP8266

Post 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.
Post Reply