Issues with servo on Tool Changer after firmware update 3.1.1



  • Hello,

    I've just updated to 3.1.1 on my Duet 3 v0.6. My servo is on io4 on the main board - I have not touched the wiring since updating. The servo no longer moves at all, just wondered if I've missed something. I've also tried another io out of interest, but still nothing.

    Prior to updating I'd had a few tool pickup failures recently, so it is possible that the servo has died - got the stuff to change to a stepper just wanted to see if I had missed something obvious.

    In my config.g:

    M950 S0 C"io4.out"					; set lock servo to PWM0
    M98 P"/macros/Coupler - Lock"				; lock coupler
    

    Coupler - Lock macro

    M280 P0 S0
    G4 P550
    M42 P0 S0
    

  • administrators

    I can't see anything wrong with that.



  • I've got the servo moving again, but I am getting a lot of crashes - haven't managed to start a print yet. Seems to a infrequently crash and reset when a macro is called (not always the same one) with " Lost connection to Duet (Board is not available (no header))". Also had it mention the transfer ready pin a couple of times - I've checked the ribbon from my pi4 to the duet.

    My status is stuck on "Changing tool" at start up which is odd - calling a T-1 sets it to idle.


  • administrators

    If you think the Duet is crashing and resetting, next time it happens run M122 and post the report here.



  • === Diagnostics ===
    RepRapFirmware for Duet 3 MB6HC version 3.1.1 running on Duet 3 MB6HC v0.6 or 1.0 (SBC mode)
    Board ID: 08DGM-9T66A-G63SJ-6J1F6-3S86Q-9A0HA
    Used output buffers: 1 of 40 (13 max)
    === RTOS ===
    Static ram: 154604
    Dynamic ram: 164944 of which 44 recycled
    Exception stack ram used: 224
    Never used ram: 73400
    Tasks: ETHERNET(blocked,868) NETWORK(ready,1980) HEAT(blocked,1212) CanReceiv(suspended,3512) CanSender(suspended,1488) CanClock(blocked,1468) TMC(blocked,204) MAIN(running,5008) IDLE(ready,76)
    Owned mutexes:
    === Platform ===
    Last reset 00:00:05 ago, cause: software
    Last software reset at 2020-07-05 14:11, reason: Memory protection fault, spinning module GCodes, available RAM 72792 bytes (slot 3)
    Software reset code 0x4163 HFSR 0x00000000 CFSR 0x00000082 ICSR 0x0444a004 BFAR 0xab3821f5 SP 0x2045ff74 Task MAIN
    Stack: 00459d67 00459d8e 210f000f 00000000 20415abc 20417d6c 00182dc5 20417dec 004606c3 00000000 00000001
    Error status: 0
    MCU temperature: min 40.3, current 40.6, max 40.9
    Supply voltage: min 24.2, current 24.2, max 24.3, under voltage events: 0, over voltage events: 0, power good: yes
    12V rail voltage: min 12.1, current 12.1, max 12.1, under voltage events: 0
    Driver 0: standstill, reads 26982, writes 15 timeouts 0, SG min/max 0/0
    Driver 1: standstill, reads 26983, writes 15 timeouts 0, SG min/max 0/0
    Driver 2: standstill, reads 26984, writes 14 timeouts 0, SG min/max 0/0
    Driver 3: standstill, reads 26985, writes 14 timeouts 0, SG min/max 0/0
    Driver 4: standstill, reads 26985, writes 14 timeouts 0, SG min/max 0/0
    Driver 5: standstill, reads 26989, writes 11 timeouts 0, SG min/max 0/0
    Date/time: 2020-07-05 14:11:24
    Slowest loop: 5.84ms; fastest: 0.14ms
    === Storage ===
    Free file entries: 10
    SD card 0 not detected, interface speed: 37.5MBytes/sec
    SD card longest read time 0.0ms, write time 0.0ms, max retries 0
    === Move ===
    Hiccups: 0(0), FreeDm: 375, MinFreeDm: 375, MaxWait: 0ms
    Bed compensation in use: mesh, comp offset 0.000
    === MainDDARing ===
    Scheduled moves: 0, completed moves: 0, StepErrors: 0, LaErrors: 0, Underruns: 0, 0 CDDA state: -1
    === AuxDDARing ===
    Scheduled moves: 0, completed moves: 0, StepErrors: 0, LaErrors: 0, Underruns: 0, 0 CDDA state: -1
    === Heat ===
    Bed heaters = 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1, chamberHeaters = -1 -1 -1 -1
    === GCodes ===
    Segments left: 0
    Movement lock held by null
    HTTP* is ready with "M122" 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
    Code queue is empty.
    === Network ===
    Slowest loop: 0.63ms; fastest: 0.01ms
    Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0), 0 sessions Telnet(0), 0 sessions
    HTTP sessions: 0 of 8

    • Ethernet -
      State: establishingLink
      Error counts: 0 0 0 0 0
      Socket states: 0 0 0 0 0 0 0 0
      === CAN ===
      Messages sent 39, longest wait 3ms for type 6011
      === Linux interface ===
      State: 0, failed transfers: 0
      Last transfer: 21ms ago
      RX/TX seq numbers: 49572/177
      SPI underruns 0, overruns 0
      Number of disconnects: 0
      Buffer RX/TX: 0/51-0
      === Duet Control Server ===
      Duet Control Server v3.1.1
      Daemon:
      Finishing macro daemon.g, started by system

    Next stack level
    Code buffer space: 4072
    Configured SPI speed: 8000000 Hz
    Full transfers per second: 24.34



  • Also just got:

    "Lost connection to Duet (Timeout while waiting for transfer ready pin)" whilst calling the Coupler - Lock macro above



  • How are you powering the servo? On my tool changer I have a separate 5v bus for things like the servos so that they don't overdraw from the duet 5v bus. My RPI4 sometimes indicates a low power situation with JUST it and the duet, no usb in the pi, no servos or other 5v draws from the duet 3 board.


  • administrators

    @qablos, thanks for posting that diagnostic data. I'll take a look at it tomorrow.



  • Just posting this here for context.

    The problem is currently occuring during homing the machine. This is not to say that it is exclusive to homing, just that is about all I can try to do right now. Running homeall.g then sending T0/T1/T2/T3 also makes the duet reset.

    Scenario 1:

    Called homeall.g below first time, it ran fine. Called it a second time and the duet reset.

    ; homeall.g
    ; called to home all axes
    
    M98 P"/macros/Coupler - Unlock"	;Open Coupler
    
    M98 P"homey.g"			; Home Y
    
    M98 P"homex.g"			; Home X
    
    M98 P"homez.g"			; Home Z
    
    G1 X144 Y-10 F15000		; Park
    
    

    M122 Report for Scenario 1:

    === Diagnostics ===
    RepRapFirmware for Duet 3 MB6HC version 3.1.1 running on Duet 3 MB6HC v0.6 or 1.0 (SBC mode)
    Board ID: 08DGM-9T66A-G63SJ-6J1F6-3S86Q-9A0HA
    Used output buffers: 1 of 40 (13 max)
    === RTOS ===
    Static ram: 154604
    Dynamic ram: 164736 of which 44 recycled
    Exception stack ram used: 224
    Never used ram: 73608
    Tasks: ETHERNET(blocked,844) NETWORK(ready,1980) HEAT(blocked,1204) CanReceiv(suspended,3452) CanSender(suspended,1488) CanClock(blocked,1452) TMC(blocked,204) MAIN(running,4944) IDLE(ready,76)
    Owned mutexes:
    === Platform ===
    Last reset 00:00:11 ago, cause: software
    Last software reset at 2020-07-06 16:19, reason: Assertion failed, spinning module GCodes, available RAM 72692 bytes (slot 1)
    Software reset code 0x4123 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0444a80f BFAR 0x00000000 SP 0x2045fe9c Task MAIN
    Stack: 00000194 00484cd0 00463dbf 204347a0 20428990 a5a5a5a5 2044cff8 2044cfa8 2043f1a8 00000001 2043f120 
    Error status: 0
    MCU temperature: min 35.5, current 36.2, max 36.4
    Supply voltage: min 24.2, current 24.3, max 24.3, under voltage events: 0, over voltage events: 0, power good: yes
    12V rail voltage: min 12.1, current 12.1, max 12.1, under voltage events: 0
    Driver 0: standstill, reads 56526, writes 15 timeouts 0, SG min/max 0/0
    Driver 1: standstill, reads 56526, writes 15 timeouts 0, SG min/max 0/0
    Driver 2: standstill, reads 56528, writes 14 timeouts 0, SG min/max 0/0
    Driver 3: standstill, reads 56528, writes 14 timeouts 0, SG min/max 0/0
    Driver 4: standstill, reads 56529, writes 14 timeouts 0, SG min/max 0/0
    Driver 5: standstill, reads 56532, writes 11 timeouts 0, SG min/max 0/0
    Date/time: 2020-07-06 16:20:26
    Slowest loop: 5.96ms; fastest: 0.14ms
    === Storage ===
    Free file entries: 10
    SD card 0 not detected, interface speed: 37.5MBytes/sec
    SD card longest read time 0.0ms, write time 0.0ms, max retries 0
    === Move ===
    Hiccups: 0(0), FreeDm: 375, MinFreeDm: 375, MaxWait: 0ms
    Bed compensation in use: mesh, comp offset 0.000
    === MainDDARing ===
    Scheduled moves: 0, completed moves: 0, StepErrors: 0, LaErrors: 0, Underruns: 0, 0  CDDA state: -1
    === AuxDDARing ===
    Scheduled moves: 0, completed moves: 0, StepErrors: 0, LaErrors: 0, Underruns: 0, 0  CDDA state: -1
    === Heat ===
    Bed heaters = 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1, chamberHeaters = -1 -1 -1 -1
    === GCodes ===
    Segments left: 0
    Movement lock held by null
    HTTP* is ready with "M122" 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
    Code queue is empty.
    === Network ===
    Slowest loop: 0.88ms; fastest: 0.01ms
    Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0), 0 sessions Telnet(0), 0 sessions
    HTTP sessions: 0 of 8
    - Ethernet -
    State: establishingLink
    Error counts: 0 0 0 0 0
    Socket states: 0 0 0 0 0 0 0 0
    === CAN ===
    Messages sent 63, longest wait 3ms for type 6012
    === Linux interface ===
    State: 0, failed transfers: 1
    Last transfer: 20ms ago
    RX/TX seq numbers: 10232/357
    SPI underruns 0, overruns 0
    Number of disconnects: 0
    Buffer RX/TX: 0/51-0
    === Duet Control Server ===
    Duet Control Server v3.1.1
    Code buffer space: 4072
    Configured SPI speed: 8000000 Hz
    Full transfers per second: 23.62
    

    **Scenario 2: **

    Ran homeall.g line by line on the console to see when it failed:

    M98 P"/macros/Coupler - Unlock"	;Open Coupler
    
    M98 P"homey.g"			; Home Y
    
    M98 P"homex.g"			; Home X
    
    M98 P"homez.g"			; Home Z
    
    G1 X144 Y-10 F15000		; Park
    
    M98 P"/macros/Coupler - Unlock"	;Open Coupler
    
    M98 P"homey.g"			; Home Y
    
    M98 P"homex.g"			; Home X  - FAILED
    
    

    M122 report for scenario 2:

    === Diagnostics ===
    RepRapFirmware for Duet 3 MB6HC version 3.1.1 running on Duet 3 MB6HC v0.6 or 1.0 (SBC mode)
    Board ID: 08DGM-9T66A-G63SJ-6J1F6-3S86Q-9A0HA
    Used output buffers: 1 of 40 (13 max)
    === RTOS ===
    Static ram: 154604
    Dynamic ram: 164736 of which 44 recycled
    Exception stack ram used: 264
    Never used ram: 73568
    Tasks: ETHERNET(blocked,844) NETWORK(ready,1980) HEAT(blocked,1188) CanReceiv(suspended,3512) CanSender(suspended,1488) CanClock(blocked,1436) TMC(blocked,204) MAIN(running,4976) IDLE(ready,76)
    Owned mutexes:
    === Platform ===
    Last reset 00:01:11 ago, cause: software
    Last software reset at 2020-07-06 16:17, reason: Memory protection fault, spinning module GCodes, available RAM 73056 bytes (slot 0)
    Software reset code 0x4163 HFSR 0x00000000 CFSR 0x00000082 ICSR 0x0444a004 BFAR 0x0000001b SP 0x2045ff74 Task NETW
    Stack: 00459d67 00459dde 6100000f 00000000 20415abc 20417d6c 00032e5e 20417dec 004606c3 00000000 00000001 
    Error status: 0
    MCU temperature: min 34.1, current 35.5, max 35.7
    Supply voltage: min 24.2, current 24.2, max 24.3, under voltage events: 0, over voltage events: 0, power good: yes
    12V rail voltage: min 12.0, current 12.1, max 12.1, under voltage events: 0
    Driver 0: standstill, reads 25384, writes 15 timeouts 0, SG min/max 0/0
    Driver 1: standstill, reads 25385, writes 15 timeouts 0, SG min/max 0/0
    Driver 2: standstill, reads 25386, writes 14 timeouts 0, SG min/max 0/0
    Driver 3: standstill, reads 25387, writes 14 timeouts 0, SG min/max 0/0
    Driver 4: standstill, reads 25388, writes 14 timeouts 0, SG min/max 0/0
    Driver 5: standstill, reads 25391, writes 11 timeouts 0, SG min/max 0/0
    Date/time: 2020-07-06 16:19:05
    Slowest loop: 5.98ms; fastest: 0.14ms
    === Storage ===
    Free file entries: 10
    SD card 0 not detected, interface speed: 37.5MBytes/sec
    SD card longest read time 0.0ms, write time 0.0ms, max retries 0
    === Move ===
    Hiccups: 0(0), FreeDm: 375, MinFreeDm: 375, MaxWait: 0ms
    Bed compensation in use: mesh, comp offset 0.000
    === MainDDARing ===
    Scheduled moves: 0, completed moves: 0, StepErrors: 0, LaErrors: 0, Underruns: 0, 0  CDDA state: -1
    === AuxDDARing ===
    Scheduled moves: 0, completed moves: 0, StepErrors: 0, LaErrors: 0, Underruns: 0, 0  CDDA state: -1
    === Heat ===
    Bed heaters = 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1, chamberHeaters = -1 -1 -1 -1
    === GCodes ===
    Segments left: 0
    Movement lock held by null
    HTTP* is ready with "M122" 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
    Code queue is empty.
    === Network ===
    Slowest loop: 1.42ms; fastest: 0.01ms
    Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0), 0 sessions Telnet(0), 0 sessions
    HTTP sessions: 0 of 8
    - Ethernet -
    State: establishingLink
    Error counts: 0 0 0 0 0
    Socket states: 0 0 0 0 0 0 0 0
    === CAN ===
    Messages sent 305, longest wait 3ms for type 6012
    === Linux interface ===
    State: 0, failed transfers: 0
    Last transfer: 19ms ago
    RX/TX seq numbers: 8313/2279
    SPI underruns 0, overruns 0
    Number of disconnects: 0
    Buffer RX/TX: 0/51-0
    === Duet Control Server ===
    Duet Control Server v3.1.1
    Code buffer space: 4072
    Configured SPI speed: 8000000 Hz
    Full transfers per second: 2.36
    

  • administrators

    Thanks, that 3 different types of failure you've posted now, probably related in some way.

    I've been looking at the first one and it seems to be caused by the Z probe not being found when expected. [EDIT: so is the third one, it's the same failure at a different program location.]

    Please post your config.g file.


  • administrators

    If you disconnect the servo, do you still get the crashes?



  • ; General preferences
    M111 S0 						; Debugging off
    G21 							; Work in millimetres
    G90								; send absolute coordinates...
    M83								; ...but relative extruder moves
    M550 P"ToolChanger"				; set printer name
    
    
    ; Network
    M552 S1							; enable network
    M586 P0 S1						; enable HTTP
    M586 P1 S0						; disable FTP
    M586 P2 S0						; disable Telnet
    
    
    M667 S1 						; Select CoreXY mode
    
    
    ; Drives
    M569 P0.0 S0 						; Drive 0 X
    M569 P0.1 S0 						; Drive 1 Y
    M569 P0.2 S0 						; Drive 2 Z
    M569 P0.3 S1 						; Drive 3 E0
    M569 P0.4 S1 						; Drive 4 E1
    M569 P22.0 S0 D2					; Drive 22.0 (E2) spreadCycle mode
    M569 P23.0 S0 D2					; Drive 23.0 (E3) spreadCycle mode
    
    M584 E3:4:22.0:23.0					; set extruder drivers
    
    M350 X8 Y8 E8:8:16:16 I0			; Configure microstepping without interpolation
    M350 Z16 I1							; Configure microstepping with interpolation
    
    M92 X100 Y100 Z1600 E397.9:397.9:409:409			; Set steps per mm
    M566 X240 Y240 Z15 E120:120:200:200					; Set maximum instantaneous speed changes (mm/min)
    M203 X25000 Y25000 Z1000 E5000:5000:5000:5000		; Set maximum speeds (mm/min)
    M201 X2000 Y2000 Z25 E2500:2500:2500:2500			; Set accelerations (mm/s^2)
    M906 X1680 Y1680 Z1330 E1400:1400:1000:1000 I30 	; Set motor currents (mA) and motor idle factor in per cent
    M84 S120 											; Set idle timeout
    
    ;Stall Detection
    M915 X Y S3 F0 H400 R0
    
    ; Axis Limits
    M208 X-41 Y-14 Z-4.25 S1		; Set axis minima
    M208 X324 Y281 Z290 S0			; Set axis maxima
    
    ; Endstops
    M574 X1 S3						; configure active-high endstop for low end on X (sensorless)
    M574 Y1 S3						; configure active-high endstop for low end on Y (sensorless)
    M574 Z0							; no z stop
    
    M558 P5 C"io3.in" H7 F200 I0 T10000 		; Set Z probe type to switch
    G31 P200 X20 Y-69 Z-4.056	 				; Set Z probe trigger value, offset and trigger height
    M557 X10:290 Y20:180 S40 					; Define mesh grid
    M376 H10									; Stop bed compensation above 10mm
    
    ; Heaters
    
    M308 S0 P"temp0" Y"thermistor" T100000 B4138	        ; configure sensor 0 as thermistor
    M950 H0 C"out0" T0								; create bed heater output on bedheat and map it to sensor 0
    M143 H0 S150									; set temperature limit for heater 0 to 150C
    M307 H0 B1 S1.00								; enable bang-bang mode for the bed heater and set PWM limit
    M140 H0 R0 S50									; map heated bed to heater 0
    M144					       					; set standby
    
    M308 S1 P"spi.cs0" Y"rtd-max31865"				; configure sensor 1 as pt100 via CS pin spi.cs0
    M950 H1 C"out1" T1								; create nozzle heater output on out1 and map it to sensor 1
    M143 H1 S300									; set temperature limit for heater 1 to 300C
    M307 H1 B0 S1.00								; disable bang-bang mode for heater  and set PWM limit
    
    M308 S2 P"spi.cs1" Y"rtd-max31865"				; configure sensor 2 as pt100 via CS pin spi.cs1
    M950 H2 C"out2" T2								; create nozzle heater output on e0heat and map it to sensor 2
    M143 H2 S300									; set temperature limit for heater 2 to 300C
    M307 H2 B0 S1.00								; disable bang-bang mode for heater and set PWM limit
    
    M308 S3 P"22.temp0" Y"thermistor" T100000 B4725 C7.06e-8 	; configure sensor 3 as thermistor on tool board 22
    M950 H3 C"22.out0" T3										; configure heater 3 on out0 on tool board 22
    M143 H3 S300 												; Set temperature limit for heater 3 to 300C
    
    M308 S4 P"23.temp0" Y"thermistor" T100000 B4725 C7.06e-8	; configure sensor 4 as thermistor on tool board 23
    M950 H4 C"23.out0" T4										; configure heater 3 on out0 on tool board 23
    M143 H4 S300 												; Set temperature limit for heater 4 to 300C
    
    ; Heatsink fans
    M950 F0 C"out4" Q500							; create fan 0 on pin fan0 and set its frequency
    M106 P0 H1 T70									; set fan 0 value. Thermostatic control is turned on
    
    M950 F1 C"out7" Q500							; create fan 0 on pin fan0 and set its frequency
    M106 P1 H2 T70									; set fan 0 value. Thermostatic control is turned on
    
    M950 F2 C"out9" 								; Tool 2 hot end fan
    M106 P2 H3 T50									; Tool 2 hot end
    
    M950 F7 C"23.out2"					 			; Tool 3 hot end fan
    M106 P7 H4 T50									; Tool 3 hot end
    
    
    ; Part cooling fans
    M950 F4 C"out5" Q500							; create fan 1 on pin fan1 and set its frequency
    M106 P4 S0 H-1									; set fan 1 value. Thermostatic control is turned off
    
    M950 F5 C"out8" Q500							; create fan 1 on pin fan1 and set its frequency
    M106 P5 S0 H-1									; set fan 1 value. Thermostatic control is turned off
    
    M950 F6 C"22.out1" 								; Tool 2 print cooling fan, no tacho
    M106 P6 S0 H-1									; Tool 2 PCF
    
    M950 F8 C"23.out1" 								; Tool 3 print cooling fan, no tacho
    M106 P8 S0 H-1 									; Tool 3 PCF
    
    ; Tools
    M563 P0 S"T0" D0 H1 F4 					; 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
    
    M563 P1 S"T1" D1 H2 F5					; Define tool 1
    G10 P1 X0 Y0 Z0 						; Set tool 1 axis offsets
    G10 P1 R0 S0 							; Set initial tool 1 active and standby temperatures to 0C
    
    M563 P2 S"T2" D2 H3 F6 					; Define tool 2
    G10 P2 X23 Y41 Z-5.4  					; Set tool 2 axis offsets
    G10 P2 R0 S0 							; Reset initial tool 2 active and standby temperatures to 0C
    
    M563 P3 S"T3" D3 H4 F8 					; Define tool 3 (uses extruder 2 until we have tool 2)
    G10 P3 X23 Y41 Z-5.4 					; Set tool 3 axis offsets X was 23
    G10 P3 R0 S0 							; Reset initial tool 3 active and standby temperatures to 0C
    
    
    ; Custom settings
    M950 S6 C"io4.out"					; set lock servo to PWM0
    M98 P"/macros/Coupler - Lock"				; lock coupler
    
    ;M572 D0 S0.2 						; pressure advance T0
    ;M572 D1 S0.2 						; pressure advance T1
    ;M572 D2 S0.2 						; pressure advance T2
    ;M572 D3 S0.2 						; pressure advance T3
    
    M575 P1 S1 B57600				; panel due 7i
    G29 S1							; load bed mesh compensation
    M501							; load config-override.g
    
    


  • @dc42 Just tried this:

    Running homeall.g once worked. If I tried the second time, instead of the duet crashing it seemed fail to stall detect and crashed to the y hard limit. This happened again when I connected the servo again.

    Next time the duet crashed with after running homeall.g twice as before. Seems to mostly crash the duet, sometimes it fails to stall detect:

    === Diagnostics ===
    RepRapFirmware for Duet 3 MB6HC version 3.1.1 running on Duet 3 MB6HC v0.6 or 1.0 (SBC mode)
    Board ID: 08DGM-9T66A-G63SJ-6J1F6-3S86Q-9A0HA
    Used output buffers: 1 of 40 (13 max)
    === RTOS ===
    Static ram: 154604
    Dynamic ram: 164728 of which 56 recycled
    Exception stack ram used: 264
    Never used ram: 73564
    Tasks: ETHERNET(blocked,844) NETWORK(ready,1980) HEAT(blocked,1188) CanReceiv(suspended,3520) CanSender(suspended,1488) CanClock(blocked,1436) TMC(blocked,204) MAIN(running,4936) IDLE(ready,76)
    Owned mutexes:
    === Platform ===
    Last reset 00:00:36 ago, cause: software
    Last software reset at 2020-07-06 17:26, reason: Memory protection fault, spinning module Move, available RAM 72976 bytes (slot 1)
    Software reset code 0x4164 HFSR 0x00000000 CFSR 0x00000082 ICSR 0x0444a804 BFAR 0x00000008 SP 0x20417ba4 Task MAIN
    Stack: 00425703 00423352 81070000 204115c0 0046322f 204115c0 00000000 20410000 00000000 204115c0 2041607c 
    Error status: 0
    MCU temperature: min 39.3, current 39.8, max 40.2
    Supply voltage: min 24.2, current 24.2, max 24.3, under voltage events: 0, over voltage events: 0, power good: yes
    12V rail voltage: min 12.0, current 12.2, max 12.2, under voltage events: 0
    Driver 0: standstill, reads 46885, writes 16 timeouts 0, SG min/max 0/0
    Driver 1: standstill, reads 46886, writes 15 timeouts 0, SG min/max 0/0
    Driver 2: standstill, reads 46888, writes 14 timeouts 0, SG min/max 0/0
    Driver 3: standstill, reads 46888, writes 14 timeouts 0, SG min/max 0/0
    Driver 4: standstill, reads 46889, writes 14 timeouts 0, SG min/max 0/0
    Driver 5: standstill, reads 46892, writes 11 timeouts 0, SG min/max 0/0
    Date/time: 2020-07-06 17:27:23
    Slowest loop: 5.98ms; fastest: 0.14ms
    === Storage ===
    Free file entries: 10
    SD card 0 not detected, interface speed: 37.5MBytes/sec
    SD card longest read time 0.0ms, write time 0.0ms, max retries 0
    === Move ===
    Hiccups: 0(0), FreeDm: 375, MinFreeDm: 375, MaxWait: 0ms
    Bed compensation in use: mesh, comp offset 0.000
    === MainDDARing ===
    Scheduled moves: 0, completed moves: 0, StepErrors: 0, LaErrors: 0, Underruns: 0, 0  CDDA state: -1
    === AuxDDARing ===
    Scheduled moves: 0, completed moves: 0, StepErrors: 0, LaErrors: 0, Underruns: 0, 0  CDDA state: -1
    === Heat ===
    Bed heaters = 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1, chamberHeaters = -1 -1 -1 -1
    === GCodes ===
    Segments left: 0
    Movement lock held by null
    HTTP* is ready with "M122" 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
    Code queue is empty.
    === Network ===
    Slowest loop: 0.86ms; fastest: 0.01ms
    Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0), 0 sessions Telnet(0), 0 sessions
    HTTP sessions: 0 of 8
    - Ethernet -
    State: establishingLink
    Error counts: 0 0 0 0 0
    Socket states: 0 0 0 0 0 0 0 0
    === CAN ===
    Messages sent 162, longest wait 3ms for type 6012
    === Linux interface ===
    State: 0, failed transfers: 0
    Last transfer: 27ms ago
    RX/TX seq numbers: 2097/1151
    SPI underruns 0, overruns 0
    Number of disconnects: 0
    Buffer RX/TX: 0/51-0
    === Duet Control Server ===
    Duet Control Server v3.1.1
    Code buffer space: 4072
    Configured SPI speed: 8000000 Hz
    Full transfers per second: 31.29
    

  • administrators

    @qablos said in Issues with servo on Tool Changer after firmware update 3.1.1:

    Running homeall.g once worked. If I tried the second time, instead of the duet crashing it seemed fail to stall detect and crashed to the y hard limit. This happened again when I connected the servo again.
    Next time the duet crashed with after running homeall.g twice as before. Seems to mostly crash the duet, sometimes it fails to stall detect:

    Please clarify: what exactly happened when you ran it with the servo disconnected? Did you get no firmware crash, but the stall detection failed?

    The semi-random nature of the fault reports makes me suspect that the issue is to do with the power surge drawn by the servo. That is why I wanted you to try it without the servo connected, to see whether you still get any firmware crashes.

    What model of servo is it?



  • TEST 1 - homeall.g with servo connected

    1A

    1st homeall.g run: complete
    2nd homeall.g run: y collides with hard end stop

    1B

    1st homeall.g run: complete
    2nd homeall.g run: firmware crash, no collision, M122 below

    === Diagnostics ===
    RepRapFirmware for Duet 3 MB6HC version 3.1.1 running on Duet 3 MB6HC v0.6 or 1.0 (SBC mode)
    Board ID: 08DGM-9T66A-G63SJ-6J1F6-3S86Q-9A0HA
    Used output buffers: 1 of 40 (13 max)
    === RTOS ===
    Static ram: 154604
    Dynamic ram: 164736 of which 44 recycled
    Exception stack ram used: 232
    Never used ram: 73600
    Tasks: ETHERNET(blocked,844) NETWORK(ready,1980) HEAT(blocked,1204) CanReceiv(suspended,3512) CanSender(suspended,1488) CanClock(blocked,1452) TMC(blocked,204) MAIN(running,4976) IDLE(ready,76)
    Owned mutexes:
    === Platform ===
    Last reset 00:00:41 ago, cause: software
    Last software reset at 2020-07-06 21:40, reason: Memory protection fault, spinning module GCodes, available RAM 72848 bytes (slot 3)
    Software reset code 0x4163 HFSR 0x00000000 CFSR 0x00000082 ICSR 0x0444a004 BFAR 0x0200001c SP 0x2045ff74 Task MAIN
    Stack: 00459d67 00459d8e 2107000f 00000000 20415abc 20417d6c 00014b25 20417dec 004606c3 00000000 00000001 
    Error status: 0
    MCU temperature: min 38.7, current 39.2, max 39.3
    Supply voltage: min 24.2, current 24.2, max 24.3, under voltage events: 0, over voltage events: 0, power good: yes
    12V rail voltage: min 12.1, current 12.1, max 12.1, under voltage events: 0
    Driver 0: standstill, reads 7607, writes 15 timeouts 0, SG min/max 0/0
    Driver 1: standstill, reads 7607, writes 15 timeouts 0, SG min/max 0/0
    Driver 2: standstill, reads 7609, writes 14 timeouts 0, SG min/max 0/0
    Driver 3: standstill, reads 7609, writes 14 timeouts 0, SG min/max 0/0
    Driver 4: standstill, reads 7610, writes 14 timeouts 0, SG min/max 0/0
    Driver 5: standstill, reads 7613, writes 11 timeouts 0, SG min/max 0/0
    Date/time: 2020-07-06 21:40:43
    Slowest loop: 5.84ms; fastest: 0.14ms
    === Storage ===
    Free file entries: 10
    SD card 0 not detected, interface speed: 37.5MBytes/sec
    SD card longest read time 0.0ms, write time 0.0ms, max retries 0
    === Move ===
    Hiccups: 0(0), FreeDm: 375, MinFreeDm: 375, MaxWait: 0ms
    Bed compensation in use: mesh, comp offset 0.000
    === MainDDARing ===
    Scheduled moves: 0, completed moves: 0, StepErrors: 0, LaErrors: 0, Underruns: 0, 0  CDDA state: -1
    === AuxDDARing ===
    Scheduled moves: 0, completed moves: 0, StepErrors: 0, LaErrors: 0, Underruns: 0, 0  CDDA state: -1
    === Heat ===
    Bed heaters = 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1, chamberHeaters = -1 -1 -1 -1
    === GCodes ===
    Segments left: 0
    Movement lock held by null
    HTTP* is ready with "M122" 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
    Code queue is empty.
    === Network ===
    Slowest loop: 1.24ms; fastest: 0.01ms
    Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0), 0 sessions Telnet(0), 0 sessions
    HTTP sessions: 0 of 8
    - Ethernet -
    State: establishingLink
    Error counts: 0 0 0 0 0
    Socket states: 0 0 0 0 0 0 0 0
    === CAN ===
    Messages sent 184, longest wait 3ms for type 6012
    === Linux interface ===
    State: 0, failed transfers: 0
    Last transfer: 20ms ago
    RX/TX seq numbers: 3804/1333
    SPI underruns 0, overruns 0
    Number of disconnects: 0
    Buffer RX/TX: 0/51-0
    === Duet Control Server ===
    Duet Control Server v3.1.1
    Code buffer space: 4072
    Configured SPI speed: 8000000 Hz
    Full transfers per second: 31.64
    

    1C

    1st homeall.g run: complete
    2nd homeall.g run: firmware crash, no collision, M122 below

    === Diagnostics ===
    RepRapFirmware for Duet 3 MB6HC version 3.1.1 running on Duet 3 MB6HC v0.6 or 1.0 (SBC mode)
    Board ID: 08DGM-9T66A-G63SJ-6J1F6-3S86Q-9A0HA
    Used output buffers: 1 of 40 (13 max)
    === RTOS ===
    Static ram: 154604
    Dynamic ram: 164736 of which 44 recycled
    Exception stack ram used: 224
    Never used ram: 73608
    Tasks: ETHERNET(blocked,844) NETWORK(ready,1980) HEAT(blocked,1296) CanReceiv(suspended,3536) CanSender(suspended,1488) CanClock(blocked,1436) TMC(blocked,204) MAIN(running,4976) IDLE(ready,76)
    Owned mutexes:
    === Platform ===
    Last reset 00:00:10 ago, cause: software
    Last software reset at 2020-07-06 22:07, reason: Memory protection fault, spinning module GCodes, available RAM 72888 bytes (slot 0)
    Software reset code 0x4163 HFSR 0x00000000 CFSR 0x00000082 ICSR 0x0444a004 BFAR 0x79c29fc9 SP 0x2045ff74 Task MAIN
    Stack: 00459d67 00459d8e 6100000f 00000000 20415abc 20417d6c 00197107 20417dec 004606c3 00000000 00000001 
    Error status: 0
    MCU temperature: min 39.0, current 39.3, max 39.4
    Supply voltage: min 24.2, current 24.2, max 24.3, under voltage events: 0, over voltage events: 0, power good: yes
    12V rail voltage: min 12.1, current 12.1, max 12.2, under voltage events: 0
    Driver 0: standstill, reads 49825, writes 15 timeouts 0, SG min/max 0/0
    Driver 1: standstill, reads 49825, writes 15 timeouts 0, SG min/max 0/0
    Driver 2: standstill, reads 49827, writes 14 timeouts 0, SG min/max 0/0
    Driver 3: standstill, reads 49827, writes 14 timeouts 0, SG min/max 0/0
    Driver 4: standstill, reads 49828, writes 14 timeouts 0, SG min/max 0/0
    Driver 5: standstill, reads 49831, writes 11 timeouts 0, SG min/max 0/0
    Date/time: 2020-07-06 22:08:00
    Slowest loop: 9.19ms; fastest: 0.14ms
    === Storage ===
    Free file entries: 10
    SD card 0 not detected, interface speed: 37.5MBytes/sec
    SD card longest read time 0.0ms, write time 0.0ms, max retries 0
    === Move ===
    Hiccups: 0(0), FreeDm: 375, MinFreeDm: 375, MaxWait: 0ms
    Bed compensation in use: mesh, comp offset 0.000
    === MainDDARing ===
    Scheduled moves: 0, completed moves: 0, StepErrors: 0, LaErrors: 0, Underruns: 0, 0  CDDA state: -1
    === AuxDDARing ===
    Scheduled moves: 0, completed moves: 0, StepErrors: 0, LaErrors: 0, Underruns: 0, 0  CDDA state: -1
    === Heat ===
    Bed heaters = 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1, chamberHeaters = -1 -1 -1 -1
    === GCodes ===
    Segments left: 0
    Movement lock held by null
    HTTP* is ready with "M122" 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 0, running macro
    Aux2 is idle in state(s) 0
    Autopause is idle in state(s) 0
    Code queue is empty.
    === Network ===
    Slowest loop: 1.03ms; fastest: 0.01ms
    Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0), 0 sessions Telnet(0), 0 sessions
    HTTP sessions: 0 of 8
    - Ethernet -
    State: establishingLink
    Error counts: 0 0 0 0 0
    Socket states: 0 0 0 0 0 0 0 0
    === CAN ===
    Messages sent 58, longest wait 3ms for type 6012
    === Linux interface ===
    State: 0, failed transfers: 0
    Last transfer: 20ms ago
    RX/TX seq numbers: 55453/326
    SPI underruns 0, overruns 0
    Number of disconnects: 0
    Buffer RX/TX: 0/51-0
    === Duet Control Server ===
    Duet Control Server v3.1.1
    Daemon:
    Finishing macro daemon.g, started by system
    > Next stack level
    Code buffer space: 4072
    Configured SPI speed: 8000000 Hz
    Full transfers per second: 31.57
    

    TEST 2 - homeall.g with servo disconnected

    2A

    1st homeall.g run: complete
    2nd homeall.g run: firmware crash, no collision, M122 below:

    === Diagnostics ===
    RepRapFirmware for Duet 3 MB6HC version 3.1.1 running on Duet 3 MB6HC v0.6 or 1.0 (SBC mode)
    Board ID: 08DGM-9T66A-G63SJ-6J1F6-3S86Q-9A0HA
    Used output buffers: 1 of 40 (14 max)
    === RTOS ===
    Static ram: 154604
    Dynamic ram: 164736 of which 44 recycled
    Exception stack ram used: 224
    Never used ram: 73608
    Tasks: ETHERNET(blocked,832) NETWORK(ready,1980) HEAT(blocked,1212) CanReceiv(suspended,3512) CanSender(suspended,1488) CanClock(blocked,1452) TMC(blocked,204) MAIN(running,4992) IDLE(ready,76)
    Owned mutexes:
    === Platform ===
    Last reset 00:00:09 ago, cause: software
    Last software reset at 2020-07-06 22:10, reason: Memory protection fault, spinning module GCodes, available RAM 72976 bytes (slot 1)
    Software reset code 0x4163 HFSR 0x00000000 CFSR 0x00000082 ICSR 0x0440f804 BFAR 0x90c40b2c SP 0x20412e74 Task TMCStack: 004159b3 0041579a a1000000 00000000 44fa0000 421b1b72 3f7767e8 42200001 3c23d70c 00000000 3ca3d70b 
    Error status: 0
    MCU temperature: min 38.5, current 38.9, max 39.1
    Supply voltage: min 24.2, current 24.3, max 24.3, under voltage events: 0, over voltage events: 0, power good: yes
    12V rail voltage: min 12.1, current 12.1, max 12.2, under voltage events: 0
    Driver 0: standstill, reads 47629, writes 15 timeouts 0, SG min/max 0/0
    Driver 1: standstill, reads 47629, writes 15 timeouts 0, SG min/max 0/0
    Driver 2: standstill, reads 47631, writes 14 timeouts 0, SG min/max 0/0
    Driver 3: standstill, reads 47631, writes 14 timeouts 0, SG min/max 0/0
    Driver 4: standstill, reads 47631, writes 14 timeouts 0, SG min/max 0/0
    Driver 5: standstill, reads 47635, writes 11 timeouts 0, SG min/max 0/0
    Date/time: 2020-07-06 22:10:46
    Slowest loop: 5.87ms; fastest: 0.14ms
    === Storage ===
    Free file entries: 10
    SD card 0 not detected, interface speed: 37.5MBytes/sec
    SD card longest read time 0.0ms, write time 0.0ms, max retries 0
    === Move ===
    Hiccups: 0(0), FreeDm: 375, MinFreeDm: 375, MaxWait: 0ms
    Bed compensation in use: mesh, comp offset 0.000
    === MainDDARing ===
    Scheduled moves: 0, completed moves: 0, StepErrors: 0, LaErrors: 0, Underruns: 0, 0  CDDA state: -1
    === AuxDDARing ===
    Scheduled moves: 0, completed moves: 0, StepErrors: 0, LaErrors: 0, Underruns: 0, 0  CDDA state: -1
    === Heat ===
    Bed heaters = 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1, chamberHeaters = -1 -1 -1 -1
    === GCodes ===
    Segments left: 0
    Movement lock held by null
    HTTP* is ready with "M122" 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
    Code queue is empty.
    === Network ===
    Slowest loop: 1.05ms; fastest: 0.01ms
    Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0), 0 sessions Telnet(0), 0 sessions
    HTTP sessions: 0 of 8
    - Ethernet -
    State: establishingLink
    Error counts: 0 0 0 0 0
    Socket states: 0 0 0 0 0 0 0 0
    === CAN ===
    Messages sent 56, longest wait 3ms for type 6012
    === Linux interface ===
    State: 0, failed transfers: 0
    Last transfer: 21ms ago
    RX/TX seq numbers: 1849/310
    SPI underruns 0, overruns 0
    Number of disconnects: 0
    Buffer RX/TX: 0/51-0
    === Duet Control Server ===
    Duet Control Server v3.1.1
    Code buffer space: 4072
    Configured SPI speed: 8000000 Hz
    Full transfers per second: 9.92
    

    2B

    1st homeall.g run: complete
    2nd homeall.g run: firmware crash, no collision, M122 below:

    === Diagnostics ===
    RepRapFirmware for Duet 3 MB6HC version 3.1.1 running on Duet 3 MB6HC v0.6 or 1.0 (SBC mode)
    Board ID: 08DGM-9T66A-G63SJ-6J1F6-3S86Q-9A0HA
    Used output buffers: 1 of 40 (13 max)
    === RTOS ===
    Static ram: 154604
    Dynamic ram: 164736 of which 44 recycled
    Exception stack ram used: 304
    Never used ram: 73528
    Tasks: ETHERNET(blocked,844) NETWORK(ready,1980) HEAT(blocked,1212) CanReceiv(suspended,3536) CanSender(suspended,1488) CanClock(blocked,1468) TMC(blocked,204) MAIN(running,5016) IDLE(ready,76)
    Owned mutexes:
    === Platform ===
    Last reset 00:00:09 ago, cause: software
    Last software reset at 2020-07-06 22:12, reason: Memory protection fault, spinning module GCodes, available RAM 72888 bytes (slot 2)
    Software reset code 0x4163 HFSR 0x00000000 CFSR 0x00000082 ICSR 0x0444a004 BFAR 0x789ad78a SP 0x2045ff74 Task MAIN
    Stack: 00459d67 00459d8e 210f000f 00000000 20415abc 20417d6c 00019269 20417dec 004606c3 00000000 00000001 
    Error status: 0
    MCU temperature: min 38.9, current 39.2, max 39.3
    Supply voltage: min 24.2, current 24.2, max 24.3, under voltage events: 0, over voltage events: 0, power good: yes
    12V rail voltage: min 12.1, current 12.1, max 12.1, under voltage events: 0
    Driver 0: standstill, reads 47360, writes 15 timeouts 0, SG min/max 0/0
    Driver 1: standstill, reads 47360, writes 15 timeouts 0, SG min/max 0/0
    Driver 2: standstill, reads 47362, writes 14 timeouts 0, SG min/max 0/0
    Driver 3: standstill, reads 47362, writes 14 timeouts 0, SG min/max 0/0
    Driver 4: standstill, reads 47363, writes 14 timeouts 0, SG min/max 0/0
    Driver 5: standstill, reads 47366, writes 11 timeouts 0, SG min/max 0/0
    Date/time: 2020-07-06 22:12:29
    Slowest loop: 5.90ms; fastest: 0.14ms
    === Storage ===
    Free file entries: 10
    SD card 0 not detected, interface speed: 37.5MBytes/sec
    SD card longest read time 0.0ms, write time 0.0ms, max retries 0
    === Move ===
    Hiccups: 0(0), FreeDm: 375, MinFreeDm: 375, MaxWait: 0ms
    Bed compensation in use: mesh, comp offset 0.000
    === MainDDARing ===
    Scheduled moves: 0, completed moves: 0, StepErrors: 0, LaErrors: 0, Underruns: 0, 0  CDDA state: -1
    === AuxDDARing ===
    Scheduled moves: 0, completed moves: 0, StepErrors: 0, LaErrors: 0, Underruns: 0, 0  CDDA state: -1
    === Heat ===
    Bed heaters = 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1, chamberHeaters = -1 -1 -1 -1
    === GCodes ===
    Segments left: 0
    Movement lock held by null
    HTTP* is ready with "M122" 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
    Code queue is empty.
    === Network ===
    Slowest loop: 0.88ms; fastest: 0.01ms
    Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0), 0 sessions Telnet(0), 0 sessions
    HTTP sessions: 0 of 8
    - Ethernet -
    State: establishingLink
    Error counts: 0 0 0 0 0
    Socket states: 0 0 0 0 0 0 0 0
    === CAN ===
    Messages sent 56, longest wait 3ms for type 6012
    === Linux interface ===
    State: 0, failed transfers: 0
    Last transfer: 18ms ago
    RX/TX seq numbers: 5022/304
    SPI underruns 0, overruns 0
    Number of disconnects: 0
    Buffer RX/TX: 0/51-0
    === Duet Control Server ===
    Duet Control Server v3.1.1
    Code buffer space: 4072
    Configured SPI speed: 8000000 Hz
    Full transfers per second: 30.78
    

    2C

    1st homeall.g run: complete
    2nd homeall.g run: firmware crash, no collision, M122 below:

    === Diagnostics ===
    RepRapFirmware for Duet 3 MB6HC version 3.1.1 running on Duet 3 MB6HC v0.6 or 1.0 (SBC mode)
    Board ID: 08DGM-9T66A-G63SJ-6J1F6-3S86Q-9A0HA
    Used output buffers: 1 of 40 (13 max)
    === RTOS ===
    Static ram: 154604
    Dynamic ram: 164736 of which 44 recycled
    Exception stack ram used: 224
    Never used ram: 73608
    Tasks: ETHERNET(blocked,844) NETWORK(ready,1980) HEAT(blocked,1188) CanReceiv(suspended,3536) CanSender(suspended,1488) CanClock(blocked,1452) TMC(blocked,204) MAIN(running,5000) IDLE(ready,76)
    Owned mutexes:
    === Platform ===
    Last reset 00:00:15 ago, cause: software
    Last software reset at 2020-07-06 22:13, reason: Assertion failed, spinning module GCodes, available RAM 72692 bytes (slot 3)
    Software reset code 0x4123 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0444a80f BFAR 0x00000000 SP 0x2045fe9c Task MAIN
    Stack: 00000194 00484cd0 00463dbf 20434380 20428990 a5a5a5a5 2044cff8 2044cfa8 2043f1a8 00000001 2043f120 
    Error status: 0
    MCU temperature: min 38.6, current 39.1, max 39.4
    Supply voltage: min 24.2, current 24.2, max 24.3, under voltage events: 0, over voltage events: 0, power good: yes
    12V rail voltage: min 12.1, current 12.1, max 12.1, under voltage events: 0
    Driver 0: standstill, reads 8535, writes 15 timeouts 0, SG min/max 0/0
    Driver 1: standstill, reads 8536, writes 15 timeouts 0, SG min/max 0/0
    Driver 2: standstill, reads 8538, writes 14 timeouts 0, SG min/max 0/0
    Driver 3: standstill, reads 8538, writes 14 timeouts 0, SG min/max 0/0
    Driver 4: standstill, reads 8538, writes 14 timeouts 0, SG min/max 0/0
    Driver 5: standstill, reads 8542, writes 11 timeouts 0, SG min/max 0/0
    Date/time: 2020-07-06 22:14:09
    Slowest loop: 6.00ms; fastest: 0.14ms
    === Storage ===
    Free file entries: 10
    SD card 0 not detected, interface speed: 37.5MBytes/sec
    SD card longest read time 0.0ms, write time 0.0ms, max retries 0
    === Move ===
    Hiccups: 0(0), FreeDm: 375, MinFreeDm: 375, MaxWait: 0ms
    Bed compensation in use: mesh, comp offset 0.000
    === MainDDARing ===
    Scheduled moves: 0, completed moves: 0, StepErrors: 0, LaErrors: 0, Underruns: 0, 0  CDDA state: -1
    === AuxDDARing ===
    Scheduled moves: 0, completed moves: 0, StepErrors: 0, LaErrors: 0, Underruns: 0, 0  CDDA state: -1
    === Heat ===
    Bed heaters = 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1, chamberHeaters = -1 -1 -1 -1
    === GCodes ===
    Segments left: 0
    Movement lock held by null
    HTTP* is ready with "M122" 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
    Code queue is empty.
    === Network ===
    Slowest loop: 1.24ms; fastest: 0.01ms
    Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0), 0 sessions Telnet(0), 0 sessions
    HTTP sessions: 0 of 8
    - Ethernet -
    State: establishingLink
    Error counts: 0 0 0 0 0
    Socket states: 0 0 0 0 0 0 0 0
    === CAN ===
    Messages sent 78, longest wait 3ms for type 6012
    === Linux interface ===
    State: 0, failed transfers: 0
    Last transfer: 21ms ago
    RX/TX seq numbers: 7570/483
    SPI underruns 0, overruns 0
    Number of disconnects: 0
    Buffer RX/TX: 0/51-0
    === Duet Control Server ===
    Duet Control Server v3.1.1
    Code buffer space: 4072
    Configured SPI speed: 8000000 Hz
    Full transfers per second: 25.38
    

    Only head crash was with the servo disconnected.

    Servo model is: Hitec HS-70MG supplied on the original beta30 tool changers https://www.servoshop.co.uk/index.php?pid=JP2212122



  • @qablos [EDIT, previous being flagged as spam]: Only head crash was with the servo CONNECTED, 1/3.



  • Overall it seems to be largely irrelevant what I'm doing, just playing about with G1 moves and after <10 moves it resets, sends:

    "Warning: Lost connection to Duet (Timeout while waiting for transfer ready pin)"

    And:

    === Diagnostics ===
    RepRapFirmware for Duet 3 MB6HC version 3.1.1 running on Duet 3 MB6HC v0.6 or 1.0 (SBC mode)
    Board ID: 08DGM-9T66A-G63SJ-6J1F6-3S86Q-9A0HA
    Used output buffers: 1 of 40 (13 max)
    === RTOS ===
    Static ram: 154604
    Dynamic ram: 164736 of which 44 recycled
    Exception stack ram used: 224
    Never used ram: 73608
    Tasks: ETHERNET(blocked,868) NETWORK(ready,1980) HEAT(blocked,1196) CanReceiv(suspended,3536) CanSender(suspended,1488) CanClock(blocked,1452) TMC(blocked,204) MAIN(running,4944) IDLE(ready,76)
    Owned mutexes:
    === Platform ===
    Last reset 00:00:05 ago, cause: software
    Last software reset at 2020-07-07 00:16, reason: Assertion failed, spinning module GCodes, available RAM 72648 bytes (slot 2)
    Software reset code 0x4123 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0444a80f BFAR 0x00000000 SP 0x2045fe9c Task MAIN
    Stack: 00000194 00484cd0 00463dbf 20433e00 20428990 a5a5a5a5 2044cff8 2044cfa8 2043f1a8 00000001 2043f120 
    Error status: 0
    MCU temperature: min 38.6, current 39.1, max 39.2
    Supply voltage: min 24.2, current 24.3, max 24.3, under voltage events: 0, over voltage events: 0, power good: yes
    12V rail voltage: min 12.1, current 12.1, max 12.2, under voltage events: 0
    Driver 0: standstill, reads 25827, writes 15 timeouts 0, SG min/max 0/0
    Driver 1: standstill, reads 25828, writes 15 timeouts 0, SG min/max 0/0
    Driver 2: standstill, reads 25829, writes 14 timeouts 0, SG min/max 0/0
    Driver 3: standstill, reads 25830, writes 14 timeouts 0, SG min/max 0/0
    Driver 4: standstill, reads 25830, writes 14 timeouts 0, SG min/max 0/0
    Driver 5: standstill, reads 25834, writes 11 timeouts 0, SG min/max 0/0
    Date/time: 2020-07-07 00:17:04
    Slowest loop: 5.59ms; fastest: 0.14ms
    === Storage ===
    Free file entries: 10
    SD card 0 not detected, interface speed: 37.5MBytes/sec
    SD card longest read time 0.0ms, write time 0.0ms, max retries 0
    === Move ===
    Hiccups: 0(0), FreeDm: 375, MinFreeDm: 375, MaxWait: 0ms
    Bed compensation in use: mesh, comp offset 0.000
    === MainDDARing ===
    Scheduled moves: 0, completed moves: 0, StepErrors: 0, LaErrors: 0, Underruns: 0, 0  CDDA state: -1
    === AuxDDARing ===
    Scheduled moves: 0, completed moves: 0, StepErrors: 0, LaErrors: 0, Underruns: 0, 0  CDDA state: -1
    === Heat ===
    Bed heaters = 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1, chamberHeaters = -1 -1 -1 -1
    === GCodes ===
    Segments left: 0
    Movement lock held by null
    HTTP* is ready with "M122" 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
    Code queue is empty.
    === Network ===
    Slowest loop: 1.24ms; fastest: 0.01ms
    Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0), 0 sessions Telnet(0), 0 sessions
    HTTP sessions: 0 of 8
    - Ethernet -
    State: establishingLink
    Error counts: 0 0 0 0 0
    Socket states: 0 0 0 0 0 0 0 0
    === CAN ===
    Messages sent 39, longest wait 3ms for type 6012
    === Linux interface ===
    State: 0, failed transfers: 1
    Last transfer: 21ms ago
    RX/TX seq numbers: 36129/159
    SPI underruns 0, overruns 0
    Number of disconnects: 0
    Buffer RX/TX: 0/51-0
    === Duet Control Server ===
    Duet Control Server v3.1.1
    Code buffer space: 4072
    Configured SPI speed: 8000000 Hz
    Full transfers per second: 17.13
    


  • I'm not sure if it's something I've missed on an update note, I've tried my best to read through and can't see anything when I updated but I was upgrading from 3.01 RC5 as I'd had a series of work going on that I didn't want to interupt. I've returned to 3.01 RC5 and dependencies for now and so far everything is working.

    [EDIT: I will happily update again if you want me to test anything]


Log in to reply