Tmc2208 setting for extruder_stepper

I am setting up a extruder_stepper as below but was unable to asigned it to the tmc2208. did i do a wrong syntax or the extruder_stepper does not have a specific setting.
extruder_stepper share_stepper]
extruder:
step_pin: PF3
dir_pin: !PG3
enable_pin: !PF8
microsteps: 16
rotation_distance:15.84
gear_ratio: 5:1

[tmc2208 share_stepper]
uart_pin: PG4
run_current: 0.650
stealthchop_threshold: 999999

Getting error:
===== Config file =====
[stepper_x]
step_pin = PC15
dir_pin = PF0
enable_pin = !PF1
microsteps = 16
rotation_distance = 40
endstop_pin = ^!PF2
position_endstop = 0
position_max = 500
homing_speed = 50

[stepper_y]
step_pin = PE3
dir_pin = PE2
enable_pin = !PE4
microsteps = 16
rotation_distance = 40
endstop_pin = ^!PC13
position_endstop = 0
position_max = 500
homing_speed = 50

[stepper_z]
step_pin = PB8
dir_pin = PB7
enable_pin = !PB9
microsteps = 16
rotation_distance = 8
endstop_pin = ^!PE0
position_endstop = 0
position_max = 500
homing_speed = 12
second_homing_speed = 1

[stepper_z1]
step_pin = PG12
dir_pin = PG11
enable_pin = !PG13
microsteps = 16
rotation_distance = 8
endstop_pin = ^!PH6

[stepper_z2]
step_pin = PD6
dir_pin = PD5
enable_pin = !PD7
microsteps = 16
rotation_distance = 8
endstop_pin = ^!PG14

[stepper_z3]
step_pin = PD1
dir_pin = PD0
enable_pin = !PD2
microsteps = 4
rotation_distance = 8
endstop_pin = ^!PG9

[extruder_stepper share_stepper]
extruder =
step_pin = PF3
dir_pin = !PG3
enable_pin = !PF8
microsteps = 16
rotation_distance = 15.84
gear_ratio = 5:1

[extruder]
nozzle_diameter = 0.400
filament_diameter = 1.750
heater_pin = PB1
sensor_pin = PC1
sensor_type = EPCOS 100K B57560G104F
min_temp = 0
max_temp = 290
min_extrude_temp = 10
max_extrude_only_distance = 500000
control = pid
pid_kp = 18.622
pid_ki = 0.479
pid_kd = 180.863

[extruder1]
nozzle_diameter = 0.400
filament_diameter = 1.750
heater_pin = PA1
sensor_pin = PC2
sensor_type = EPCOS 100K B57560G104F
control = pid
pid_kp = 22.2
pid_ki = 1.08
pid_kd = 114
min_temp = 0
max_temp = 290
min_extrude_temp = 10
max_extrude_only_distance = 50000

[heater_bed]
heater_pin = PA2
sensor_pin = PC0
sensor_type = ATC Semitec 104GT-2
control = watermark
min_temp = 0
max_temp = 130

[fan]
pin = PE5

[heater_fan fan1]
pin = PE6

[temperature_sensor mcu_temp]
sensor_type = temperature_mcu

[mcu]
restart_method = command
serial = dev/serial/by-id/usb-Klipper_stm32f407xx_2D0039000647303036313935-if00
baud = 250000

[printer]
kinematics = corexy
max_velocity = 10000
max_accel = 3000
max_z_velocity = 25
max_z_accel = 30

[servo Test_servo]
pin = PB11
maximum_servo_angle = 180
minimum_pulse_width = 0.0005
maximum_pulse_width = 0.0025
initial_angle = 160

[probe]
pin = ^!PH11
deactivate_on_each_sample = True
x_offset = 0.0
y_offset = 0.0
z_offset = 2
speed = 5.0
samples = 2
sample_retract_dist = 2.0
lift_speed = 10
samples_tolerance = 0.100
samples_tolerance_retries = 5
activate_gcode = SET_SERVO SERVO=Test_servo ANGLE=160
deactivate_gcode = SET_SERVO SERVO=Test_servo ANGLE=0

[tmc2208 stepper_z]
uart_pin = PB5
run_current = 0.650
stealthchop_threshold = 999999

[tmc2208 stepper_z1]
uart_pin = PG10
run_current = 0.650
stealthchop_threshold = 999999

