Giter Site home page Giter Site logo

klipper_canbus_flasher's Introduction

klipper_canbus_flasher

A bash script to flash klipper via canbus.

This assumes you have Katapult ready to go!

For each board you specify, the script will compile the firmware and then flash it.

Once you have done your updates in mainsail, you can launch the script to have it flash all of your devices sequentially.

  1. You probably need to be comfortable with bash before playing around with this.

  2. The firmware configs in this repo are set to 500000 bauds.

  3. You can use your own firmware configs: you need to generate config files for each firmware in advance. i.e. go to your klipper folder.

make menuconfig

save and exit

cp .config {your_klipper_flasher_folder}/firmware_menuconfigs/{board_name}

Where board_name will match what you will define at the top of the klipper_flasher.sh script.

  1. Two types of flashing are supported for canbus usb passthrough devices (manta's and octopus's), and regular canbus devices.

regular canbus devices ebb42_flash_type="CAN"

usb passthrough manta_flash_type="CAN_USB"

Each board needs the canbus_uuid defined, and if it's a board with canbus usb passhtrough serial_uuid as well.

octopus_max_canbus_uuid="4e837872f817"
octopus_max_flash_type="CAN_USB"
octopus_max_serial_uuid="/dev/serial/by-id/usb-katapult_stm32h723xx_0B0015001051313236343430-if00"

ebb42_canbus_uuid="2b12809532d4"
ebb42_flash_type="CAN"

mmb_canbus_uuid="d04f5a660b7f"
mmb_flash_type="CAN"
  1. Finally set the $BOARDS variable to a list of boards you want to flash. in my case:
BOARDS="octopus_max ebb42 mmb"
  1. launch the flash! Here's an example of it going through my 3 boards. https://asciinema.org/a/4RzLf68IcEUeRTgGaiGUX6uaA

klipper_canbus_flasher's People

Contributors

lesaux avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.