CrealityOfficial / E3-Free-runs-Silent-Motherboard

Driver use TMC2209 ,Config with uart fit for High speed 3D Printer hardware
GNU General Public License v3.0
19 stars 13 forks source link

Unable to read tmc uart 'stepper_z' register IFCNT #7

Open dodoguigui opened 11 months ago

dodoguigui commented 11 months ago

Hi,

Just change the board on my Sermoon D1 with the Creality E3 Free Run. When I try homing, get error :

Unable to read tmc uart 'stepper_z' register IFCNT Once the underlying issue is corrected, use the FIRMWARE_RESTART command to reset the firmware, reload the config, and restart the host software. Printer is shutdown

The config file looks ok ... somebody can help ?

fluidd set

[virtual_sdcard] path: ~/gcode_files

[display_status]

[pause_resume]

[gcode_macro PAUSE] description: Pause the actual running print rename_existing: PAUSE_BASE

change this if you need more or less extrusion

variable_extrude: 1.0 gcode:

read E from pause macro

{% set E = printer["gcode_macro PAUSE"].extrude|float %}

set park positon for x and y

default is your max posion from your printer.cfg

{% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %} {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}

calculate save lift position

{% set max_z = printer.toolhead.axis_maximum.z|float %} {% set act_z = printer.toolhead.position.z|float %} {% if act_z < (max_z - 2.0) %} {% set z_safe = 2.0 %} {% else %} {% set z_safe = max_z - act_z %} {% endif %}

end of definitions

PAUSE_BASE G91 {% if printer.extruder.can_extrude|lower == 'true' %} G1 E-{E} F2100 {% else %} {action_respond_info("Extruder not hot enough")} {% endif %} {% if "xyz" in printer.toolhead.homed_axes %} G1 Z{z_safe} F900 G90 G1 X{x_park} Y{y_park} F6000 {% else %} {action_respond_info("Printer not homed")} {% endif %}

[gcode_macro RESUME] description: Resume the actual running print rename_existing: RESUME_BASE gcode:

read E from pause macro

{% set E = printer["gcode_macro PAUSE"].extrude|float %}

get VELOCITY parameter if specified

{% if 'VELOCITY' in params|upper %} {% set get_params = ('VELOCITY=' + params.VELOCITY) %} {%else %} {% set get_params = "" %} {% endif %}

end of definitions

{% if printer.extruder.can_extrude|lower == 'true' %} G91 G1 E{E} F2100 {% else %} {action_respond_info("Extruder not hot enough")} {% endif %}
RESUME_BASE {get_params}

[gcode_macro CANCEL_PRINT] description: Cancel the actual running print rename_existing: CANCEL_PRINT_BASE gcode: TURN_OFF_HEATERS {% if "xyz" in printer.toolhead.homed_axes %} G91 G1 Z4.5 F300 G90 {% else %} {action_respond_info("Printer not homed")} {% endif %} G28 X Y {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %} G1 Y{y_park} F2000 M84 CANCEL_PRINT_BASE

[stepper_x] step_pin: PC2 dir_pin: !PB9 enable_pin: !PC3 rotation_distance: 40 microsteps: 16 endstop_pin: ^PA5 position_min: -5 position_endstop: -5 position_max: 282 homing_speed: 50

[stepper_y] step_pin: PB8 dir_pin: PB7 enable_pin: !PC3 rotation_distance: 40 microsteps: 16 endstop_pin: ^PA6 position_min: -2 position_endstop: -2 position_max: 272 homing_speed: 50

[stepper_z] step_pin: PB6 dir_pin: PB5 enable_pin: !PC3 rotation_distance: 8 microsteps: 16

position_endstop: 0.0 #disable to use bltouch

endstop_pin: ^PA7 #disable to use bltouch

endstop_pin: probe:z_virtual_endstop #enable to use bltouch position_min: -5 #enable to use bltouch position_max: 310 homing_speed: 4 second_homing_speed: 1 homing_retract_dist: 2.0

[extruder] max_extrude_only_distance: 1000.0 step_pin: PB4 dir_pin: PB3 enable_pin: !PC3 microsteps: 16 rotation_distance: 32.2 nozzle_diameter: 0.400 filament_diameter: 1.750 heater_pin: PA1 sensor_type: EPCOS 100K B57560G104F sensor_pin: PC5 control: pid pid_kp = 28.769 pid_ki = 1.844 pid_kd = 112.197 min_temp: 0 max_temp: 250

[heater_bed] heater_pin: PB10 sensor_type: EPCOS 100K B57560G104F sensor_pin: PC4 control: pid pid_Kp: 73.085 pid_Ki: 0.856 pid_Kd: 1559.446 min_temp: 0 max_temp: 80

########################################

TMC UART configuration

########################################

[tmc2209 stepper_x] uart_pin: PC7 tx_pin: PC6 interpolate: True run_current: 0.6 hold_current: 0.35 uart_address: 0 sense_resistor: 0.150 stealthchop_threshold: 0

[tmc2209 stepper_y] uart_pin: PC7 tx_pin: PC6 interpolate: True run_current: 0.6 hold_current: 0.35 uart_address: 1 sense_resistor: 0.150 stealthchop_threshold: 0

[tmc2209 stepper_z] uart_pin: PC7 tx_pin: PC6 interpolate: True run_current: 0.7 hold_current: 0.4 uart_address: 2 sense_resistor: 0.150 stealthchop_threshold: 0

[tmc2209 extruder] uart_pin: PC7 tx_pin: PC6 interpolate: false run_current: 0.8 hold_current: 0.2 uart_address: 3 sense_resistor: 0.110 stealthchop_threshold: 0

[verify_heater extruder] check_gain_time: 200 hysteresis: 5

[fan] pin: PA0 kick_start_time: 0.5

[heater_fan my_nozzle_fan] pin: PC0 max_power: 0.8 shutdown_speed : 0 heater:extruder heater_temp : 60 fan_speed : 1.0

[mcu] serial: /dev/serial/by-id/usb_serial_4 restart_method: command

[mcu rpi] serial: /tmp/klipper_host_mcu

[adxl345] cs_pin: rpi:None spi_speed: 2000000 spi_bus: spidev2.0

[resonance_tester] accel_chip: adxl345 accel_per_hz: 70 probe_points: 130,130,10

[filament_switch_sensor filament_sensor] pause_on_runout: true switch_pin: ^!PA4

[bltouch] sensor_pin: ^PB1 #signal check port ^stand for pull up control_pin: PB0 #singal control prot x_offset: 51 y_offset: -8 z_offset = 2.050

[safe_z_home] home_xy_position: 96.5, 145.5 speed: 100 z_hop: 10 z_hop_speed: 5

[bed_mesh] # enable for BLTouch speed: 100 mesh_min: 48, 20 mesh_max: 260, 250 algorithm: bicubic probe_count: 5, 5

[bed_screws] screw1: 25, 35 screw2: 252, 35 screw3: 252, 255 screw4: 25, 255

[gcode_macro G29]
gcode: G28 bed_mesh_calibrate G1 X0 Y0 Z10 F4200 save_config

[gcode_arcs]

resolution: 1.0

[printer] kinematics: cartesian max_velocity: 500 max_accel: 4900 max_z_velocity: 10 max_z_accel: 1000 square_corner_velocity: 5.0