Created
May 28, 2021 20:54
-
-
Save pulsar256/4bc5c86e61d66022e20bab38f0c6665a to your computer and use it in GitHub Desktop.
Flash klipper on a SKR1.3 wired direclty via serial to the RPI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
pin_reset=22 | |
pin_boot=26 | |
firmware=$HOME/klipper/out/klipper.bin | |
sudo systemctl stop klipper | |
# enter boot bootloader sequence | |
gpio mode $pin_reset OUT | |
gpio mode $pin_boot OUT | |
# hold reset and bootloader down | |
gpio write $pin_reset 0 | |
gpio write $pin_boot 0 | |
# go back to high-z and let skr pullups set the lines to high | |
gpio mode $pin_reset IN | |
gpio mode $pin_boot IN | |
lpc21isp -wipe -bin $firmware /dev/ttyS0 230400 12000 | |
sudo systemctl start klipper |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment