' Not a valid input pin' after upgrade

HI, Been using Klipper with my Sidewinder X1 for about 8 months and it has been working great.

Today I upgraded the software and now the MCU shutsdown immediatly and the klippy log has the following messages in it.
“Transition to shutdown state: MCU ‘mcu’ shutdown: Not a valid input pin”
and
“error: MCU ‘mcu’ error during config: Not a valid input pin”

This was working fine before the upgrade, and I even had the BL-TOUCH configured and working.

I have checked through the config to make sure there was no typos, and double checked the pins, Can anyone suggest a way I can determine the problem pin as the klippy.log file doesnt help.

printer.cfg (4.4 KB)

klippy.log (27.0 KB)

This is the printer config from my sx1, and it works fine

[include kiauh_macros.cfg]

[include Dragi_Spielwiese.cfg]

########## Addons ########

[include Config_Addons/Auto_Bed_Mesh.cfg]
[include Config_Addons/Filament_runout_sensor.cfg]
[include Config_Addons/PiTemp.cfg]
[include Config_Addons/NeoPixel.cfg]
[include Config_Addons/timelapse.cfg]

[mcu]
#make sure this reflects your serial port you found when flashing klipper
#serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
serial: /dev/ttyAMA0
restart_method: command
pin_map: arduino

[mcu host]
serial: /tmp/klipper_host_mcu

[virtual_sdcard]
path: ~/gcode_files


[stepper_x]
step_pin: ar54
dir_pin: ar55
enable_pin: !ar38
microsteps: 16
rotation_distance: 40
endstop_pin: ^!ar3
position_endstop: 0
position_max: 310
homing_speed: 40.0

[stepper_y]
step_pin: ar60
dir_pin: ar61
enable_pin: !ar56
microsteps: 16
rotation_distance: 40
endstop_pin: ^!ar14
position_endstop: 0
position_max: 310
homing_speed: 40
homing_positive_dir: false

[stepper_z]
step_pin: ar46
dir_pin: !ar48
enable_pin: !ar62
microsteps: 16
rotation_distance: 8
#endstop_pin: ^!ar18
endstop_pin: probe:z_virtual_endstop
#position_endstop: 0
position_min: -3
position_max: 400
homing_speed: 30
second_homing_speed: 1

[stepper_z1]
step_pin: ar36
dir_pin: !ar34
enable_pin: !ar30
microsteps: 16
rotation_distance: 8

[extruder]
step_pin: ar26
dir_pin: ar28
enable_pin: !ar24
microsteps: 16
rotation_distance: 7
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: ar10
sensor_type: EPCOS 100K B57560G104F
sensor_pin: analog13
min_extrude_temp: 190
min_temp: 5
max_temp: 240
max_extrude_only_distance: 500
max_extrude_cross_section: 2.2

[heater_bed]
heater_pin: ar8
sensor_type: EPCOS 100K B57560G104F
sensor_pin: analog14
min_temp: 5
max_temp: 150

[fan]
pin: ar9
kick_start_time: 0.500

[heater_fan my_nozzle_fan]
pin: ar7
heater: extruder
heater_temp: 50.0
fan_speed: 1.0


[printer]
kinematics: cartesian
max_velocity: 200
max_accel: 3000
max_z_velocity: 50
max_z_accel: 100
square_corner_velocity: 5 

[bed_screws]
screw1: 55,55
screw1_name: front left
screw2: 255,55
screw2_name: front right
screw3: 255,255
screw3_name: back right
screw4: 55,255
screw4_name: back left
speed: 100.0


[screws_tilt_adjust]
screw1: 22,83
screw1_name: front left
screw2: 222,83
screw2_name: front right
screw3: 22,283
screw3_name: back left
screw4: 222,283
screw4_name: back right
speed: 100.0
screw_thread: CW-M5

[bltouch]
sensor_pin: ar19
control_pin: ar11 
#x_offset:28
#y_offset:-33
x_offset:38
y_offset:-15
z_offset:2.045
speed:10
samples:3
samples_result:average
set_output_mode: 5V
probe_with_touch_mode: true
stow_on_each_sample: false

[safe_z_home]
home_xy_position: 122,183
speed: 80
z_hop: 20               
z_hop_speed: 20

[bed_mesh]
speed: 800
mesh_min: 38,30
mesh_max: 270,270
probe_count: 9,9
mesh_pps: 2,2
algorithm: bicubic
bicubic_tension: 0.2
move_check_distance: 3.0
split_delta_z: .010
fade_start: 1.0 
fade_end: 5.0

[gcode_macro G29]
gcode:
 BED_MESH_CLEAR
 G28
 BED_MESH_CALIBRATE
 BED_MESH_PROFILE SAVE=x1

[gcode_macro START_PRINT]
# Reference https://github.com/KevinOConnor/klipper/blob/master/docs/Config_Reference.md#gcode_macroA
# On how to override default parameters
default_parameter_BED_TEMP: 60
default_parameter_EXTRUDER_TEMP: 200	

