MotorDynamicsLab / Leviathan

Leviathan Main Controller for Voron 2 / Trident 3D Printers
50 stars 14 forks source link

Provision the Leviathan over SWD? #20

Open Poofjunior opened 3 months ago

Poofjunior commented 3 months ago

The Leviathan has a SWD header with a RESET pin exposed.

swd schematic snippet

In theory, it should be possible to flash the bootloader and firmware to the Leviathan from a Pi4/5 using OpenOCD and by plugging in the the SWD, SWDIO, and RESET pins to reserved GPIO pins on the Pi4/5.

The result is that we could write an all-in-one script that flashes the bootloader and firmware without requiring that the user push a sequence of buttons on the hardware itself.

This would also ask the user would to plug in another cable (or set of cables) for now, but a future header board could expose these pins or include a dedicated cable.

References