Combined CAN and Serial boot loader

Post Reply
User avatar
johu
Site Admin
Posts: 6310
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 249 times
Been thanked: 1307 times
Contact:

Combined CAN and Serial boot loader

Post 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
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
muehlpower
Posts: 642
Joined: Fri Oct 11, 2019 10:51 am
Location: Germany Fürstenfeldbruck
Has thanked: 12 times
Been thanked: 120 times

Re: Combined CAN and Serial boot loader

Post 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?
User avatar
johu
Site Admin
Posts: 6310
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 249 times
Been thanked: 1307 times
Contact:

Re: Combined CAN and Serial boot loader

Post 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
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
uhi22
Posts: 950
Joined: Mon Mar 14, 2022 3:20 pm
Location: Ingolstadt/Germany
Has thanked: 143 times
Been thanked: 535 times

Re: Combined CAN and Serial boot loader

Post 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.
nkiernan
Posts: 544
Joined: Mon Feb 24, 2020 8:59 pm
Location: Ireland
Has thanked: 330 times
Been thanked: 72 times

Re: Combined CAN and Serial boot loader

Post by nkiernan »

Does this relate to Zombieverter also, or might it in future?
User avatar
johu
Site Admin
Posts: 6310
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 249 times
Been thanked: 1307 times
Contact:

Re: Combined CAN and Serial boot loader

Post by johu »

I think its liboi version might be too old, apart from that it should work just as well
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: 6310
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 249 times
Been thanked: 1307 times
Contact:

Re: Combined CAN and Serial boot loader

Post by johu »

Some update to the boot loader, now v1.2 is latest
viewtopic.php?t=5223
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
davefiddes
Posts: 266
Joined: Mon Jan 18, 2021 12:39 pm
Location: Edinburgh, Scotland, UK
Has thanked: 45 times
Been thanked: 80 times

Re: Combined CAN and Serial boot loader

Post by davefiddes »

Looks like there is a tagged v1.3 release but no binaries. Is v1.3 ready for general use?
User avatar
johu
Site Admin
Posts: 6310
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 249 times
Been thanked: 1307 times
Contact:

Re: Combined CAN and Serial boot loader

Post by johu »

Oh. Yes it's tested
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
davefiddes
Posts: 266
Joined: Mon Jan 18, 2021 12:39 pm
Location: Edinburgh, Scotland, UK
Has thanked: 45 times
Been thanked: 80 times

Re: Combined CAN and Serial boot loader

Post by davefiddes »

Sorry to nag but can you upload the official binaries?
User avatar
johu
Site Admin
Posts: 6310
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 249 times
Been thanked: 1307 times
Contact:

Re: Combined CAN and Serial boot loader

Post by johu »

Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
Bigpie
Posts: 1718
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 77 times
Been thanked: 377 times

Re: Combined CAN and Serial boot loader

Post 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.
BMW E91 2006
ZombieVerter
GS450h
Outlander Charger DC/DC
Renault Kangoo 36kWh battery
Post Reply