The CanBoot bootloader developed by @Arksine offers a convenient way to flash the board with Klipper. It offers following features:
- No SD Card needed to flash
- Supports Klipper’s make flash command
- Support going into “flashing mode”, aka bootloader mode, by double pressing the reset button or optionally defining any GPIO pin to enter bootloader mode
Following is a short how-to flash this bootloader to a BTT SKR 1.3 / 1.4 / 1.4 Turbo board
Things needed:
- USB to TTL adapter, e.g. https://www.amazon.com/dp/B075N82CDL
- Some Jumper wires, e.g https://www.amazon.com/dp/B01EV70C78
- female to female for the USB to TTL
- female to male to conveniently contact the pin P2.10 to get the board into ISP mode
- CanBoot
- Flashmagic
Procedure
Build CanBoot
-
Execute following commands on your SBC
git clone https://github.com/Arksine/CanBoot cd CanBoot make menuconfig
-
Choose following build options. Mind the Processor Model: lpc1768 for SKR 1.3 / 1.4, lpc1769 for SKR 1.4 Turbo
-
Execute the
make
command -
Get the resulting bin file
./out/canboot.bin
and copy it to a Windows machine
Flashing procedure for SKR 1.4
-
Power the board via USB or 12V / 24V
-
Connect the USB TTL adapter to a Windows PC (potentially you need to install the FTDI VCP Drivers)
-
Contact the USB TTL adapter as shown in the picture (cyan arrows)
- RX of the adapter to TX on the board
- TX of the adapter to RX on the board
- GND to GND
-
Contact the SMD resistor (R28) to GND of the board (dark blue arrows), e.g. to the middle pin of an endstop (here the female to male jumper cable comes in handy). This will contact the ISP mode pin P2.10
-
Reset the board while holding the contact (Nr. 4)
-
Shortly after releasing the Reset button also remove the ISP connection (Nr. 4)
-
Start Flashmagic
- Chose the
canboot.bin
file - Set the correct COM port for your USB to TTL adapter (look it up in the windows device manager)
- Set the correct chip type
- Set Erase to
Entire device
- Press start
- Chose the
-
Wait until finished, then reset the board
Flashing procedure for SKR 1.3
For SKR 1.3 simply connect AUX-1 in Step 2 and use (read short) the BOOT Jumper pins to achieve the same as in Step 3 to 5 of the SKR 1.4 procedure:
Verify Board is in Bootloader mode
- Execute
sudo dmesg
- Note down the
tty
device
Flashing Klipper
- Build Klipper regularly as indicated for your board
- Flash Klipper with
make FLASH FLASH_DEVICE=/dev/<device>
(replace the<device>
as noted down above)