Arksine / katapult

Configurable bootloader for Klipper
GNU General Public License v3.0
424 stars 77 forks source link

Conjoin Katapult and Klipper images for single flash? #90

Open WayneManion opened 1 year ago

WayneManion commented 1 year ago

I bought a whole stack of EBB42s when they were on sale on AliExpress. I can't even remember how many. Like 10-15 units. I have flashed a couple and they work, but I want to flash all of them at once and be done with it.

Is it possible to somehow conjoin a Katapult image and a Klipper image built for the same target device and flash them both at once over USB? As it stands it seems like the workflow is to flash Katapult to them, set up a temporary Can network, connect the EBB42s to this temporary can net, get the uuid, then flash Klipper to it.

It would be neat to compile Katapule, compile Klipper, cat the two images together, flash once, and be done.

NAPCAL commented 1 year ago

Yes,

If they have matching STM32 Flash Katapult, then Klipper.

Use STM32CubeProgramer (STM32CP) to dump (there might be a way with dfu-util) flash memory for the space both take up together.

Then, use STM32CP to flash multiple (Auto); as STM32CP sees a board in DFU mode on the USB connection, it will automatically flash your file. Make sure to enable wipe flash before flashing your file.

As each is successful, disconnect and connect the next one in DFU mode.

STM32CubeProgramer is made for doing this for production.