Bootloader update via Wifi  [SOLVED]

Topics concerning the Tesla front and rear drive unit drop-in board
Post Reply
medo
Posts: 168
Joined: Thu Dec 07, 2023 9:32 pm
Location: Kosova
Has thanked: 18 times
Been thanked: 3 times

Bootloader update via Wifi

Post by medo »

I've now tried updating the bootloader to canbootloader on my desktop via the web, but it doesn't work for me; it gets stuck at 25%. Now I've done it via USB with ST-Link and installed the regular bootloader. To my surprise, I also have access to it via can-web, so installing the canbootloader isn't necessary.

I don't want to make any mistakes, otherwise I'll have to remove the LDU again to install the software.
User avatar
tom91
Posts: 2392
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 206 times
Been thanked: 563 times

Re: Bootloader update via Wifi

Post by tom91 »

medo wrote: Tue Apr 08, 2025 3:10 pm via can-web, so installing the canbootloader isn't necessary.
Now try updating the firmware over CAN. This is what the CAN bootloader is for.
Creator of SimpBMS
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
medo
Posts: 168
Joined: Thu Dec 07, 2023 9:32 pm
Location: Kosova
Has thanked: 18 times
Been thanked: 3 times

Re: Bootloader update via Wifi

Post by medo »

Yes, I noticed that it doesn't work. But how do I get the canbootloader onto the LDU without having to remove the whole thing?
User avatar
tom91
Posts: 2392
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 206 times
Been thanked: 563 times

Re: Bootloader update via Wifi

Post by tom91 »

STlink is the only option, the bootloader cannot overwrite itself.
Creator of SimpBMS
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
medo
Posts: 168
Joined: Thu Dec 07, 2023 9:32 pm
Location: Kosova
Has thanked: 18 times
Been thanked: 3 times

Re: Bootloader update via Wifi

Post by medo »

So what is written in the web interface is not correct ??
Screen Shot 2025-04-08 at 05.47.02.556 PM.png
User avatar
tom91
Posts: 2392
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 206 times
Been thanked: 563 times

Re: Bootloader update via Wifi

Post by tom91 »

Id be suprised it works but what do I know. Via UART it is not possible.

You need to go in via the SWDIO which might be working or not depending on the board hardware and wifi module used.
Creator of SimpBMS
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
User avatar
johu
Site Admin
Posts: 6709
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 368 times
Been thanked: 1536 times
Contact:

Re: Bootloader update via Wifi  [SOLVED]

Post by johu »

Nono, indeed it is only possible via UART. The boot loader is then flashed into the application space and started as an application. Then it receives the new boot loader and writes it to the boot loader space. Then you can flash an application again.

The bootupdater has not been extended to support CAN yet
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
johu
Site Admin
Posts: 6709
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 368 times
Been thanked: 1536 times
Contact:

Re: Bootloader update via Wifi

Post by johu »

Spent some though on it and it doesn't make sense to add CAN support to the boot updater as of now. If you have a processor without CAN bootloader you can't program the boot updater anyway. You always need UART access to do this.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Post Reply