mirror of
https://github.com/QIDITECH/klipper.git
synced 2026-02-02 17:08:41 +03:00
plus4的klipper版本
This commit is contained in:
@@ -185,6 +185,50 @@ To flash an application use something like:
|
||||
bossac --port=/dev/ttyACM0 -b -U -e -w -v -R out/klipper.bin
|
||||
```
|
||||
|
||||
## SAMDC21 micro-controllers (Duet3D Toolboard 1LC)
|
||||
|
||||
The SAMC21 is flashed via the ARM Serial Wire Debug (SWD) interface.
|
||||
This is commonly done with a dedicated SWD hardware dongle.
|
||||
Alternatively, one can use a
|
||||
[Raspberry Pi with OpenOCD](#running-openocd-on-the-raspberry-pi).
|
||||
|
||||
When using OpenOCD with the SAMC21, extra steps must be taken to first
|
||||
put the chip into Cold Plugging mode if the board makes use of the
|
||||
SWD pins for other purposes. If using OpenOCD on a Rasberry Pi, this
|
||||
can be done by running the following commands before invoking OpenOCD.
|
||||
```
|
||||
SWCLK=25
|
||||
SWDIO=24
|
||||
SRST=18
|
||||
|
||||
echo "Exporting SWCLK and SRST pins."
|
||||
echo $SWCLK > /sys/class/gpio/export
|
||||
echo $SRST > /sys/class/gpio/export
|
||||
echo "out" > /sys/class/gpio/gpio$SWCLK/direction
|
||||
echo "out" > /sys/class/gpio/gpio$SRST/direction
|
||||
|
||||
echo "Setting SWCLK low and pulsing SRST."
|
||||
echo "0" > /sys/class/gpio/gpio$SWCLK/value
|
||||
echo "0" > /sys/class/gpio/gpio$SRST/value
|
||||
echo "1" > /sys/class/gpio/gpio$SRST/value
|
||||
|
||||
echo "Unexporting SWCLK and SRST pins."
|
||||
echo $SWCLK > /sys/class/gpio/unexport
|
||||
echo $SRST > /sys/class/gpio/unexport
|
||||
```
|
||||
|
||||
To flash a program with OpenOCD use the following chip config:
|
||||
```
|
||||
source [find target/at91samdXX.cfg]
|
||||
```
|
||||
Obtain a program; for instance, klipper can be built for this chip.
|
||||
Flash with OpenOCD commands similar to:
|
||||
```
|
||||
at91samd chip-erase
|
||||
at91samd bootloader 0
|
||||
program out/klipper.elf verify
|
||||
```
|
||||
|
||||
## SAMD21 micro-controllers (Arduino Zero)
|
||||
|
||||
The SAMD21 bootloader is flashed via the ARM Serial Wire Debug (SWD)
|
||||
@@ -305,7 +349,7 @@ is a [fork with builds specific to the SKR Mini E3 1.2](
|
||||
https://github.com/Arksine/STM32_HID_Bootloader/releases/latest).
|
||||
|
||||
For generic STM32F103 boards such as the blue pill it is possible to flash
|
||||
the bootloader via 3.3v serial using stm32flash as noted in the stm32duino
|
||||
the bootloader via 3.3V serial using stm32flash as noted in the stm32duino
|
||||
section above, substituting the file name for the desired hid bootloader binary
|
||||
(ie: hid_generic_pc13.bin for the blue pill).
|
||||
|
||||
@@ -382,7 +426,7 @@ make flash FLASH_DEVICE=/dev/ttyACM0
|
||||
It may be necessary to manually enter the bootloader, this can be done by
|
||||
setting "boot 0" low and "boot 1" high. On the SKR Mini E3 "Boot 1" is
|
||||
not available, so it may be done by setting pin PA2 low if you flashed
|
||||
"hid_btt_skr_mini_e3.bin". This pin is labeld "TX0" on the TFT header in
|
||||
"hid_btt_skr_mini_e3.bin". This pin is labeled "TX0" on the TFT header in
|
||||
the SKR Mini E3's "PIN" document. There is a ground pin next to PA2
|
||||
which you can use to pull PA2 low.
|
||||
|
||||
@@ -390,7 +434,7 @@ which you can use to pull PA2 low.
|
||||
|
||||
The [MSC bootloader](https://github.com/Telekatz/MSC-stm32f103-bootloader) is a driverless bootloader capable of flashing over USB.
|
||||
|
||||
It is possible to flash the bootloader via 3.3v serial using stm32flash as noted
|
||||
It is possible to flash the bootloader via 3.3V serial using stm32flash as noted
|
||||
in the stm32duino section above, substituting the file name for the desired
|
||||
MSC bootloader binary (ie: MSCboot-Bluepill.bin for the blue pill).
|
||||
|
||||
@@ -419,7 +463,7 @@ It is recommended to use a ST-Link Programmer to flash CanBoot, however it
|
||||
should be possible to flash using `stm32flash` on STM32F103 devices, and
|
||||
`dfu-util` on STM32F042/STM32F072 devices. See the previous sections in this
|
||||
document for instructions on these flashing methods, substituting `canboot.bin`
|
||||
for the file name where appropriate. The CanBoot repo linked above provides
|
||||
for the file name where appropriate. The CanBoot repository linked above provides
|
||||
instructions for building the bootloader.
|
||||
|
||||
The first time CanBoot has been flashed it should detect that no application
|
||||
@@ -448,8 +492,8 @@ When building Klipper for use with CanBoot, select the 8 KiB Bootloader option.
|
||||
|
||||
## STM32F4 micro-controllers (SKR Pro 1.1)
|
||||
|
||||
STM32F4 microcontrollers come equipped with a built-in system bootloader
|
||||
capable of flashing over USB (via DFU), 3.3v Serial, and various other
|
||||
STM32F4 micro-controllers come equipped with a built-in system bootloader
|
||||
capable of flashing over USB (via DFU), 3.3V Serial, and various other
|
||||
methods (see STM Document AN2606 for more information). Some
|
||||
STM32F4 boards, such as the SKR Pro 1.1, are not able to enter the DFU
|
||||
bootloader. The HID bootloader is available for STM32F405/407
|
||||
@@ -458,8 +502,8 @@ Note that you may need to configure and build a version specific to your
|
||||
board, a [build for the SKR Pro 1.1 is available here](
|
||||
https://github.com/Arksine/STM32_HID_Bootloader/releases/latest).
|
||||
|
||||
Unless your board is DFU capable the most accessable flashing method
|
||||
is likely via 3.3v serial, which follows the same procedure as
|
||||
Unless your board is DFU capable the most accessible flashing method
|
||||
is likely via 3.3V serial, which follows the same procedure as
|
||||
[flashing the STM32F103 using stm32flash](#stm32f103-micro-controllers-blue-pill-devices).
|
||||
For example:
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user