You don’t need to specify the STM32G0B1 internal pin pull up - there is 10k physical pullup on the pin:
I know it’s hard to read but, in the schematic, “X_STOP” is connected to “STM_3V3” via R28 (10k) and R29 (100Ω).
This means the argument in the [TMC2290... statement needs to be just:
diag_pin = PC0
@reaver993 ,
If you have TMC2209 stepper drivers on each of your axes/extruder then you should have include the [tmc2209... statement - if you don’t, the current for the driver will be taken from the pot built into the stepper driver module and, unless you’ve set that manually, it’s at an unknown value.
mykepredko:
If you have TMC2209 stepper drivers on each of your axes/extruder then you should have include the [tmc2209... statement - if you don’t, the current for the driver will be taken from the pot built into the stepper driver module and, unless you’ve set that manually, it’s at an unknown value.
My bad i didn’t explain myself better, the [tmc2209 steppert_*] is uncommented, i moved the
[tmc2209 steppert_x] and [tmc2209 steppert_y] below the [stepper_x] and [stepper_y] while configuring it, because i was more confortable.
So yeah the tmc2209 statement is specified for every axis and the extruder.
When I look at the klippy.log you posted, I only saw it for X & Y.
If they’re actually there, you might want to post your printer.cfg so we can figure why they’re not appearing.
How did trying just:
diag_pin = PC0
work?
@mykepredko using ^PC0 or PC0 makes no difference, the toolhead wont move and use the current position as his new home position.
here’s my complete printer.cfg
[include mainsail.cfg]
# host MCU service is preinstalled and ready to use with:
[mcu]
serial: /dev/serial/by-id/usb-Klipper_stm32g0b1xx_3D00550010504D5930363820-if00
[mcu CB1]
serial: /tmp/klipper_host_mcu
# This file contains common pin mappings for the BIGTREETECH Manta M4P
# To use this config, the firmware should be compiled for the
# STM32G0B1 with a "8KiB bootloader" and USB communication.
# See docs/Config_Reference.md for a description of parameters.
[stepper_x]
step_pin: PC6
dir_pin: PA14
enable_pin: !PC7
microsteps: 16
rotation_distance: 40
#endstop_pin: ^PC0
endstop_pin: tmc2209_stepper_x:virtual_endstop
position_endstop: 0
position_max: 235
homing_speed: 50
homing_retract_dist: 0
[tmc2209 stepper_x]
uart_pin: PB12
run_current: 0.300
stealthchop_threshold: 999999
diag_pin: PC0
driver_SGTHRS: 140
[stepper_y]
step_pin: PB10
dir_pin: PB2
enable_pin: !PB11
microsteps: 16
rotation_distance: 40
#endstop_pin: ^PC1
endstop_pin: tmc2209_stepper_y:virtual_endstop
position_endstop: 0
position_max: 235
homing_speed: 50
homing_retract_dist: 0
[tmc2209 stepper_y]
uart_pin: PC10
run_current: 0.300
stealthchop_threshold: 999999
diag_pin: ^PC1
driver_SGTHRS: 140
[stepper_z]
step_pin: PB0
dir_pin: !PC5
enable_pin: !PB1
microsteps: 16
rotation_distance: 8
#endstop_pin: ^PC2
endstop_pin: tmc2209_stepper_z:virtual_endstop
position_endstop: 0
position_max: 270
homing_retract_dist: 0
[tmc2209 stepper_z]
uart_pin: PC9
diag_pin: ^PC2
run_current: 0.300
stealthchop_threshold: 999999
driver_SGTHRS: 140
[extruder]
step_pin: PB3
dir_pin: PB4
enable_pin: !PD5
microsteps: 16
rotation_distance: 33.500
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: PC8
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PA0
control: pid
pid_Kp: 22.2
pid_Ki: 1.08
pid_Kd: 114
min_temp: 0
max_temp: 270
[tmc2209 extruder]
uart_pin: PA13
run_current: 0.600
stealthchop_threshold: 999999
#[filament_switch_sensor filament_sensor]
#switch_pin: ^!PC15
[heater_bed]
heater_pin: PD8
sensor_type: Generic 3950
sensor_pin: PC4
control: watermark
min_temp: 0
max_temp: 130
[fan]
pin: PD2
[heater_fan fan1]
pin: PD3
heater: extruder
heater_temp: 50.0
#[heater_fan fan2]
#pin: PD4
[temperature_sensor MCU]
sensor_type: temperature_mcu
[temperature_sensor CB1]
sensor_type: temperature_host
[temperature_fan SoC_fan]
pin: CB1:gpio79
sensor_type: temperature_host
min_temp: 0
max_temp: 100
target_temp: 50
kick_start_time: 0.8
off_below: 0.1
max_power: 1.0
control: pid
pid_kp: 1.0
pid_ki: 0.5
pid_kd: 2.0
min_speed: 0.3
max_speed: 0.8
#pin: RPI:gpio26
[printer]
kinematics: cartesian
max_velocity: 180
max_accel: 3000
max_z_velocity: 5
max_z_accel: 100
########################################
# EXP1 / EXP2 (display) pins
########################################
[display]
lcd_type: st7920
cs_pin: EXP1_7
sclk_pin: EXP1_6
sid_pin: EXP1_8
encoder_pins: ^EXP1_5, ^EXP1_3
click_pin: ^!EXP1_2
[output_pin beeper]
pin: EXP1_1
[board_pins]
aliases:
# EXP1 header
EXP1_1=PD6, EXP1_3=PB9, EXP1_5=PA15, EXP1_7=PA9, EXP1_9=<GND>,
EXP1_2=PB8, EXP1_4=PC3, EXP1_6=PA10, EXP1_8=PB5, EXP1_10=<5V>,
# EXP2 header
EXP2_1=PB14, EXP2_3=PC11, EXP2_5=PC12, EXP2_7=PC13, EXP2_9=<GND>,
EXP2_2=PB13, EXP2_4=PA8, EXP2_6=PB15, EXP2_8=<RST>, EXP2_10=<NC>
# See the sample-lcd.cfg file for definitions of common LCD displays.
########################################
# TMC2209 configuration
########################################
########################################
# TMC5160 configuration
########################################
#[[tmc2130 stepper_x]
#cs_pin: PB12
#spi_bus: spi1
#diag1_pin: PG6
#run_current: 0.800
#stealthchop_threshold: 999999
#[tmc2130 stepper_y]
#cs_pin: PC10
#spi_bus: spi1
#diag1_pin: PG9
#run_current: 0.800
#stealthchop_threshold: 999999
#[tmc2130 stepper_z]
#cs_pin: PC9
#spi_bus: spi1
#diag1_pin: PG10
#run_current: 0.650
#stealthchop_threshold: 999999
#[tmc2130 extruder]
#cs_pin: PA13
#spi_bus: spi1
#diag1_pin: PC15
#run_current: 0.650
#stealthchop_threshold: 999999
#[bltouch]
#sensor_pin: PC14
#control_pin: PA1
#[adxl345]
#cs_pin: PD9
#spi_bus: spi1
#axes_map: z,y,-x
#[neopixel rgb1]
#pin: PD0
#[neopixel rgb2]
#pin: PD1
This make not much sense:
[stepper_z]
step_pin: PB0
dir_pin: !PC5
enable_pin: !PB1
microsteps: 16
rotation_distance: 8
#endstop_pin: ^PC2
endstop_pin: tmc2209_stepper_z:virtual_endstop
position_endstop: 0
position_max: 270
homing_retract_dist: 0
[tmc2209 stepper_z]
uart_pin: PC9
diag_pin: ^PC2
run_current: 0.300
stealthchop_threshold: 999999
driver_SGTHRS: 140
Homing the Z-axes by sensorless homing is way too incorrect.
In all cases, the run_current seems way to low.
You may check, if homing by endswitch works properly.
@EddyMI3D yeah the endstop on the z axis is just to test if maybe the z axis would work.
Homing by endswitch work fine on every axis, and i am starting to think that maybe i should just forget to use sensorless and get the printer ready to work on endswitch
Do you have a table with all the parameters you’ve changed and the results of each value?
I feel like you’ve tried things with a specific error (ie “!PC0”) and, when you’ve changed that, you haven’t gone back to check everything else.
I agree with @EddyMI3D that if you’re running with 0.3A on the steppers you should try to increase the value until you see movement.
When you’re checking, manually move your toolhead to the middle of the rail so you see movement and increase the current in increments of 0.1A until you see movement toward the left side.
With that, repeat the tests with different values of driver_SGTHRS.
With the value of driver_SGTHRS too high, you won’t see any movement and the X_Stop still triggered message and with it to low, you’ll see movement and the grinding/shaking sound/movement - you want to find the value in the middle.
Remember to record your results on a piece of paper.
system
Closed
July 25, 2025, 8:30pm
28
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.