[tmc2208 stepper_z2]
uart_pin = PD4
run_current = 0.650
stealthchop_threshold = 999999

[tmc2208 stepper_z3]
uart_pin = PC12
run_current = 0.650
stealthchop_threshold = 999999

[tmc2208 share_stepper]
uart_pin = PC12
run_current = 0.650
stealthchop_threshold = 999999

[tmc5160 stepper_x]
cs_pin = PC14
sense_resistor = 0.075
run_current = 1
stealthchop_threshold = 0
spi_software_mosi_pin = PG15
spi_software_miso_pin = PB6
spi_software_sclk_pin = PB3

[tmc5160 stepper_y]
cs_pin = PE1
sense_resistor = 0.075
run_current = 1
stealthchop_threshold = 0
spi_software_mosi_pin = PG15
spi_software_miso_pin = PB6
spi_software_sclk_pin = PB3

[board_pins]
aliases =
EXP1_1=PC11, EXP1_3=PC10, EXP1_5=PG8, EXP1_7=PG6, EXP1_9=,
EXP1_2=PA15, EXP1_4=PA8, EXP1_6=PG7, EXP1_8=PG5, EXP1_10=<5V>,
EXP2_1=PB14, EXP2_3=PD10, EXP2_5=PH10, EXP2_7=PB10, EXP2_9=,
EXP2_2=PB13, EXP2_4=PB12, EXP2_6=PB15, EXP2_8=, EXP2_10=

[gcode_macro T0]
description = switch to T0
gcode =
ACTIVATE_EXTRUDER EXTRUDER=extruder
SYNC_EXTRUDER_MOTION EXTRUDER=share_stepper MOTION_QUEUE=extruder

[gcode_macro T1]
description = switch to T1
gcode =
ACTIVATE_EXTRUDER EXTRUDER=extruder1
SYNC_EXTRUDER_MOTION EXTRUDER=share_stepper MOTION_QUEUE=extruder1

[gcode_macro t_offset]
description = set gcode offset to current tool head
gcode =
SET_GCODE_OFFSET

Args: [‘/home/pi/klipper/klippy/klippy.py’, ‘/home/pi/printer.cfg’, ‘-l’, ‘/tmp/klippy.log’]
Git version: ‘v0.10.0-546-ga709ba43’
CPU: 4 core ARMv7 Processor rev 3 (v7l)
Python: ‘2.7.16 (default, Oct 10 2019, 22:02:15) \n[GCC 8.3.0]’
=============== Log rollover at Mon Aug 29 16:50:33 2022 ===============
Shared TMC uarts need unique address or select_pins polarity

Once the underlying issue is corrected, use the “RESTART”
command to reload the config and restart the host software.
Printer is halted

Shared TMC uarts need unique address or select_pins polarity

Once the underlying issue is corrected, use the “RESTART”
command to reload the config and restart the host software.
Printer is halted

Shared TMC uarts need unique address or select_pins polarity

Once the underlying issue is corrected, use the “RESTART”
command to reload the config and restart the host software.
Printer is halted

Shared TMC uarts need unique address or select_pins polarity

Once the underlying issue is corrected, use the “RESTART”
command to reload the config and restart the host software.
Printer is halted

Shared TMC uarts need unique address or select_pins polarity

Once the underlying issue is corrected, use the “RESTART”
command to reload the config and restart the host software.
Printer is halted

Shared TMC uarts need unique address or select_pins polarity

Once the underlying issue is corrected, use the “RESTART”
command to reload the config and restart the host software.
Printer is halted

Shared TMC uarts need unique address or select_pins polarity

Once the underlying issue is corrected, use the “RESTART”
command to reload the config and restart the host software.
Printer is halted

Shared TMC uarts need unique address or select_pins polarity

Once the underlying issue is corrected, use the “RESTART”
command to reload the config and restart the host software.
Printer is halted

Starting Klippy…
Args: [‘/home/pi/klipper/klippy/klippy.py’, ‘/home/pi/printer.cfg’, ‘-l’, ‘/tmp/klippy.log’]
Git version: ‘v0.10.0-546-ga709ba43’
CPU: 4 core ARMv7 Processor rev 3 (v7l)
Python: ‘2.7.16 (default, Oct 10 2019, 22:02:15) \n[GCC 8.3.0]’
Start printer at Mon Aug 29 16:51:23 2022 (1661788283.9 67814.2)
===== Config file =====
[stepper_x]
step_pin = PC15
dir_pin = PF0
enable_pin = !PF1
microsteps = 16
rotation_distance = 40
endstop_pin = ^!PF2
position_endstop = 0
position_max = 500
homing_speed = 50

