Page 1 of 1

Combined CAN and Serial boot loader

Posted: Tue Sep 12, 2023 10:33 am
by johu
Just realized this has never been announced.
The boot loader can now utilize both, CAN and serial port for updating the firmware, see here: viewtopic.php?t=2094

The CAN protocol has been implemented on Damiens Canlogger7500 (perhaps also runs on Petes hardware) and also in a python script in the bootloader repo.

You can also find binaries there.

If you dare updating an already commissioned inverter you can user stm32_bootupdater from the previous version: viewtopic.php?t=1119

Re: Combined CAN and Serial boot loader

Posted: Tue Sep 12, 2023 1:25 pm
by muehlpower
If I have understood the current developments correctly, I will no longer need an ESP8266 in the future because everything runs via CAN. How should I proceed if I have a bare LDU board or want to bring an old one up to date. I have an InnoMaker USB2CAN module, ST-Link V2 and STM32CubeProgrammer on the computer, as well as physical access to the board. What else do I need?

Re: Combined CAN and Serial boot loader

Posted: Tue Sep 12, 2023 2:01 pm
by johu
Yes that's correct.
You will need a peer for CAN communication. Either some CAN adapter that is supported by oic or an ESP32 with CAN transceiver and the firmware linked above. Pete has made a small board and Damien a larger one.

Apart from that you need this boot loader and a recent firmware like 5.27.R that's it

Re: Combined CAN and Serial boot loader

Posted: Tue Sep 12, 2023 4:16 pm
by uhi22
Would be helpful to have links to the different options for Interfaces between Win10 and CAN. I have no idea at the moment, should create a wiki for this.

Re: Combined CAN and Serial boot loader

Posted: Tue Sep 12, 2023 7:43 pm
by nkiernan
Does this relate to Zombieverter also, or might it in future?

Re: Combined CAN and Serial boot loader

Posted: Tue Sep 12, 2023 7:50 pm
by johu
I think its liboi version might be too old, apart from that it should work just as well

Re: Combined CAN and Serial boot loader

Posted: Sat Jul 27, 2024 2:18 pm
by johu
Some update to the boot loader, now v1.2 is latest
viewtopic.php?t=5223

Re: Combined CAN and Serial boot loader

Posted: Sun Sep 22, 2024 9:30 am
by davefiddes
Looks like there is a tagged v1.3 release but no binaries. Is v1.3 ready for general use?

Re: Combined CAN and Serial boot loader

Posted: Sun Sep 22, 2024 3:56 pm
by johu
Oh. Yes it's tested

Re: Combined CAN and Serial boot loader

Posted: Wed Oct 02, 2024 12:59 pm
by davefiddes
Sorry to nag but can you upload the official binaries?

Re: Combined CAN and Serial boot loader

Posted: Wed Oct 02, 2024 6:07 pm
by johu

Re: Combined CAN and Serial boot loader

Posted: Mon Oct 07, 2024 11:51 am
by Bigpie
I'll be starting with https://github.com/jsphuebner/stm32-template, will modify the code for 25MHz unless there's a compelling reason to switch the crystal.