3.2 beta 1 Freeze while printing



  • Hi!

    This is my second freeze on beta 3.2 - Running D3-6HC+3HC. It just finished a toolchange. Printer says its printing the file, all temps are held stably, it just... stopped moving. T0 had been executed 30-odd times already before it froze mid print (and had no changes since i've set it up)

    6HC M122:

    M122
    === Diagnostics ===
    RepRapFirmware for Duet 3 MB6HC version 3.2-beta1 running on Duet 3 MB6HC v0.6 or 1.0 (SBC mode)
    Board ID: 08DGM-9T66A-G63SJ-6J1DG-3SD6K-9V0MA
    Used output buffers: 1 of 40 (14 max)
    === RTOS ===
    Static ram: 154820
    Dynamic ram: 135088 of which 64 recycled
    Exception stack ram used: 528
    Never used ram: 102716
    Tasks: HEAT(blocked,272) CanReceiv(blocked,865) CanSender(blocked,336) CanClock(blocked,352) TMC(blocked,18) MAIN(running,719) IDLE(ready,19)
    Owned mutexes:
    === Platform ===
    Last reset 07:05:51 ago, cause: software
    Last software reset at 2058-01-24 11:14, reason: HardFault imprec, none spinning, available RAM 206632, slot 1
    Software reset code 0x4071 HFSR 0x40000000 CFSR 0x00000400 ICSR 0x0440f803 BFAR 0x00000000 SP 0x20417cf0 Task MAIN
    Stack: 2042d390 00000000 000000a0 00000000 a5a5a5a5 00438767 0043575e 61000000 a5a5a5a5 a5a5a5a5 a5a5a5a5 a5a5a5a5 2042d31c 00000000 00000000 004667af 00000054 00000000 2042d31c 2042d588 2042c9a0 2042d200 00000002 00000002 2042d378 00438745 00000000
    Error status: 0x020
    MCU temperature: min 42.3, current 42.5, max 45.2
    Supply voltage: min 23.7, current 24.1, max 24.2, 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
    Driver 0: position 91440, standstill, reads 13122, writes 12 timeouts 0, SG min/max 0/1023
    Driver 1: position -79280, standstill, reads 13122, writes 12 timeouts 0, SG min/max 0/1023
    Driver 2: position 447693, standstill, reads 12566, writes 568 timeouts 0, SG min/max 0/85
    Driver 3: position 3300, standstill, reads 13130, writes 4 timeouts 0, SG min/max 0/1023
    Driver 4: position 0, standstill, reads 13130, writes 4 timeouts 0, SG min/max 0/1023
    Driver 5: position 0, standstill, reads 13131, writes 4 timeouts 0, SG min/max 0/1023
    Date/time: 2020-09-17 16:39:46
    Slowest loop: 346.10ms; fastest: 0.21ms
    === 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: 1359860(0), FreeDm: 375, MinFreeDm: 291, MaxWait: 278565ms
    Bed compensation in use: mesh, comp offset 0.000
    === MainDDARing ===
    Scheduled moves: 229390, completed moves: 229390, 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
    Heater 0 is on, I-accum = 0.3
    Heater 1 is on, I-accum = 0.0
    === 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: 0.00ms; fastest: 5726623.00ms
    Responder states:
    HTTP sessions: 0 of 8
    - Ethernet -
    State: disabled
    Error counts: 0 0 0 0 0
    Socket states: 0 0 0 0 0 0 0 0
    === CAN ===
    Messages sent 266882, send timeouts 266882, longest wait 8ms for type 6029, free CAN buffers 48
    === SBC interface ===
    State: 0, failed transfers: 0
    Last transfer: 18ms ago
    RX/TX seq numbers: 29150/29151
    SPI underruns 0, overruns 0
    Number of disconnects: 0
    Buffer RX/TX: 0/0-0
    === Duet Control Server ===
    Duet Control Server v3.2.0-beta1
    File:
    Finishing macro tpost0.g, started by G1 X290.719 Y254.263 E9.69528
    > Next stack level
    Suspended code: G92 E0
    Suspended code: G1 X320.543 Y323.703
    Suspended code: G1 Z11.550000
    Suspended code: G1 E4.00000 F3600.00000
    Suspended code: G1 F7200.000
    Suspended code: G1 X319.955 Y330.751 E4.28208
    Suspended code: G1 X319.806 Y331.827 E4.32538
    Suspended code: G1 X319.496 Y333.084 E4.37704
    Suspended code: G1 X318.887 Y334.508 E4.43881
    Suspended code: G1 X317.601 Y336.679 E4.53946
    Suspended code: G1 X317.162 Y337.174 E4.56583
    Suspended code: G1 X316.126 Y338.030 E4.61942
    Suspended code: G1 X303.291 Y347.391 E5.25301
    Suspended code: G1 X301.142 Y348.567 E5.35069
    Suspended code: G1 X300.117 Y348.971 E5.39462
    Suspended code: G1 X298.720 Y349.294 E5.45180
    Suspended code: G1 X297.386 Y349.424 E5.50527
    Suspended code: G1 X295.823 Y349.244 E5.56800
    Suspended code: G1 X292.092 Y348.354 E5.72100
    Suspended code: G1 X291.090 Y347.809 E5.76649
    Suspended code: G1 X288.680 Y346.177 E5.88257
    Suspended code: G1 X287.812 Y345.496 E5.92658
    Suspended code: G1 X286.604 Y344.098 E6.00028
    Suspended code: G1 X281.475 Y335.220 E6.40917
    Suspended code: G1 X280.438 Y332.536 E6.52393
    Suspended code: G1 X280.150 Y331.142 E6.58070
    Suspended code: G1 X279.063 Y318.943 E7.06916
    Suspended code: G1 X278.945 Y316.201 E7.17861
    Suspended code: G1 X279.026 Y314.526 E7.24550
    Suspended code: G1 X279.292 Y312.594 E7.32326
    Suspended code: G1 X289.884 Y256.465 E9.60136
    Pending code: G1 X290.719 Y254.263 E9.69528
    Daemon:
    Finishing macro daemon.g, started by system
    > Next stack level
    Code buffer space: 4096
    Configured SPI speed: 8000000 Hz
    Full transfers per second: 31.94
    File /opt/dsf/sd/gcodes/twoColor1_2_7_10_53.gcode is selected, processing
    

    3HC

    M122 B1
    Diagnostics for board 1:
    Board EXP3HC firmware 3.2beta (2020-09-14b1)
    Never used RAM 149.2Kb, max stack 400b
    HEAT 300 CanAsync 367 CanRecv 357 TMC 29 MAIN 294 AIN 258
    Last reset 07:15:52 ago, cause: power up
    Last software reset data not available
    Driver 0: position 884030,  standstill, reads 56333, writes 16 timeouts 0, SG min/max 0/578
    Driver 1: position 772761,  standstill, reads 56334, writes 16 timeouts 0, SG min/max 0/478
    Driver 2: position 0,  standstill, reads 56337, writes 15 timeouts 0, SG min/max 0/0
    Moves scheduled 173376, completed 173376, in progress 0, hiccups 0
    No step interrupt scheduled
    VIN: 24.0V, V12: 12.1V
    MCU temperature: min 36.9C, current 37.1C, max 37.3C
    Ticks since heat task active 84, ADC conversions started 26152730, completed 26152730, timed out 0
    Last sensors broadcast 00000014 found 3 88 ticks ago
    Free CAN buffers: 36, messages lost 0, duplicates 0, oos 0
    NVM user row de9a9239 aeecffb1 ffffffff ffffffff
    

    Tpost.g

    ; tpost0.g
    ; called after tool 0 has been selected
    
    ;heatup
    M116 P0 S10
    
    ;prime nozzle
    ;M98 P"/sys/Purge.g"
    
    ;Wipe
    ;M98 P"/sys/Wipe.g"
    ;M83 ; Extruder to relative
    ;G1 E-3.5 ; retract before last one
    ;M82 ; extrude to absolute
    ;M98 P"/sys/Wipe.g"
    
    ;Mesh on
    G29 S1
    
    ;Move out of wipe area
    G1 Y575
    
    ;PCF fan on
    M106 P0 R2
    

  • administrators

    @Luke-sLaboratory, thanks for your report. Please can you add the following command to config.g:

    M122 P500 S0

    After that, command M122 P500 should return "Write buffer is disabled". This will make the MCU a little slower, but when the fault next happens the M122 report will give the precise location of the fault, making it easier for me to diagnose.



  • @dc42 Added to config, restarted, started print again
    6hc

    M122
    === Diagnostics ===
    RepRapFirmware for Duet 3 MB6HC version 3.2-beta1 running on Duet 3 MB6HC v0.6 or 1.0 (SBC mode)
    Board ID: 08DGM-9T66A-G63SJ-6J1DG-3SD6K-9V0MA
    Used output buffers: 1 of 40 (14 max)
    === RTOS ===
    Static ram: 154820
    Dynamic ram: 135088 of which 44 recycled
    Exception stack ram used: 528
    Never used ram: 102736
    Tasks: HEAT(blocked,272) CanReceiv(blocked,865) CanSender(blocked,336) CanClock(blocked,352) TMC(blocked,18) MAIN(running,719) IDLE(ready,19)
    Owned mutexes:
    === Platform ===
    Last reset 00:41:51 ago, cause: software
    Last software reset at 2058-01-24 11:14, reason: HardFault imprec, none spinning, available RAM 208864, slot 0
    Software reset code 0x4071 HFSR 0x40000000 CFSR 0x00000400 ICSR 0x0440f803 BFAR 0x00000000 SP 0x20417cc8 Task MAIN
    Stack: 2042ccd0 20410640 00000000 20413834 a5a5a5a5 00438bf9 004666e8 61000000 a5a5a5a5 a5a5a5a5 a5a5a5a5 a5a5a5a5 a5a5a5a5 a5a5a5a5 a5a5a5a5 a5a5a5a5 a5a5a5a5 a5a5a5a5 a5a5a5a5 a5a5a5a5 a5a5a5a5 a5a5a5a5 a5a5a5a5 a5a5a5a5 a5a5a5a5 a5a5a5a5 a5a5a5a5
    Error status: 0x020
    MCU temperature: min 35.5, current 43.4, max 43.7
    Supply voltage: min 23.8, current 24.0, max 24.5, 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: position 91440, standstill, reads 28652, writes 39 timeouts 0, SG min/max 0/934
    Driver 1: position -79280, standstill, reads 28652, writes 39 timeouts 0, SG min/max 0/1023
    Driver 2: position 178893, standstill, reads 28605, writes 87 timeouts 0, SG min/max 0/66
    Driver 3: position 3300, standstill, reads 28669, writes 23 timeouts 0, SG min/max 0/1023
    Driver 4: position 0, standstill, reads 28669, writes 23 timeouts 0, SG min/max 0/1023
    Driver 5: position 0, standstill, reads 28670, writes 23 timeouts 0, SG min/max 0/1023
    Date/time: 2020-09-17 19:34:40
    Slowest loop: 344.56ms; 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: 499073(0), FreeDm: 375, MinFreeDm: 295, MaxWait: 753230ms
    Bed compensation in use: mesh, comp offset 0.000
    === MainDDARing ===
    Scheduled moves: 31642, completed moves: 31642, 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
    Heater 0 is on, I-accum = 0.2
    Heater 1 is on, I-accum = 0.0
    === 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.00ms; fastest: 5726623.00ms
    Responder states:
    HTTP sessions: 0 of 8
    - Ethernet -
    State: disabled
    Error counts: 0 0 0 0 0
    Socket states: 0 0 0 0 0 0 0 0
    === CAN ===
    Messages sent 34032, send timeouts 34027, longest wait 7ms for type 6029, free CAN buffers 48
    === SBC interface ===
    State: 0, failed transfers: 0
    Last transfer: 18ms ago
    RX/TX seq numbers: 12650/12651
    SPI underruns 0, overruns 0
    Number of disconnects: 0
    Buffer RX/TX: 0/0-0
    === Duet Control Server ===
    Duet Control Server v3.2.0-beta1
    File:
    Finishing macro tpost0.g, started by G1 X316.126 Y338.030 E10.33875
    > Next stack level
    Suspended code: G92 E0
    Suspended code: G1 X279.919 Y309.275
    Suspended code: G1 Z1.050000
    Suspended code: G1 E4.00000 F3600.00000
    Suspended code: G1 F7200.000
    Suspended code: G1 X289.884 Y256.465 E6.14338
    Suspended code: G1 X290.719 Y254.263 E6.23731
    Suspended code: G1 X291.520 Y253.141 E6.29228
    Suspended code: G1 X292.212 Y252.410 E6.33245
    Suspended code: G1 X293.327 Y251.687 E6.38542
    Suspended code: G1 X294.187 Y251.240 E6.42409
    Suspended code: G1 X295.685 Y250.748 E6.48694
    Suspended code: G1 X297.076 Y250.579 E6.54283
    Suspended code: G1 X298.298 Y250.759 E6.59211
    Suspended code: G1 X299.707 Y251.164 E6.65060
    Suspended code: G1 X301.672 Y252.259 E6.74031
    Suspended code: G1 X302.612 Y253.182 E6.79283
    Suspended code: G1 X303.308 Y254.044 E6.83705
    Suspended code: G1 X303.860 Y255.023 E6.88186
    Suspended code: G1 X304.356 Y256.188 E6.93235
    Suspended code: G1 X320.278 Y310.687 E9.19676
    Suspended code: G1 X320.832 Y313.354 E9.30541
    Suspended code: G1 X320.992 Y314.737 E9.36091
    Suspended code: G1 X321.054 Y316.403 E9.42742
    Suspended code: G1 X320.968 Y318.606 E9.51534
    Suspended code: G1 X319.955 Y330.751 E10.00140
    Suspended code: G1 X319.806 Y331.827 E10.04470
    Suspended code: G1 X319.496 Y333.084 E10.09636
    Suspended code: G1 X318.887 Y334.508 E10.15814
    Suspended code: G1 X317.601 Y336.679 E10.25878
    Suspended code: G1 X317.162 Y337.174 E10.28516
    Pending code: G1 X316.126 Y338.030 E10.33875
    Code buffer space: 4096
    Configured SPI speed: 8000000 Hz
    Full transfers per second: 25.71
    File /opt/dsf/sd/gcodes/twoColor1_2_7_10_53.gcode is selected, processing
    9/17/2020, 7:33:41 PM	Connected to 192.168.0.164
    

    3HC

    M122 B1
    Diagnostics for board 1:
    Board EXP3HC firmware 3.2beta (2020-09-14b1)
    Never used RAM 149.3Kb, max stack 384b
    HEAT 306 CanAsync 367 CanRecv 357 TMC 29 MAIN 294 AIN 258
    Last reset 00:42:54 ago, cause: power up
    Last software reset data not available
    Driver 0: position 97085,  standstill, reads 6199, writes 16 timeouts 0, SG min/max 0/430
    Driver 1: position 108143,  standstill, reads 6200, writes 16 timeouts 0, SG min/max 0/1023
    Driver 2: position 0,  standstill, reads 6203, writes 15 timeouts 0, SG min/max 0/0
    Moves scheduled 23948, completed 23948, in progress 0, hiccups 0
    No step interrupt scheduled
    VIN: 24.0V, V12: 12.1V
    MCU temperature: min 36.9C, current 37.1C, max 37.1C
    Ticks since heat task active 26, ADC conversions started 2574008, completed 2574008, timed out 0
    Last sensors broadcast 00000014 found 3 30 ticks ago
    Free CAN buffers: 36, messages lost 0, duplicates 0, oos 0
    NVM user row de9a9239 aeecffb1 ffffffff ffffffff
    


  • @Luke-sLaboratory Massive number of hiccups in the main board - could be a clue?



  • can you post your config?


  • administrators

    @Luke-sLaboratory, thanks. I suspect the problem is being triggered by the G29 S1 command in tpost.g, which involves fetching the height map from the SBC. Are you able to try printing with that command removed from tpost.g?

    PS - if I am right, then you may be able to get the fault to happen more quickly if you put multiple G29 S1 commands in tpost.g.



  • @dc42 Still bugged out at about the same point, random toolchange. Unfortunately I hit M112 vs M122 for diag, so no gcode, but I took out the mesh correction as requested. Sorry for a late reply, took me a while to get back to the printer.

    M122
    === Diagnostics ===
    RepRapFirmware for Duet 3 MB6HC version 3.2-beta1 running on Duet 3 MB6HC v0.6 or 1.0 (SBC mode)
    Board ID: 08DGM-9T66A-G63SJ-6J1DG-3SD6K-9V0MA
    Used output buffers: 1 of 40 (14 max)
    === RTOS ===
    Static ram: 154820
    Dynamic ram: 135088 of which 44 recycled
    Exception stack ram used: 528
    Never used ram: 102736
    Tasks: HEAT(blocked,278) CanReceiv(blocked,865) CanSender(blocked,340) CanClock(blocked,352) TMC(blocked,18) MAIN(running,719) IDLE(ready,19)
    Owned mutexes:
    === Platform ===
    Last reset 03:39:27 ago, cause: software
    Last software reset at 2058-01-24 11:14, reason: HardFault imprec, none spinning, available RAM 161628, slot 1
    Software reset code 0x4071 HFSR 0x40000000 CFSR 0x00000400 ICSR 0x0440f803 BFAR 0x00000000 SP 0x20417d18 Task MAIN
    Stack: 00000058 2041066c 00000000 00000051 20430c30 00423c29 004004a0 81000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 3f800000 00000000 00000000 20430c30 20430a78 20410194 20410670 20410194 20410670 00000060 004004eb 00000051
    Error status: 0x020
    MCU temperature: min 21.9, current 43.0, max 44.4
    Supply voltage: min 23.8, current 24.1, max 24.5, 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: position 91440, standstill, reads 15633, writes 99 timeouts 0, SG min/max 0/1023
    Driver 1: position -79280, standstill, reads 15633, writes 99 timeouts 0, SG min/max 0/1023
    Driver 2: position 15312, standstill, reads 15446, writes 287 timeouts 0, SG min/max 0/68
    Driver 3: position 3300, standstill, reads 15698, writes 35 timeouts 0, SG min/max 0/340
    Driver 4: position 0, standstill, reads 15699, writes 35 timeouts 0, SG min/max 0/331
    Driver 5: position 0, standstill, reads 15699, writes 35 timeouts 0, SG min/max 0/345
    Date/time: 2020-09-19 14:12:46
    Slowest loop: 12.54ms; 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: 1(0), FreeDm: 375, MinFreeDm: 313, MaxWait: 2667170ms
    Bed compensation in use: none, comp offset 0.000
    === MainDDARing ===
    Scheduled moves: 125781, completed moves: 125781, 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.00ms; fastest: 5726623.00ms
    Responder states:
    HTTP sessions: 0 of 8
    - Ethernet -
    State: disabled
    Error counts: 0 0 0 0 0
    Socket states: 0 0 0 0 0 0 0 0
    === CAN ===
    Messages sent 154982, send timeouts 154977, longest wait 8ms for type 6029, free CAN buffers 48
    === SBC interface ===
    State: 0, failed transfers: 0
    Last transfer: 19ms ago
    RX/TX seq numbers: 32655/32656
    SPI underruns 0, overruns 0
    Number of disconnects: 0
    Buffer RX/TX: 0/0-0
    === Duet Control Server ===
    Duet Control Server v3.2.0-beta1
    Code buffer space: 4096
    Configured SPI speed: 8000000 Hz
    Full transfers per second: 7.02
    

    @Veti nothing has changed since 3.1.

    config.g \/-\/

    ; Configuration file for Duet 3 (firmware version 3)
    ; executed by the firmware on start-up
    ;
    ; generated by RepRapFirmware Configuration Tool v2.1.4 on Thu Dec 26 2019 17:05:21 GMT-0600 (Central Standard Time)
    
    ; General preferences
    M80                                          ;powah
    G90                                          ; send absolute coordinates...
    M83                                          ; ...but relative extruder moves
    M550 P"StableBot"                               ; set printer name
    
    M667 S1                                      ; select CoreXY mode
    
    ;+++++++++++++++++++++++++++++++++++MOTION SYSTEM++++++++++++++++++++++++++++++
    
    ; Drives
    M569 P0.1 S1                    ; physical drive 0.1 goes forwards XY
    M569 P0.0 S0                    ; physical drive 0.0 goes forwards XY
    M569 P0.2 S0                    ; physical drive 0.2 goes forwards Coupler
    M569 P0.3 S1				    ; physical drive 0.3 goes backwards Z
    M569 P0.4 S1				    ; physical drive 0.4 goes backwards Z
    M569 P0.5 S0                    ; physical drive 0.5 goes backwards Z
    M569 P1.0 S0					; Extruder 1
    M569 P1.1 S0					; Extruder 2
    M569 P1.2 S0					; Extruder 3
    M584 X0.1 Y0.0 Z0.3:0.4:0.5 C0.2 E1.0:1.1:1.2                     ; set drive mapping
    M350 X16 Y16 E16:16:16 Z16 I1                      						  ; configure microstepping with interpolation
    M350 C8 I0														  ; No interpolation on Z Axis
    M92 X160.00 Y160.00 Z1600 E409.00:409.00:830 C100         ; set steps per mm
    M566 X240 Y240 Z600 E1800:1800:1800 C2          ; set maximum instantaneous speed changes (mm/min)
    M203 X20000.00 Y12000.00 Z840 E10800.00:10800:10800 C5000   ; set maximum speeds (mm/min)
    M201 X2000.00 Y1500.00 Z18 E2500:2500:2500 C400      ; set accelerations (mm/s^2)
    M906 X2300 Y2300 Z2000 E1100:1100:1400 C600 I60             ; set motor currents (mA) and motor idle factor in per cent
    M84 S120                                      ; Set idle timeout
    
    
    ; Axis Limits
    M208 X-17 Y-14 Z0 C0 S1                             ; set axis minima
    M208 X622 Y660 Z950 C500 S0                       ; set axis maxima
    M671 X290.0:-32:627 Y658:185:186 S20 ; leadscrews at rear middle, front left+right
    
    ; Endstops
    M574 X1 S1 P"io2.in"                         ; configure active-low endstop for low end on X via pin io2.in
    M574 Y1 S1 P"io0.in"                         ; configure active-low endstop for low end on Y via pin io0.in
    ;M574 Y2 S1 P"!io1.in"			      ; configure active-low endstop for high end on Y via pin io1.in
    
    
    ; Z-Probe
    
    M558 P5 C"io3.in" H10 F120 T3600      ; set Z probe type to simp switch and the dive height + speeds
    G31 X0 Y0 Z0 P200                        ; set Z probe trigger value, offset and trigger height
    ;M557 X15:600 Y15:600 S30                     ; define mesh grid - Whole Bed
    M557 X10:590 Y10:590 P21:21                     ; define mesh grid - Center Small
    
    ; Bed Heater
    M308 S0 P"temp3" Y"thermistor" T100000 B4138 A"Bed1" ; configure sensor 0 as thermistor on pin temp0
    M950 H0 C"out1" T0                           ; create bed heater output on out0 and map it to sensor 0
    M143 H0 S120                                 ; set temperature limit for heater 0 to 120C
    M307 H0 A133.1 C1828.2 D2.6 V12.3 B0 S0.75    ; disable bang-bang mode for the bed heater and set PWM limit
    M140 H0                                      ; map heated bed to heater 0
    
    ; Lights
    M950 F15 C"out9" Q500                         ; create fan 2 on pin out7 and set its frequency
    M106 P15 S0 C"LEDS" H-1                               ; set fan 2 value. Thermostatic control is turned off
    
    ;+++++++++++++++++++++++++++++++++Hotends++++++++++++++++++++++++++++++++++++++++++++++
    ;MOVED TO MACRO BELOW - allows for scripting updates 
    M98 P"/macros/tool_conf"
    ;+++++++++++++++++++++++++++++++++Hotends++++++++++++++++++++++++++++++++++++++++++++++
    
    ; Custom settings are not defined
    
    M122 P500 S0
    


  • Hello,

    I also encounter random freezes since the 3.2 beta 1. It happens in almost 1 out of 3 print.
    I do a purge line at the beginning of each print with the following GCode:

    M561	; Clear any bed transform
    G28	; Home all axes
    G29 S1	; Grid compensation
    
    T0      ; Select tool 0
    M116	; Wait for tools
    
    ; Purge line
    G1 Z0.2
    G1 Y2 X25 F15000        ; move out of build volume
    G1 X150.0 E24 F1200     ; finish purge line
    G4 P4000	        ; Wait to let the plastic cool a little
    G92 E0                  ; reset extruder position to 0
    

    And it freezes right after doing the purge line. It might be an issue with the heightmap loading as suggested by @dc42 because effectively I normally receive the "Heightmap loaded" notification just after the purge line and when my print freezes I don't have this notification.


  • administrators

    @Lucas, are you also running Due 3 with attached SBC?



  • @dc42 Yes a Duet 3 with a Raspberry Pi 3 attached

    Board: Duet 3 MB6HC (MB6HC)
    DSF Version: 3.2.0-beta1+1
    Firmware: RepRapFirmware for Duet 3 MB6HC 3.2-beta1 (2020-09-15b1)
    Duet Web Control 3.2.0-beta1+2


  • administrators

    Thanks. Please post a M122 report taken when it has frozen. Also please post some more lines from your GCode file.

    Which is the last GCode line completed when it freezes?



  • @dc42 Here is the M122 when the printer is frozen:

    M122
    === Diagnostics ===
    RepRapFirmware for Duet 3 MB6HC version 3.2-beta1 running on Duet 3 MB6HC v0.6 or 1.0 (SBC mode)
    Board ID: 08DJM-956L2-G43S8-6J1F0-3SS6K-9A1QH
    Used output buffers: 1 of 40 (10 max)
    === RTOS ===
    Static ram: 154820
    Dynamic ram: 133832 of which 44 recycled
    Exception stack ram used: 528
    Never used ram: 103992
    Tasks: HEAT(blocked,296) CanReceiv(blocked,948) CanSender(blocked,351) CanClock(blocked,352) TMC(blocked,18) MAIN(running,1230) IDLE(ready,19)
    Owned mutexes:
    === Platform ===
    Last reset 00:04:08 ago, cause: software
    Last software reset at 2020-09-20 17:12, reason: User, LinuxInterface spinning, available RAM 103992, slot 1
    Software reset code 0x0010 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0444a000 BFAR 0x00000000 SP 0xffffffff Task MAIN
    Error status: 0x020
    MCU temperature: min 40.5, current 41.1, max 41.3
    Supply voltage: min 23.7, current 23.9, max 23.9, under voltage events: 0, over voltage events: 0, power good: yes
    12V rail voltage: min 12.0, current 12.0, max 12.1, under voltage events: 0
    Driver 0: position 97280, standstill, reads 2810, writes 17 timeouts 0, SG min/max 0/228
    Driver 1: position 94720, standstill, reads 2810, writes 17 timeouts 0, SG min/max 0/182
    Driver 2: position 448, standstill, reads 2811, writes 17 timeouts 0, SG min/max 0/1023
    Driver 3: position 0, standstill, reads 2811, writes 17 timeouts 0, SG min/max 0/528
    Driver 4: position 0, standstill, reads 2818, writes 11 timeouts 0, SG min/max 0/0
    Driver 5: position 0, standstill, reads 2818, writes 11 timeouts 0, SG min/max 0/0
    Date/time: 2020-09-20 17:16:50
    Slowest loop: 11.09ms; fastest: 0.14ms
    === Storage ===
    Free file entries: 10
    SD card 0 detected, interface speed: 25.0MBytes/sec
    SD card longest read time 1.7ms, write time 0.0ms, max retries 0
    === Move ===
    Hiccups: 0(0), FreeDm: 375, MinFreeDm: 364, MaxWait: 27315ms
    Bed compensation in use: mesh, comp offset 0.000
    === MainDDARing ===
    Scheduled moves: 16, completed moves: 16, 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
    Heater 0 is on, I-accum = 0.3
    Heater 1 is on, I-accum = 0.4
    === 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.00ms; fastest: 5726623.00ms
    Responder states:
    HTTP sessions: 0 of 8
    - Ethernet -
    State: disabled
    Error counts: 0 0 0 0 0
    Socket states: 0 0 0 0 0 0 0 0
    === CAN ===
    Messages sent 967, send timeouts 967, longest wait 0ms for type 0, free CAN buffers 48
    === SBC interface ===
    State: 0, failed transfers: 0
    Last transfer: 18ms ago
    RX/TX seq numbers: 7647/7649
    SPI underruns 0, overruns 0
    Number of disconnects: 1
    Buffer RX/TX: 0/0-0
    === Duet Control Server ===
    Duet Control Server v3.2.0-beta1+1
    File:
    Finishing macro /sys/before-print.g, started by G1 X85.779 Y137.166 E0.02389
    > Next stack level
    Suspended code: M109 S210 ; set temperature and wait for it to be reached
    Suspended code: G21 ; set units to millimeters
    Suspended code: G90 ; use absolute coordinates
    Suspended code: M83 ; use relative distances for extrusion
    Suspended code: ; Filament gcode
    Suspended code: G1 Z0.200 F7800.000
    Suspended code: G1 E-1.50000 F3600.00000
    Suspended code: G1 X86.638 Y146.405 F7800.000
    Suspended code: G1 E1.50000 F3600.00000
    Suspended code: G1 F2400.000
    Suspended code: G1 X85.779 Y145.546 E0.03809
    Suspended code: G1 X85.779 Y144.784 E0.02389
    Suspended code: G1 X87.230 Y146.235 E0.06435
    Suspended code: G1 X87.992 Y146.235 E0.02389
    Suspended code: G1 X85.779 Y144.022 E0.09813
    Suspended code: G1 X85.779 Y143.260 E0.02389
    Suspended code: G1 X130.860 Y188.341 E1.99896
    Suspended code: G1 X131.622 Y188.341 E0.02389
    Suspended code: G1 X85.779 Y142.498 E2.03274
    Suspended code: G1 X85.779 Y141.737 E0.02389
    Suspended code: G1 X132.384 Y188.341 E2.06652
    Suspended code: G1 X133.146 Y188.341 E0.02389
    Suspended code: G1 X85.779 Y140.975 E2.10030
    Suspended code: G1 X85.779 Y140.213 E0.02389
    Suspended code: G1 X133.907 Y188.341 E2.13408
    Suspended code: G1 X134.669 Y188.341 E0.02389
    Suspended code: G1 X85.779 Y139.451 E2.16787
    Suspended code: G1 X85.779 Y138.689 E0.02389
    Pending code: G1 X135.431 Y188.341 E2.20165
    Pending code: G1 X136.193 Y188.341 E0.02389
    Pending code: G1 X85.779 Y137.927 E2.23543
    Pending code: G1 X85.779 Y137.166 E0.02389
    Trigger:
    Finishing macro config.g, started by system
    > Next stack level
    Code buffer space: 4096
    Configured SPI speed: 8000000 Hz
    Full transfers per second: 31.91
    File /opt/dsf/sd/gcodes/top dome mk 85 helmet by do3d.gcode is selected, processing
    

    The GCode I posted earlier is my "Before Print" Gcode and it's all of it. The next GCode lines are the lines from the print itself but I think that the last completed line is the line 12 of my "Before Print" Gcode because the Tool is still positioned at the end of the purge line and the extruder isn't reset to position 0 as it should be on line 13.
    Also I said in my previous post that I didn't have the "Heightmap loaded" notification when it freezes but it was a mistake I do have the "Height map loaded from file heightmap.csv" notification before the freeze.



  • I'm getting the same intermittent freezing. Also seems to happen during toolchange procedure. Sometimes before toolchange, sometimes after.

    Raspberry pi 4 8gb
    Duet 3 MB6HC version 3.2-beta1
    1x Toolboard with 3.2-beta

    M122
    === Diagnostics ===
    RepRapFirmware for Duet 3 MB6HC version 3.2-beta1 running on Duet 3 MB6HC v1.01 or later (SBC mode)
    Board ID: 08DJM-956L2-G43S8-6J9FJ-3SJ6Q-980GG
    Used output buffers: 1 of 40 (22 max)
    === RTOS ===
    Static ram: 154820
    Dynamic ram: 133684 of which 32 recycled
    Exception stack ram used: 552
    Never used ram: 104128
    Tasks: HEAT(blocked,278) CanReceiv(blocked,880) CanSender(blocked,345) CanClock(blocked,352) TMC(blocked,18) MAIN(running,719) IDLE(ready,19)
    Owned mutexes:
    === Platform ===
    Last reset 02:50:11 ago, cause: software
    Last software reset at 2020-09-26 15:22, reason: User, LinuxInterface spinning, available RAM 103944, slot 1
    Software reset code 0x0010 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0444a000 BFAR 0x00000000 SP 0xffffffff Task MAIN
    Error status: 0x020
    MCU temperature: min 36.8, current 37.7, max 39.8
    Supply voltage: min 23.9, current 24.0, max 24.1, 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: position 60000, standstill, reads 64470, writes 15 timeouts 0, SG min/max 0/434
    Driver 1: position 0, standstill, reads 64469, writes 15 timeouts 0, SG min/max 0/509
    Driver 2: position 11840, standstill, reads 64469, writes 15 timeouts 0, SG min/max 0/1023
    Driver 3: position 0, standstill, reads 64469, writes 15 timeouts 0, SG min/max 0/1023
    Driver 4: position 0, standstill, reads 64469, writes 15 timeouts 0, SG min/max 0/1023
    Driver 5: position 0, standstill, reads 64472, writes 13 timeouts 0, SG min/max 0/104
    Date/time: 2020-09-26 18:12:52
    Slowest loop: 6.35ms; fastest: 0.21ms
    === 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: 363, MaxWait: 2714285ms
    Bed compensation in use: mesh, comp offset 0.018
    === MainDDARing ===
    Scheduled moves: 6, completed moves: 6, 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
    Heater 0 is on, I-accum = 0.3
    === 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.00ms; fastest: 5726623.00ms
    Responder states:
    HTTP sessions: 0 of 8
    - Ethernet -
    State: disabled
    Error counts: 0 0 0 0 0
    Socket states: 0 0 0 0 0 0 0 0
    === CAN ===
    Messages sent 49377, send timeouts 49377, longest wait 2ms for type 6013, free CAN buffers 48
    === SBC interface ===
    State: 0, failed transfers: 0
    Last transfer: 18ms ago
    RX/TX seq numbers: 4942/4944
    SPI underruns 0, overruns 0
    Number of disconnects: 0
    Buffer RX/TX: 0/0-0
    === Duet Control Server ===
    Duet Control Server v3.2.0-beta1+1
    File:
    Finishing macro retractprobe0.g, started by G1 X175.548 Y165.520 E1.65142
    > Next stack level
    Suspended code: T0
    Suspended code: M109 S205 ; set temperature and wait for it to be reached
    Suspended code: G21 ; set units to millimeters
    Suspended code: G90 ; use absolute coordinates
    Suspended code: M83 ; use relative distances for extrusion
    Suspended code: ; Filament gcode
    Suspended code: G1 Z0.350000 F7800.000
    Suspended code: G1 E-0.40000 F3000.00000
    Suspended code: G1 Z1.250000 F7800.000
    Suspended code: G1 X127.199 Y127.882
    Suspended code: G1 Z0.350000
    Suspended code: G1 E0.45000 F3000.00000
    Suspended code: G1 F1800.000
    Suspended code: G1 X127.975 Y127.115 E0.05896
    Suspended code: G1 X128.827 Y126.432 E0.05896
    Suspended code: G1 X129.737 Y125.844 E0.05853
    Suspended code: G1 X130.710 Y125.350 E0.05896
    Suspended code: G1 X131.721 Y124.961 E0.05853
    Suspended code: G1 X132.767 Y124.678 E0.05853
    Suspended code: G1 X133.837 Y124.504 E0.05853
    Suspended code: G1 X134.982 Y124.439 E0.06199
    Suspended code: G1 X165.007 Y124.439 E1.62193
    Suspended code: G1 X166.836 Y124.600 E0.09920
    Suspended code: G1 X168.610 Y125.076 E0.09920
    Suspended code: G1 X170.267 Y125.847 E0.09877
    Suspended code: G1 X171.773 Y126.898 E0.09920
    Suspended code: G1 X173.074 Y128.194 E0.09920
    Suspended code: G1 X174.131 Y129.695 E0.09920
    Suspended code: G1 X174.912 Y131.357 E0.09920
    Suspended code: G1 X175.392 Y133.122 E0.09877
    Pending code: G1 X175.561 Y134.950 E0.09920
    Pending code: G1 X175.548 Y165.520 E1.65142
    Code buffer space: 4096
    Configured SPI speed: 8000000 Hz
    Full transfers per second: 32.60
    File /opt/dsf/sd/gcodes/cube.gcode is selected, processing
    

  • administrators

    @Luke-sLaboratory, please try firmware 3.2beta2. We have made major changes to the way communication between the Duet and SBC is handled, which may resolve this.



  • @dc42 WHOO!

    apt-get update && upgrade are in my future! I'll give it a chooch and see what happens 🙂



  • @dc42 I'm very upset right now - you failed to mention the more important upgrade - ON SCREEN KEYBOARD!!!!!! 😍 😍 😍 😍 😍 😍 😍 😍 😍
    8ccfcc4f-d1a2-46fe-a4c0-03bbb1118b84-image.png



  • @dc42 Alright - 3rd Reply - Did Another print, no fail on tool/mesh load! great! However - got a push() Stack overflow error in my console, M122 below it cancelled the print, and cooled down the stuff, which was very nice of it 🙂

    M122
    === Diagnostics ===
    RepRapFirmware for Duet 3 MB6HC version 3.2-beta2 running on Duet 3 MB6HC v0.6 or 1.0 (SBC mode)
    Board ID: 08DGM-9T66A-G63SJ-6J1DG-3SD6K-9V0MA
    Used output buffers: 1 of 40 (14 max)
    === RTOS ===
    Static ram: 157532
    Dynamic ram: 138164 of which 44 recycled
    Exception stack ram used: 528
    Never used ram: 96948
    Tasks: Linux(ready,20) HEAT(blocked,278) CanReceiv(blocked,873) CanSender(blocked,352) CanClock(blocked,353) TMC(blocked,20) MAIN(running,1208) IDLE(ready,20)
    Owned mutexes: HTTP(MAIN)
    === Platform ===
    Last reset 02:55:36 ago, cause: software
    Last software reset at 2020-10-06 18:29, reason: User, Platform spinning, available RAM 97344, slot 0
    Software reset code 0x0000 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0444a000 BFAR 0x00000000 SP 0xffffffff Task Linu
    Error status: 0x00
    MCU temperature: min 40.0, current 41.8, max 44.7
    Supply voltage: min 23.8, current 24.2, max 24.4, 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: position 49600, standstill, reads 53251, writes 27 timeouts 0, SG min/max 0/349
    Driver 1: position 46400, standstill, reads 53252, writes 27 timeouts 0, SG min/max 0/365
    Driver 2: position 24000, standstill, reads 53256, writes 23 timeouts 0, SG min/max 0/65
    Driver 3: position 12300, standstill, reads 53257, writes 23 timeouts 0, SG min/max 0/294
    Driver 4: position 0, standstill, reads 53257, writes 23 timeouts 0, SG min/max 0/284
    Driver 5: position 0, standstill, reads 53258, writes 23 timeouts 0, SG min/max 0/284
    Date/time: 2020-10-06 21:25:17
    Slowest loop: 7274.81ms; fastest: 0.21ms
    === 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: 373, MaxWait: 2570081ms
    Bed compensation in use: none, comp offset 0.000
    === MainDDARing ===
    Scheduled moves: 43, completed moves: 43, 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.
    === CAN ===
    Messages sent 42212, send timeouts 42212, longest wait 2ms for type 6013, free CAN buffers 48
    === SBC interface ===
    State: 0, failed transfers: 0
    Last transfer: 18ms ago
    RX/TX seq numbers: 44751/16533
    SPI underruns 0, overruns 0
    Number of disconnects: 0
    Buffer RX/TX: 0/0-0
    === Duet Control Server ===
    Duet Control Server v3.2.0-beta2
    Code buffer space: 4096
    Configured SPI speed: 8000000 Hz
    Full transfers per second: 32.68
    

Log in to reply