[stepper_y]
step_pin = PE3
dir_pin = PE2
enable_pin = !PE4
microsteps = 16
rotation_distance = 40
endstop_pin = ^!PC13
position_endstop = 0
position_max = 500
homing_speed = 50

[stepper_z]
step_pin = PB8
dir_pin = PB7
enable_pin = !PB9
microsteps = 16
rotation_distance = 8
endstop_pin = ^!PE0
position_endstop = 0
position_max = 500
homing_speed = 12
second_homing_speed = 1

[stepper_z1]
step_pin = PG12
dir_pin = PG11
enable_pin = !PG13
microsteps = 16
rotation_distance = 8
endstop_pin = ^!PH6

[stepper_z2]
step_pin = PD6
dir_pin = PD5
enable_pin = !PD7
microsteps = 16
rotation_distance = 8
endstop_pin = ^!PG14

[stepper_z3]
step_pin = PD1
dir_pin = PD0
enable_pin = !PD2
microsteps = 4
rotation_distance = 8
endstop_pin = ^!PG9

[extruder_stepper share_stepper]
extruder =
step_pin = PF3
dir_pin = !PG3
enable_pin = !PF8
microsteps = 16
rotation_distance = 15.84
gear_ratio = 5:1

[extruder]
nozzle_diameter = 0.400
filament_diameter = 1.750
heater_pin = PB1
sensor_pin = PC1
sensor_type = EPCOS 100K B57560G104F
min_temp = 0
max_temp = 290
min_extrude_temp = 10
max_extrude_only_distance = 500000
control = pid
pid_kp = 18.622
pid_ki = 0.479
pid_kd = 180.863

[extruder1]
nozzle_diameter = 0.400
filament_diameter = 1.750
heater_pin = PA1
sensor_pin = PC2
sensor_type = EPCOS 100K B57560G104F
control = pid
pid_kp = 22.2
pid_ki = 1.08
pid_kd = 114
min_temp = 0
max_temp = 290
min_extrude_temp = 10
max_extrude_only_distance = 50000

[heater_bed]
heater_pin = PA2
sensor_pin = PC0
sensor_type = ATC Semitec 104GT-2
control = watermark
min_temp = 0
max_temp = 130

[fan]
pin = PE5

[heater_fan fan1]
pin = PE6

[temperature_sensor mcu_temp]
sensor_type = temperature_mcu

[mcu]
restart_method = command
serial = dev/serial/by-id/usb-Klipper_stm32f407xx_2D0039000647303036313935-if00
baud = 250000

[printer]
kinematics = corexy
max_velocity = 10000
max_accel = 3000
max_z_velocity = 25
max_z_accel = 30

[servo Test_servo]
pin = PB11
maximum_servo_angle = 180
minimum_pulse_width = 0.0005
maximum_pulse_width = 0.0025
initial_angle = 160

[probe]
pin = ^!PH11
deactivate_on_each_sample = True
x_offset = 0.0
y_offset = 0.0
z_offset = 2
speed = 5.0
samples = 2
sample_retract_dist = 2.0
lift_speed = 10
samples_tolerance = 0.100
samples_tolerance_retries = 5
activate_gcode = SET_SERVO SERVO=Test_servo ANGLE=160
deactivate_gcode = SET_SERVO SERVO=Test_servo ANGLE=0

[tmc2208 stepper_z]
uart_pin = PB5
run_current = 0.650
stealthchop_threshold = 999999

[tmc2208 stepper_z1]
uart_pin = PG10
run_current = 0.650
stealthchop_threshold = 999999

[tmc2208 stepper_z2]
uart_pin = PD4
run_current = 0.650
stealthchop_threshold = 999999

[tmc2208 stepper_z3]
uart_pin = PC12
run_current = 0.650
stealthchop_threshold = 999999

[tmc2208 share_stepper]
uart_pin = PG4
run_current = 0.650
stealthchop_threshold = 999999

[tmc5160 stepper_x]
cs_pin = PC14
sense_resistor = 0.075
run_current = 1
stealthchop_threshold = 0
spi_software_mosi_pin = PG15
spi_software_miso_pin = PB6
spi_software_sclk_pin = PB3

