Works for me. Ender 3 Pro with CRTouch board V4.2.2 chip GD32F303 RET6
Is simple, just follow this:
This file contains pin mappings for the stock 2020 Creality Ender 3
Pro with the 32-bit Creality 4.2.2 board. To use this config, during
“make menuconfig” select the STM32F103 with a “28KiB bootloader” and
serial (on USART1 PA10/PA9) communication.
It should be noted that newer variations of this printer shipping in
2022 may have GD32F103 chips installed and not STM32F103. You may
have to inspect the mainboard to ascertain which one you have. If it
is the GD32F103 then please select Disable SWD at startup in the
“make menuconfig” along with the same settings for STM32F103.
so
- ssh pi@192.168.0.142 # your RPI IP
- cd ~/klipper/
- make menuconfig
5. make
6. On computer open FileZilla and connect to RPI at your IP address user pi/ your passwors/ port 22.
7. Browse on RPI /home/pi/klipper/out/klipper.bin and copy to sd card.
8. run “ls /dev/serial/by-id/*” and result have to be similar “/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0” this have to be pasted in printer.cfg at [mcu] section.
9. If receive a error about mcu not rady or something like this, then delete the space betwin : and / (serial:/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0), strange but for me works.
10. for inspiration hire is my cfg file.
This file contains pin mappings for the stock 2020 Creality Ender 3
Pro with the 32-bit Creality 4.2.2 board. To use this config, during
“make menuconfig” select the STM32F103 with a “28KiB bootloader” and
serial (on USART1 PA10/PA9) communication.
It should be noted that newer variations of this printer shipping in
2022 may have GD32F103 chips installed and not STM32F103. You may
have to inspect the mainboard to ascertain which one you have. If it
is the GD32F103 then please select Disable SWD at startup in the
“make menuconfig” along with the same settings for STM32F103.
If you prefer a direct serial connection, in “make menuconfig”
select “Enable extra low-level configuration options” and select
serial (on USART3 PB11/PB10), which is broken out on the 10 pin IDC
cable used for the LCD module as follows:
3: Tx, 4: Rx, 9: GND, 10: VCC
Flash this firmware by copying “out/klipper.bin” to a SD card and
turning on the printer with the card inserted. The firmware
filename must end in “.bin” and must not match the last filename
that was flashed.
See docs/Config_Reference.md for a description of parameters.
[stepper_x]
step_pin: PC2
dir_pin: PB9
enable_pin: !PC3
microsteps: 16
rotation_distance: 40
endstop_pin: ^PA5
position_endstop: 0
position_max: 235
homing_speed: 50
[stepper_y]
step_pin: PB8
dir_pin: PB7
enable_pin: !PC3
microsteps: 16
rotation_distance: 40
endstop_pin: ^PA6
position_endstop: 0
position_max: 235
homing_speed: 50
[stepper_z]
step_pin: PB6
dir_pin: !PB5
enable_pin: !PC3
microsteps: 16
rotation_distance: 8
endstop_pin: probe:z_virtual_endstop
position_endstop: 0.0
position_max: 200
[extruder]
max_extrude_only_distance: 100.0
step_pin: PB4
dir_pin: PB3
enable_pin: !PC3
microsteps: 16
rotation_distance: 34.406
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: PA1
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC5
control: pid
tuned for stock hardware with 200 degree Celsius target
pid_Kp: 21.527
pid_Ki: 1.063
pid_Kd: 108.982
min_temp: 0
max_temp: 250
[heater_bed]
heater_pin: PA2
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC4
control: pid
tuned for stock hardware with 50 degree Celsius target
pid_Kp: 54.027
pid_Ki: 0.770
pid_Kd: 948.182
min_temp: 0
max_temp: 130
[fan]
pin: PA0
[mcu]
serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
restart_method: command
[safe_z_home]
home_xy_position: 117, 117 # Change coordinates to the center of your print bed
speed: 50
z_hop: 10 # Move up 10mm
z_hop_speed: 5
[printer]
kinematics: cartesian
max_velocity: 300
max_accel: 3000
max_z_velocity: 5
max_z_accel: 100
[bltouch]
sensor_pin: ^PB1
control_pin: PB0
x_offset: -45.5
y_offset: -10
z_offset: 0
[bed_mesh]
speed: 120
horizontal_move_z: 5
mesh_min: 5, 5
mesh_max: 200, 200
probe_count: 5,5
algorithm: bicubic
fade_start: 1
fade_end: 10
fade_target: 0
[display]
lcd_type: st7920
cs_pin: PB12
sclk_pin: PB13
sid_pin: PB15
encoder_pins: ^PB14, ^PB10
click_pin: ^!PB2
[screws_tilt_adjust]
screw1_name: Middle
screw1: 155,122.5
screw2: 70.5,37.5
screw2_name: front left screw
screw3: 235,37.5
screw3_name: front right screw
screw4: 235,207.5
screw4_name: rear right screw
screw5: 70.5,207.5
screw5_name: rear left screw
horizontal_move_z: 10
speed: 50
screw_thread: CW-M4