"Failed to enable endstops" error from 1LC board using IO_3
-
I have a 1LC board with an endstop soldered onto IO_3 , which has been working fine for quite a long time now. Today, it has suddenly decided that it doesn't want to work and I am getting this error on trying to home:
G28
Error: in file macro line 7: G1: Failed to enable endstops
I have the endstops plugin installed and the switch doesn't register at all, I've also tried using a jumper wire to connet the ground to IO_3 and still no luck in getting it to trigger the endstop plugin. The 1LC is functioning just fine other than that, the hotend works, extruder is driven, fans spin, temp sensors sense, filament is detected.
Any ideas on things I could try?
-
@Ben-0 said in "Failed to enable endstops" error from 1LC board using IO_3:
RepRapFirmware for Duet 3 MB6HC version 3.5.0-rc.2 (2023-12-14 10:32:22) running on Duet 3 MB6HC v1.01 (standalone mode)
Duet TOOL1LC rev 1.1 or later firmware version 3.5beta2 (2023-02-06 18:43:58)Your toolboard is on a different firmware version to the mainboard. This is probably causing the problem. Update the firmware on the toolboard. Make sure the "Duet3Firmware_TOOL1LC.bin" file from https://github.com/Duet3D/RepRapFirmware/releases/tag/3.5.0-rc.2 is uploaded to the /firmware folder. If you do this in DWC, it should prompt you to update the firmware on the board. If not, send
M997 B121
.Also, this error in the M122 report:
Error in macro line 36 while starting up: Driver 121.0 does not support mode 'unknown'
Is this line in config.g:
M569 P121.0 S0 D4
D4 is for closed loop. You probably mean D3 for stealthChop.
Ian
-
@Ben-0 Please post your config.g and homeall.g, and in the console send
M122
andM122 B#
where # is the CAN address of the 1LC. Additionally, please sendM98 P"config.g"
and post any errors that produces.Ian
-
@droftarts
Config.g; Configuration file for Duet 3 MB 6HC (firmware version 3.3) ; executed by the firmware on start-up ; ; generated by RepRapFirmware Configuration Tool v3.3.14 on Sun Nov 20 2022 06:00:55 GMT+1300 (New Zealand Daylight Time) M929 P"eventlog.txt" S3 ; start logging at debug level to file eventlog.txt ; General preferences M452 C"out9" R255 F200 ; Enable Laser mode, on out9, with max intensity being 255, and a PWM frequency of 200 M575 P1 S1 B57600 ; enable support for PanelDue G90 ; send absolute coordinates... M83 ; ...but relative extruder moves M550 P"Printer" ; set printer name M669 K1 ; select CoreXY mode ; Wait a moment for the CAN expansion boards to start G4 S2 ; Network M552 P192.168.1.200 S1 ; enable network and set IP address M553 P255.255.255.0 ; set netmask M554 P192.168.1.1 ; set gateway M586 P0 S1 ; enable HTTP M586 P1 S1 ; enable FTP M586 P2 S1 ; enable Telnet ; Drives M569 P0.0 S1 M569 P0.1 S1 M569 P0.2 S0 ;M569 P0.3 S0 M569 P0.4 S0 ;M569 P0.5 S1 M569 P1.0 S1 M569 P1.1 S0 M569 P121.0 S0 D4 M584 X0.0 Y0.1 Z0.4:0.2:1.1:1.0 E121.0 ; set drive mapping M350 X256 Y256 Z256 I0 ; configure microstepping without interpolation M350 E16 I1 ; configure microstepping with interpolation M92 X1607.55 Y1607.55 Z25600.00 E355.27 ; set steps per mm M566 X900.00 Y900.00 Z60.00 E120.00 ; set maximum instantaneous speed changes (mm/min) M203 X7200.00 Y7200.00 Z180.00 E1200.00 ; set maximum speeds (mm/min) M201 X500.00 Y500.00 Z20.00 E250.00 ; set accelerations (mm/s^2) M906 X1200 Y1200 Z1200:1200:1200:1200 E1200 I30 ; set motor currents (mA) and motor idle factor in per cent M84 S30 ; Set idle timeout ;Leadscrew positions M671 X-15:450:-15:450 Y512:512:-25:-25 S5 ; define the location of leadscrews, or relavant pivot points per motor ; Axis Limits M208 X-3 Y-18 Z0 S1 ; set axis minima M208 X415 Y355 Z350 S0 ; set axis maxima ; Endstops M574 X1 S1 P"121.!io3.in" ; configure switch-type (e.g. microswitch) endstop for low end on X via pin io3.in M574 Y1 S1 P"!io4.in" ; configure switch-type (e.g. microswitch) endstop for low end on Y via pin io4.in M574 Z1 S2 ; configure Z-probe endstop for low end on Z ;Sensors M308 S10 Y"mcu-temp" A"MCU" ; defines sensor 10 as MCU temperature sensor M308 S12 P"temp1" Y"thermistor" A"Chamber1" T16291 B4138 ; defines sensor 12 as Chamber sensor 1 M308 S13 P"temp2" Y"thermistor" A"Chamber2" T16291 B4138 ; defines sensor 13 as Chamber sensor 2 M308 S14 P"1.temp0" Y"thermistor" A"Chamber3" T16291 B4138 ; defines sensor 14 as Chamber sensor 3 M308 S15 P"1.temp1" Y"thermistor" A"Chamber4" T16291 B4138 ; defines sensor 15 as Chamber sensor 4 M308 S16 P"1.temp2" Y"thermistor" A"Chamber5" T16291 B4138 ; defines sensor 16 as Chamber sensor 5 ;M308 S11 Y"drivers" A"Duet stepper drivers" ; defines sensor 11 as stepper driver temperature sensor ; Z-Probe M950 S0 C"121.io0.out" ; create servo pin 0 for BLTouch M558 P9 C"121.io0.in" H5 F120 T6000 ; set Z probe type to bltouch and the dive height + speeds G31 K0 P500 X-30.0 Y30.0 Z1.645 ; set Z probe trigger value, offset and trigger height - lower number makes distance to bed greater M557 X50:350 Y50:350 S100 ; define mesh grid ; Heaters M308 S0 P"temp0" Y"thermistor" T100000 B4138 ; configure sensor 0 as thermistor on pin temp0 M950 H0 C"out0" T0 ; create bed heater output on out0 and map it to sensor 0 M307 H0 R0.239 K0.403:0.000 D3.26 E1.35 S1.00 B0 ; disable bang-bang mode for the bed heater and set PWM limit M140 H0 ; map heated bed to heater 0 M143 H0 S120 ; set temperature limit for heater 0 to 120C M308 S1 P"121.temp0" Y"thermistor" T100000 B4138 ; configure sensor 1 as thermistor on pin temp1 M950 H1 C"121.out0" T1 ; create nozzle heater output on out1 and map it to sensor 1 M307 H1 R5.333 K0.930:0.000 D1.44 E1.35 S1.00 B0 V24.1 ; disable bang-bang mode for heater and set PWM limit M143 H1 S280 ; set temperature limit for heater 1 to 280C ; Fans M950 F0 C"121.out1" Q500 ; create fan 0 on pin out7 and set its frequency M106 P0 S1 L255 H-1 C"Extruder" ; set fan 0 value. Thermostatic control is turned off M950 F1 C"121.out2" Q500 ; create fan 1 on pin out8 and set its frequency M106 P1 S0 H-1 C"Part Fan" ; set fan 1 value. Thermostatic control is turned off ;M950 F2 C"out9" Q500 ; create fan 2 on pin out9 and set its frequency ;M106 P2 S0 H-1 C"Case" ; set fan 2 value. Thermostatic control is turned off M950 F2 C"out9" ; create fan #1 M106 P2 S1 B0.1 C"Case" ; configure fan #1 ; Tool 0 M563 P0 D0 H1 F1 ; define tool 0 G10 P0 X0 Y0 Z0 ; set tool 0 axis offsets G10 P0 R0 S0 ; set initial tool 0 active and standby temperatures to 0C M572 D0 S0.025 ; set pressure advance ; Miscellaneous M911 S21.0 R23.0 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; set voltage thresholds and actions to run on power loss M955 P121.0 I10 ; accelerometer config M593 P"zvddd" F56 ; Input Shaping T0 ; Select Tool 0 M591 D0 P2 C"121.io1.in" S1 ; filament sensor on tool 0 M451 ; Enable Printer Mode
homeall.g
; Configuration file for Duet 3 MB 6HC (firmware version 3.3) ; executed by the firmware on start-up ; ; generated by RepRapFirmware Configuration Tool v3.3.14 on Sun Nov 20 2022 06:00:55 GMT+1300 (New Zealand Daylight Time) M929 P"eventlog.txt" S3 ; start logging at debug level to file eventlog.txt ; General preferences M452 C"out9" R255 F200 ; Enable Laser mode, on out9, with max intensity being 255, and a PWM frequency of 200 M575 P1 S1 B57600 ; enable support for PanelDue G90 ; send absolute coordinates... M83 ; ...but relative extruder moves M550 P"Printer" ; set printer name M669 K1 ; select CoreXY mode ; Wait a moment for the CAN expansion boards to start G4 S2 ; Network M552 P192.168.1.200 S1 ; enable network and set IP address M553 P255.255.255.0 ; set netmask M554 P192.168.1.1 ; set gateway M586 P0 S1 ; enable HTTP M586 P1 S1 ; enable FTP M586 P2 S1 ; enable Telnet ; Drives M569 P0.0 S1 M569 P0.1 S1 M569 P0.2 S0 ;M569 P0.3 S0 M569 P0.4 S0 ;M569 P0.5 S1 M569 P1.0 S1 M569 P1.1 S0 M569 P121.0 S0 D4 M584 X0.0 Y0.1 Z0.4:0.2:1.1:1.0 E121.0 ; set drive mapping M350 X256 Y256 Z256 I0 ; configure microstepping without interpolation M350 E16 I1 ; configure microstepping with interpolation M92 X1607.55 Y1607.55 Z25600.00 E355.27 ; set steps per mm M566 X900.00 Y900.00 Z60.00 E120.00 ; set maximum instantaneous speed changes (mm/min) M203 X7200.00 Y7200.00 Z180.00 E1200.00 ; set maximum speeds (mm/min) M201 X500.00 Y500.00 Z20.00 E250.00 ; set accelerations (mm/s^2) M906 X1200 Y1200 Z1200:1200:1200:1200 E1200 I30 ; set motor currents (mA) and motor idle factor in per cent M84 S30 ; Set idle timeout ;Leadscrew positions M671 X-15:450:-15:450 Y512:512:-25:-25 S5 ; define the location of leadscrews, or relavant pivot points per motor ; Axis Limits M208 X-3 Y-18 Z0 S1 ; set axis minima M208 X415 Y355 Z350 S0 ; set axis maxima ; Endstops M574 X1 S1 P"121.!io3.in" ; configure switch-type (e.g. microswitch) endstop for low end on X via pin io3.in M574 Y1 S1 P"!io4.in" ; configure switch-type (e.g. microswitch) endstop for low end on Y via pin io4.in M574 Z1 S2 ; configure Z-probe endstop for low end on Z ;Sensors M308 S10 Y"mcu-temp" A"MCU" ; defines sensor 10 as MCU temperature sensor M308 S12 P"temp1" Y"thermistor" A"Chamber1" T16291 B4138 ; defines sensor 12 as Chamber sensor 1 M308 S13 P"temp2" Y"thermistor" A"Chamber2" T16291 B4138 ; defines sensor 13 as Chamber sensor 2 M308 S14 P"1.temp0" Y"thermistor" A"Chamber3" T16291 B4138 ; defines sensor 14 as Chamber sensor 3 M308 S15 P"1.temp1" Y"thermistor" A"Chamber4" T16291 B4138 ; defines sensor 15 as Chamber sensor 4 M308 S16 P"1.temp2" Y"thermistor" A"Chamber5" T16291 B4138 ; defines sensor 16 as Chamber sensor 5 ;M308 S11 Y"drivers" A"Duet stepper drivers" ; defines sensor 11 as stepper driver temperature sensor ; Z-Probe M950 S0 C"121.io0.out" ; create servo pin 0 for BLTouch M558 P9 C"121.io0.in" H5 F120 T6000 ; set Z probe type to bltouch and the dive height + speeds G31 K0 P500 X-30.0 Y30.0 Z1.645 ; set Z probe trigger value, offset and trigger height - lower number makes distance to bed greater M557 X50:350 Y50:350 S100 ; define mesh grid ; Heaters M308 S0 P"temp0" Y"thermistor" T100000 B4138 ; configure sensor 0 as thermistor on pin temp0 M950 H0 C"out0" T0 ; create bed heater output on out0 and map it to sensor 0 M307 H0 R0.239 K0.403:0.000 D3.26 E1.35 S1.00 B0 ; disable bang-bang mode for the bed heater and set PWM limit M140 H0 ; map heated bed to heater 0 M143 H0 S120 ; set temperature limit for heater 0 to 120C M308 S1 P"121.temp0" Y"thermistor" T100000 B4138 ; configure sensor 1 as thermistor on pin temp1 M950 H1 C"121.out0" T1 ; create nozzle heater output on out1 and map it to sensor 1 M307 H1 R5.333 K0.930:0.000 D1.44 E1.35 S1.00 B0 V24.1 ; disable bang-bang mode for heater and set PWM limit M143 H1 S280 ; set temperature limit for heater 1 to 280C ; Fans M950 F0 C"121.out1" Q500 ; create fan 0 on pin out7 and set its frequency M106 P0 S1 L255 H-1 C"Extruder" ; set fan 0 value. Thermostatic control is turned off M950 F1 C"121.out2" Q500 ; create fan 1 on pin out8 and set its frequency M106 P1 S0 H-1 C"Part Fan" ; set fan 1 value. Thermostatic control is turned off ;M950 F2 C"out9" Q500 ; create fan 2 on pin out9 and set its frequency ;M106 P2 S0 H-1 C"Case" ; set fan 2 value. Thermostatic control is turned off M950 F2 C"out9" ; create fan #1 M106 P2 S1 B0.1 C"Case" ; configure fan #1 ; Tool 0 M563 P0 D0 H1 F1 ; define tool 0 G10 P0 X0 Y0 Z0 ; set tool 0 axis offsets G10 P0 R0 S0 ; set initial tool 0 active and standby temperatures to 0C M572 D0 S0.025 ; set pressure advance ; Miscellaneous M911 S21.0 R23.0 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; set voltage thresholds and actions to run on power loss M955 P121.0 I10 ; accelerometer config M593 P"zvddd" F56 ; Input Shaping T0 ; Select Tool 0 M591 D0 P2 C"121.io1.in" S1 ; filament sensor on tool 0 M451 ; Enable Printer Mode
M122
=== Diagnostics === RepRapFirmware for Duet 3 MB6HC version 3.5.0-rc.2 (2023-12-14 10:32:22) running on Duet 3 MB6HC v1.01 (standalone mode) Board ID: 08DJM-9P63L-DJMSS-6J1DG-3S46Q-KVF38 Used output buffers: 1 of 40 (28 max) Error in macro line 36 while starting up: Driver 121.0 does not support mode 'unknown' === RTOS === Static ram: 154844 Dynamic ram: 121648 of which 336 recycled Never used RAM 66308, free system stack 202 words Tasks: NETWORK(1,ready,34.1%,131) ETHERNET(5,nWait,0.3%,113) LASER(5,nWait,0.0%,274) HEAT(3,nWait,0.0%,334) Move(4,nWait,0.0%,339) CanReceiv(6,nWait,0.0%,772) CanSender(5,nWait,0.0%,334) CanClock(7,delaying,0.0%,350) TMC(4,nWait,7.7%,59) MAIN(1,running,53.7%,103) IDLE(0,ready,4.3%,30), total 100.0% Owned mutexes: === Platform === Last reset 00:00:46 ago, cause: power up Last software reset at 2024-01-13 08:31, reason: User, Gcodes spinning, available RAM 66308, slot 2 Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x00400000 BFAR 0x00000000 SP 0x00000000 Task MAIN Freestk 0 n/a Error status: 0x00 Aux0 errors 0,0,0 MCU temperature: min 32.9, current 39.1, max 39.2 Supply voltage: min 23.8, current 23.9, max 24.0, under voltage events: 0, over voltage events: 0, power good: yes 12V rail voltage: min 12.1, current 12.2, max 12.2, under voltage events: 0 Heap OK, handles allocated/used 99/2, heap memory allocated/used/recyclable 2048/56/0, gc cycles 0 Events: 0 queued, 0 completed Driver 0: standstill, SG min n/a, mspos 0, reads 62707, writes 14 timeouts 0 Driver 1: standstill, SG min n/a, mspos 0, reads 62707, writes 14 timeouts 0 Driver 2: standstill, SG min n/a, mspos 0, reads 62708, writes 14 timeouts 0 Driver 3: standstill, SG min n/a, mspos 8, reads 62711, writes 11 timeouts 0 Driver 4: standstill, SG min n/a, mspos 0, reads 62713, writes 14 timeouts 0 Driver 5: standstill, SG min n/a, mspos 8, reads 62717, writes 11 timeouts 0 Date/time: 2024-01-13 08:37:17 Slowest loop: 4.72ms; fastest: 0.07ms === Storage === Free file entries: 19 SD card 0 detected, interface speed: 25.0MBytes/sec SD card longest read time 3.3ms, write time 115.8ms, max retries 0 === Move === DMs created 125, segments created 0, maxWait 0ms, bed compensation in use: none, height map offset 0.000, max steps late 0, ebfmin 0.00, ebfmax 0.00 no step interrupt scheduled Moves shaped first try 0, on retry 0, too short 0, wrong shape 0, maybepossible 0 === DDARing 0 === Scheduled moves 0, completed 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1 === DDARing 1 === Scheduled moves 0, completed 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1 === Heat === Bed heaters 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1, chamber heaters -1 -1 -1 -1, ordering errs 0 Heater 1 is on, I-accum = 0.0 === GCodes === Movement locks held by null, null HTTP is idle in state(s) 0 Telnet is idle in state(s) 0 File is idle in state(s) 0 USB is idle in state(s) 0 Aux is idle in state(s) 0 Trigger is idle in state(s) 0 Queue is idle in state(s) 0 LCD is idle in state(s) 0 SBC is idle in state(s) 0 Daemon is idle in state(s) 0 Aux2 is idle in state(s) 0 Autopause is idle in state(s) 0 File2 is idle in state(s) 0 Queue2 is idle in state(s) 0 Q0 segments left 0, axes/extruders owned 0x80000003 Code queue 0 is empty Q1 segments left 0, axes/extruders owned 0x0000000 Code queue 1 is empty === Filament sensors === check 0 clear 0 Extruder 0 sensor: ok === CAN === Messages queued 443, received 1485, lost 0, errs 0, boc 0 Longest wait 3ms for reply type 6053, peak Tx sync delay 296, free buffers 50 (min 49), ts 235/234/0 Tx timeouts 0,0,0,0,0,0 === Network === Slowest loop: 8.36ms; fastest: 0.03ms Responder states: MQTT(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0) Telnet(0) HTTP sessions: 1 of 8 = Ethernet = Interface state: active Error counts: 0 0 0 1 0 0 Socket states: 5 2 2 2 2 2 0 2 === Multicast handler === Responder is inactive, messages received 0, responses 0
M122 B121 - 1lc board
Diagnostics for board 121: Duet TOOL1LC rev 1.1 or later firmware version 3.5beta2 (2023-02-06 18:43:58) Bootloader ID: SAMC21 bootloader version 2.4 (2021-12-10) All averaging filters OK Never used RAM 3772, free system stack 89 words Tasks: Move(notifyWait,0.0%,157) HEAT(notifyWait,0.4%,105) CanAsync(notifyWait,0.0%,57) CanRecv(notifyWait,0.0%,76) CanClock(notifyWait,0.0%,65) ACCEL(notifyWait,0.0%,61) TMC(delaying,3.1%,57) MAIN(running,91.5%,351) IDLE(ready,0.0%,26) AIN(delaying,4.9%,142), total 100.0% Last reset 00:01:42 ago, cause: VDD brownout Last software reset data not available Driver 0: pos 0, 355.3 steps/mm,standstill, SG min 0, read errors 0, write errors 0, ifcnt 12, reads 51308, writes 12, timeouts 0, DMA errors 0, CC errors 0, steps req 0 done 0 Moves scheduled 0, completed 0, in progress 0, hiccups 0, step errors 0, maxPrep 0, maxOverdue 0, maxInc 0, mcErrs 0, gcmErrs 0 Peak sync jitter 1/5, peak Rx sync delay 207, resyncs 0/0, no step interrupt scheduled VIN voltage: min 24.3, current 24.3, max 24.3 MCU temperature: min 39.5C, current 40.3C, max 40.4C Last sensors broadcast 0x00000002 found 1 177 ticks ago, 0 ordering errs, loop time 1 CAN messages queued 2092, send timeouts 0, received 1338, lost 0, free buffers 37, min 37, error reg 0 dup 0, oos 0/0/0/0, bm 0, wbm 0, rxMotionDelay 0 Accelerometer: LIS3DH, status: 00 I2C bus errors 0, naks 3, other errors 0 === Filament sensors === Interrupt 5726621 to 0us, poll 4 to 1382us Driver 0: ok
M98 P"config.g" doesn't produce any errors
-
@Ben-0 said in "Failed to enable endstops" error from 1LC board using IO_3:
RepRapFirmware for Duet 3 MB6HC version 3.5.0-rc.2 (2023-12-14 10:32:22) running on Duet 3 MB6HC v1.01 (standalone mode)
Duet TOOL1LC rev 1.1 or later firmware version 3.5beta2 (2023-02-06 18:43:58)Your toolboard is on a different firmware version to the mainboard. This is probably causing the problem. Update the firmware on the toolboard. Make sure the "Duet3Firmware_TOOL1LC.bin" file from https://github.com/Duet3D/RepRapFirmware/releases/tag/3.5.0-rc.2 is uploaded to the /firmware folder. If you do this in DWC, it should prompt you to update the firmware on the board. If not, send
M997 B121
.Also, this error in the M122 report:
Error in macro line 36 while starting up: Driver 121.0 does not support mode 'unknown'
Is this line in config.g:
M569 P121.0 S0 D4
D4 is for closed loop. You probably mean D3 for stealthChop.
Ian
-
That's sorted it!! Thanks you so much! I'd just assumed that having put the files in there and gone through the upgrade on the main board that they would also get done, hadn't realised that I needed to do them seperately. Also can't believe I didn't think to check it
-