gcode:
    # enable PSU
    #SET_PIN PIN=PrinterPSU VALUE=1
    #LED on
    M105.1
    ## Start Code von Cura übernommen ##
    G28 ; home all axes
    M117 Purge extruder
    G92 E0 ; reset extruder
    G1 Z1.0 F3000 ; move z up little to prevent scratching of surface
    G1 X2 Y20 Z0.3 F5000.0 ; move to start-line position
    G1 X2 Y200.0 Z0.3 F1500.0 E15 ; draw 1st line
    G1 X2 Y200.0 Z0.4 F5000.0 ; move to side a little
    G1 X2 Y20 Z0.4 F1500.0 E30 ; draw 2nd line
    G92 E0 ; reset extruder
    G1 Z1.0 F3000 ; move z up little to prevent scratching of surface

### Start Code von der muster Config ###
    # Home the printer
#	G28 				 		  						 
    # Use absolute coordinates
#    G90
    # Move the nozzle near the bed
#    G1 X0 Y0 Z5 F3000
    # Move the nozzle very close to the bed
#    G1 Z0.15 F300
#    G92 E0 ;Reset Extruder
#    G1 X20 Y5 Z0.3 F5000.0			   
#    G1 Z0.3 F1000 				    
#    G1 X200 Y5 F1500.0 E15 			   
#    G1 X200 Y5.3 Z0.3 F5000.0			    
#    G1 X5.3  Y5.3 Z0.3 F1500.0 E30 			
#    G1 Z3 F3000 				     
#    G21 ; set units to millimeters
#    G90 ; use absolute coordinates
#    M83 ; use relative distances for extrusion
#    G92 E0

[gcode_macro END_PRINT]
gcode:
    ## End Code von Cura übernommen ##
    G91 ; relative positioning
    G1 Z30.0 F3000 ; move z up little to prevent scratching of print
    G90 ; absolute positioning
    G1 X150 Y200 F1000 ; prepare for part removal
    TIMELAPSE_RENDER
    M104 S0 ; turn off extruder
    M140 S0 ; turn off bed
    G1 X150 Y300 F1000 ; prepare for part removal
    M84 ; disable motors
    M106 S0 ; turn off fan


### End Code von der muster Config ###
    # Turn off bed, extruder, and fan
#    M140 S0
#    M104 S0
#    M106 S0
    # Move nozzle away from print while retracting
#    G91
#    G1 X-2 Y-2 E-3 F300
    # Raise nozzle by 10mm
#    G1 Z30 F3000
#    G90
    # Disable steppers
#    M84
    # Disable PSU
    SET_PIN PIN=PrinterPSU VALUE=0

[pause_resume]
recover_velocity: 50.

#[filament_switch_sensor my_sensor]
#Move filament runout sensor from TFT to X+ endstop pin. Umcomment all but this line if you want to use this
#pause_on_runout: False
#runout_gcode: PAUSE
#insert_gcode: RESUME
#switch_pin: ar2

#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 21.465
#*# pid_ki = 0.980
#*# pid_kd = 117.521
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 48.362
#*# pid_ki = 0.638
#*# pid_kd = 915.854
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# 	  0.297500, 0.172500, 0.120000, 0.057500, 0.055000, 0.057500, 0.100000, 0.175000
#*# 	  0.205000, 0.095000, 0.045000, 0.007500, 0.015000, 0.015000, 0.055000, 0.167500
#*# 	  0.147500, 0.025000, -0.010000, -0.025000, -0.017500, -0.007500, 0.037500, 0.135000
#*# 	  0.115000, 0.015000, -0.012500, -0.040000, -0.025000, -0.025000, 0.045000, 0.125000
#*# 	  0.130000, 0.032500, -0.007500, -0.025000, -0.015000, -0.005000, 0.040000, 0.127500
#*# 	  0.137500, 0.057500, 0.017500, 0.002500, 0.032500, 0.042500, 0.090000, 0.167500
#*# 	  0.200000, 0.112500, 0.057500, 0.042500, 0.055000, 0.060000, 0.107500, 0.182500
#*# 	  0.257500, 0.172500, 0.097500, 0.080000, 0.072500, 0.067500, 0.105000, 0.180000
#*# tension = 0.2
#*# min_x = 38.0
#*# algo = bicubic
#*# y_count = 8
#*# mesh_y_pps = 2
#*# min_y = 30.0
#*# x_count = 8
#*# max_y = 269.96
#*# mesh_x_pps = 2
#*# max_x = 269.97

Thanks, but I get the same message with your config… had to comment out the include statements but it still gives me the same message.

I would be curios to see what you have done in the included files though if you dont mind sharing.

I Post the files when i’am home.

Have you restarted the pi?

Note That i Have the pi as second mcu and the mcu is connected by uart

Yeah, restarted and even turned everything off.

Reverted back to the last commit of April and it works again. I Would still like to resolve this so I can move forward.

Did you compile and flash the MCU’s firmware after upgrading? Looks like there’s some room for improvement in the error reporting…

Flashed it, installed the new Host software. Same process I used to revert back.

Yeah, it looks like the code just goes into shutdown without any meaningful reporting. I took a look to see if I could work it out but the code just uses an unsigned int, and I could not see an easy way to determine the pin that was the problem.

It looks like there was an error in a recent commit. Hopefully it should be fixed now (commit 7fddc5a8).

-Kevin

2 Likes

Do you want the configs regardless?

Yes Please. I want to try a few things you appear to have working

Thanks

Thanks, I will try again and let you know if it didn’t fix it.

@koconnor That fixed it. Thanks