Page 1 of 1

Bootloader update via Wifi

Posted: Tue Apr 08, 2025 3:10 pm
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.

Re: Bootloader update via Wifi

Posted: Tue Apr 08, 2025 3:16 pm
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.

Re: Bootloader update via Wifi

Posted: Tue Apr 08, 2025 3:21 pm
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?

Re: Bootloader update via Wifi

Posted: Tue Apr 08, 2025 3:30 pm
by tom91
STlink is the only option, the bootloader cannot overwrite itself.

Re: Bootloader update via Wifi

Posted: Tue Apr 08, 2025 3:49 pm
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

Re: Bootloader update via Wifi

Posted: Tue Apr 08, 2025 3:52 pm
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.

Re: Bootloader update via Wifi  [SOLVED]

Posted: Tue Apr 08, 2025 7:06 pm
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

Re: Bootloader update via Wifi

Posted: Fri Apr 11, 2025 5:04 pm
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.