Skip to content

Latest commit

 

History

History

Automatic MCU script update

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Automatic MCU update script

Install

Please look at Step 8 how to prepare the script.
Short version:

  • Copy the update_klipper_mcus_sv08.sh script to your ~/klipper folder.
  • Edit the script and enter your device serials (the serial parts after stm32f103xe_).
  • Make the script executable with sudo chmod +x ~/klipper/update_klipper_mcus_sv08.sh
  • Use the script with the following command:
cd "$HOME/klipper" && ./update_klipper_mcus_sv08.sh

Troubleshooting

You might get the following error after executing the script:

/usr/bin/env: ‘bash\r’: No such file or directory

This means you have probably saved the file in Windows (with the Windows/DOS line endings) and we need to convert the line endings to Unix style. The easiest way to do this is to re-save the file with Nano:

  • cd ~/klipper (Go to the Klipper folder where the script is, if you are not there yet)
  • nano update_klipper_mcus_sv08.sh (Open the file with Nano)
  • CTRL-O (Write Out) But do not press enter/save yet!
  • ALT-D (DOS Format) You will see [DOS Format] appear or be removed in front of the filename when pressing ALT-D. Make sure there is NO [DOS Format] in front of the filename.
  • Press ENTER to save (you will see a message [ Wrote xx lines ] when the file is saved)
  • CTRL-X to exit.

We have now converted the wrong line endings to the correct ones and you can once again try to execute the script with:

cd "$HOME/klipper" && ./update_klipper_mcus_sv08.sh