[tmc5160 stepper_y]
cs_pin = PE1
sense_resistor = 0.075
run_current = 1
stealthchop_threshold = 0
spi_software_mosi_pin = PG15
spi_software_miso_pin = PB6
spi_software_sclk_pin = PB3

[board_pins]
aliases =
EXP1_1=PC11, EXP1_3=PC10, EXP1_5=PG8, EXP1_7=PG6, EXP1_9=,
EXP1_2=PA15, EXP1_4=PA8, EXP1_6=PG7, EXP1_8=PG5, EXP1_10=<5V>,
EXP2_1=PB14, EXP2_3=PD10, EXP2_5=PH10, EXP2_7=PB10, EXP2_9=,
EXP2_2=PB13, EXP2_4=PB12, EXP2_6=PB15, EXP2_8=, EXP2_10=

[gcode_macro T0]
description = switch to T0
gcode =
ACTIVATE_EXTRUDER EXTRUDER=extruder
SYNC_EXTRUDER_MOTION EXTRUDER=share_stepper MOTION_QUEUE=extruder

[gcode_macro T1]
description = switch to T1
gcode =
ACTIVATE_EXTRUDER EXTRUDER=extruder1
SYNC_EXTRUDER_MOTION EXTRUDER=share_stepper MOTION_QUEUE=extruder1

[gcode_macro t_offset]
description = set gcode offset to current tool head
gcode =
SET_GCODE_OFFSET

Config error
Traceback (most recent call last):
File “/home/pi/klipper/klippy/klippy.py”, line 175, in _connect
self._read_config()
File “/home/pi/klipper/klippy/klippy.py”, line 141, in _read_config
self.load_object(config, section_config.get_name(), None)
File “/home/pi/klipper/klippy/klippy.py”, line 130, in load_object
self.objects[section] = init_func(config.getsection(section))
File “/home/pi/klipper/klippy/extras/tmc2208.py”, line 223, in load_config_prefix
return TMC2208(config)
File “/home/pi/klipper/klippy/extras/tmc2208.py”, line 193, in init
cmdhelper = tmc.TMCCommandHelper(config, self.mcu_tmc, current_helper)
File “/home/pi/klipper/klippy/extras/tmc.py”, line 234, in init
TMCMicrostepHelper(config, mcu_tmc)
File “/home/pi/klipper/klippy/extras/tmc.py”, line 514, in TMCMicrostepHelper
mres = ms_config.getchoice(‘microsteps’, steps)
File “/home/pi/klipper/klippy/configfile.py”, line 73, in getchoice
c = self.getint(option, default, note_valid=note_valid)
File “/home/pi/klipper/klippy/configfile.py”, line 62, in getint
minval, maxval, note_valid=note_valid)
File “/home/pi/klipper/klippy/configfile.py”, line 33, in _get_wrapper
% (option, self.section))
Error: Option ‘microsteps’ in section ‘share_stepper’ must be specified
Option ‘microsteps’ in section ‘share_stepper’ must be specified

Once the underlying issue is corrected, use the “RESTART”
command to reload the config and restart the host software.
Printer is halted

Transition to shutdown state: Shutdown due to M112 command
Reactor garbage collection: (67814.302204227, 0.0, 0.0)
Option ‘microsteps’ in section ‘share_stepper’ must be specified

Once the underlying issue is corrected, use the “RESTART”
command to reload the config and restart the host software.
Printer is halted

Option ‘microsteps’ in section ‘share_stepper’ must be specified

Once the underlying issue is corrected, use the “RESTART”
command to reload the config and restart the host software.
Printer is halted

Option ‘microsteps’ in section ‘share_stepper’ must be specified

Once the underlying issue is corrected, use the “RESTART”
command to reload the config and restart the host software.
Printer is halted

Hello @tphan !

Can you please put your code snippets into code braces </>?
You find them in the top bar of the edit window.

Without them, spaces and other letters get lost and its difficult to find out what is maybe wrong Thank you very much.

Ok thanks for reply. I actually have an enlighten moment and find out how to do it.

Replace [tmc2208 share_stepper] with [tmc2208 extruder_stepper share_stepper]

-Kevin

That is exactly what I did . Thank You for confirming.
Greatly appreciated.