dw-0 / kiauh

Klipper Installation And Update Helper
GNU General Public License v3.0
3.3k stars 474 forks source link

Add Katapult as a supported way to flash a device #439

Open PatrikTheDev opened 7 months ago

PatrikTheDev commented 7 months ago

Is your feature request related to a problem? Please describe

When updating a canbus enabled device (with Katapult/CanBoot), you currently have no way to flash the devices directly from kiauh, I need to close it and use flashtool.py from katapult. Would it be possible to integrate with it directly to query and flash devices from kiauh (assuming Katapult is installed)?

Describe the solution you'd like

Kiauh would ideally have a Katapult integration (should be possible since both are python projects) and offer it as another way to flash a device when building Klipper for it. One consideration: support for both USB and CAN flashing (some devices must be flashed over CAN, others must be flashed over USB), flashtool.py handles both properly.

I don't believe you can flash Katapult devices using the standard flashing option in Kiauh unless you manually get the device into the bootloader which is inconvenient and unnecessary since it can be done over CAN/USB (I'm unfamiliar with how the process works under the hood but once again, flashtool.py handles this for you)

Describe alternatives you've considered

No response

Additional information

No response