Duet2 Wifi reboots on homing Z



  • I have a printer that was working fine on 2.02rc2 (I think), but after upgrading to 2.05 it always reboots when I try to home the Z axis. The axis does move for about 1/2 of a second, then the Duet reboots. M122 dump below. Interesting, sometimes it says "spinning module GCodes" and sometimes it says "spinning module Platform".

    12/14/2019, 12:04:51 PM M122
    === Diagnostics ===
    RepRapFirmware for Duet 2 WiFi/Ethernet version 2.05 running on Duet WiFi 1.02 or later
    Board ID: 08DGM-9T6BU-FG3S4-6J1FD-3S46R-KVQBD
    Used output buffers: 1 of 24 (7 max)
    === RTOS ===
    Static ram: 25712
    Dynamic ram: 93348 of which 0 recycled
    Exception stack ram used: 272
    Never used ram: 11740
    Tasks: NETWORK(ready,628) HEAT(blocked,1232) MAIN(running,3800) IDLE(ready,160)
    Owned mutexes:
    === Platform ===
    Last reset 00:00:41 ago, cause: software
    Last software reset at 2019-12-14 12:04, reason: Watchdog timeout, spinning module GCodes, available RAM 11128 bytes (slot 2)
    Software reset code 0x4053 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x1441f014 BFAR 0xe000ed38 SP 0x2001fecc Task 0x5754454e
    Stack: 00419243 004190dc 01000027 20007fd8 00000000 0117b26c 200023b0 00000000 20007fd8 2000c888 20007fd8 20007fd8 2000c888 01125aed 20000660 00004e6f 00419243 2000ba94 2000c888 20007fd8 20007fd8 40090000 01125aed
    Error status: 0
    Free file entries: 10
    SD card 0 detected, interface speed: 20.0MBytes/sec
    SD card longest block write time: 0.0ms, max retries 0
    MCU temperature: min 20.9, current 21.6, max 21.7
    Supply voltage: min 24.0, current 24.0, max 24.1, under voltage events: 0, over voltage events: 0, power good: yes
    Driver 0: standstill, SG min/max not available
    Driver 1: standstill, SG min/max not available
    Driver 2: standstill, SG min/max not available
    Driver 3: standstill, SG min/max not available
    Driver 4: standstill, SG min/max not available
    Date/time: 2019-12-14 12:04:51
    Cache data hit count 116647696
    Slowest loop: 5.91ms; fastest: 0.07ms
    I2C nak errors 0, send timeouts 0, receive timeouts 0, finishTimeouts 0, resets 0
    === Move ===
    Hiccups: 0, FreeDm: 160, MinFreeDm: 160, MaxWait: 0ms
    Bed compensation in use: none, comp offset 0.000
    === DDARing ===
    Scheduled moves: 0, completed moves: 0, StepErrors: 0, LaErrors: 0, Underruns: 0, 0
    === Heat ===
    Bed heaters = -1 -1 -1 -1, chamberHeaters = -1 -1
    === GCodes ===
    Segments left: 0
    Stack records: 1 allocated, 0 in use
    Movement lock held by null
    http is idle in state(s) 0
    telnet is idle in state(s) 0
    file is idle in state(s) 0
    serial is idle in state(s) 0
    aux is idle in state(s) 0
    daemon is idle in state(s) 0
    queue is idle in state(s) 0
    autopause is idle in state(s) 0
    Code queue is empty.
    === Network ===
    Slowest loop: 15.37ms; fastest: 0.01ms
    Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0) Telnet(0)
    HTTP sessions: 1 of 8

    • WiFi -
      Network state is running
      WiFi module is connected to access point
      Failed messages: pending 0, notready 0, noresp 0
      WiFi firmware version 1.23
      WiFi MAC address cc:50:e3:27:40:d9
      WiFi Vcc 3.42, reset reason Turned on by main processor
      WiFi flash size 4194304, free heap 22816
      WiFi IP address 10.23.17.218
      WiFi signal strength -55dBm, reconnections 0, sleep mode modem
      Socket states: 0 0 0 0 0 0 0 0


  • post your config and homing scripts.



  • @BrooksT said in Duet2 Wifi reboots on homing Z:

    Software reset code 0x4053

    Usb active
    Bus error.
    G Code was active

    do you have usb connected?



  • No USB connected.



  • Config file:

    ;3DP-D Super 7 1:20 Z
    M111 S0 ; Debug off
    M550 Psuper9 ; Machine name and Netbios name (can be anything you like)
    M551 PfrnkPOTfrnk ; Machine password (used for FTP)

    ;*** If you have more than one Duet on your network, they must all have different MAC addresses, so change the last digits
    ;networking
    M540 P0xBE:0xEF:0xDE:0xAD:0xFE:0xED ; MAC Address
    M552 S1 ; start wifi S2 OR S1 network
    M552 P10.23.17.218 ; static IP
    M553 P255.255.255.0 ; netmask
    M554 P10.23.17.254 ; gateway

    ;Settings
    M555 P2 ; Set output to look like Marlin
    G21 ; Work in mm
    G90 ; Send absolute coordinates...
    M83 ; ...but relative extruder moves

    ;Motor Direction
    M584 X5 Y6 Z7 E9:3 ; Set drive mapping Axis and motor configuration
    M569 P5 S0 R0 T4 ; Drive 0 goes forwards X
    M569 P6 S0 R0 T4 ; Drive 1 goes forwards Y
    M569 P7 S1 R0 T4 ; Drive 2 goes reverse Z
    M569 P9 S1 R0 T4 ; Drive 6 goes reverse E
    M569 P3 S0 ; Drive 4 in reverse - E1

    ;Motor Ranges
    M574 X2 Y1 Z2 S0 ;Endstop configuration
    M208 X420 Y360 Z455 ; set axis maxima and high homing switch positions (adjust to suit your machine) (Z was 480) (386.5 = plaster bat)
    M208 X0 Y0 Z0 S1 ; set axis minima and low homing switch positions (adjust to make X=0 and Y=0 the edges of the bed)

    ;Motor Speeds
    M92 X71 Y71 ; Set axis steps per unitX72.70 Y70.85
    M350 X16 Y16 Z16 E16:16 I1 ; Set 1x microstepping with interpolation
    M92 Z7586 E42:805 ; Steps/mm for Z and E WAS 8 (E was 42:805)
    M906 X0 Y0 Z0 E0:700 I30 ; Set motor currents (mA) and increase idle current to 60%
    M201 X1000 Y1000 Z1000 E3000:250.00 ; Accelerations (mm/s^2) (Z WAS 3000)
    M203 X6000 Y6000 Z3500 E10000:1200.00 ; Maximum speeds (mm/min)
    M566 X500 Y500 Z1000 E3000:120.00 ; Maximum instant speed changes mm/minute (Z WAS 3000)

    ;M581 X Y Z T0 S1 C1 ;Configure external trigger

    ;Tool definitions
    ; Tools
    ;M563 P0 D0 H1 F1:2 ; Define tool 0 - use extruder 0, heater 1, fan 1, and fan 2

    ;M563 P0 D0 ; Define or remove a tool
    G10 P1 ; Set tool number 1
    T0 ; Select tool 0
    M302 P1 ; Allow cold extrusion
    M140 H-1 ; Bed Off

    ;Misc
    M83 ; Set extruder to relative mode
    M302 P1 ; Allow cold extrudes

    Tools;
    M563 P1 S"Clay" D0 ; Define tool 1
    M563 P2 S"plastic" D1 H2 ; Define tool 2
    G10 P1 X0 Y0 Z0 ; Set tool 1 axis offsets
    G10 P2 X134 Y-18 Z0 ; Set tool 2 axis offsets
    M106 P0 S0.3 I0 F500 H1 T45 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned on

    ;Extruder 2 (plactic
    M305 P2 T100000 B4138 R4700 ; Set thermistor + ADC parameters for heater 2
    M143 H2 S280 ; Set temperature limit for heater 2 to 280C
    M106 P1 S0 ; Turn off fan by default

    ;Heaters
    ;M303 H2 S240
    M307 H2 A300 C140 D5.5 B0 S0.5



  • homez.g:

    G91 ;Set to Relative Positioning
    G1 S1 Z600 F6000 ;Move Z rail to limit switch until pressed
    G1 S2 Z-3 F250 ;Back off Z rail from limit switch a small amount
    G1 S1 Z10 F150 ;Move Z rail to limit switch slowly
    G90 ;Absolute position



  • @BrooksT said in Duet2 Wifi reboots on homing Z:

    M584 X5 Y6 Z7 E9:3 ; Set drive mapping Axis and motor configuration

    why do you have a duex5 if yo only use 5 drivers?

    can you post a picture of the power connection of both duet and duex and psu?



  • Duex5 is for future upgrades. It's in an enclosure so I can't easily get a pic.

    FWIW, working fine after reverting to firmware 2.04.




  • administrators

    @BrooksT said in Duet2 Wifi reboots on homing Z:

    M92 Z7586 E42:805 ; Steps/mm for Z and E WAS 8 (E was 42:805)
    M906 X0 Y0 Z0 E0:700 I30 ; Set motor currents (mA) and increase idle current to 60%
    M201 X1000 Y1000 Z1000 E3000:250.00 ; Accelerations (mm/s^2) (Z WAS 3000)
    M203 X6000 Y6000 Z3500 E10000:1200.00 ; Maximum speeds (mm/min)

    I think it is triggered by the combination of your very high Z steps/mm in M92 and your high Z movement speed in M203. 3500mm/min is 58.33mm/sec, times 7586 steps/mm gives a step rate of 442.5 kHz, which is higher than the Duet can manage. It should be inserting hiccups to reduce the Z speed, but it looks like that mechanism isn't working properly. Try reducing the max Z speed from 3500 to 600.



  • What kind of a Z axis is this to have such high steps per mm?



  • @dc42 Thanks... will do!

    This is a 3D Potter Super 9. All of the axes use a worm gear reduction on closed loop steppers. The steppers have settings for pulses per rotation; it may be possible for me to get the same movement with fewer steps by changing multipliers.


Log in to reply