Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    M122 causes reset on [3.4.2-rc2]

    Scheduled Pinned Locked Moved Solved
    Beta Firmware
    2
    4
    277
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • OwenDundefined
      OwenD
      last edited by OwenD

      @dc42
      I've just noticed that on version 3.4.2RC2 an M122 call causes a reset of the board.

      Board: Duet 2 WiFi (2WiFi)
      Firmware: RepRapFirmware for Duet 2 WiFi/Ethernet 3.4.2rc1 (2022-07-06)
      Duet WiFi Server Version: 1.27beta1
      Duet Web Control 3.4.2-rc2

      If I run an earlier version of Duet2CombinedFirmware.bin it doesn't happen ( I didn't go back with DWC or Wifi)

      I do use quite a lot of global variables, but the stack reports on earlier versions seem OK to me?

      M122 report with 3.4.2RC1 (installed immediately after a reset when trying RC2)

      M122
      === Diagnostics ===
      RepRapFirmware for Duet 2 WiFi/Ethernet version 3.4.2rc1 (2022-07-06 16:21:02) running on Duet WiFi 1.02 or later
      Board ID: 08DGM-917NK-F2MS4-7J1DA-3S86T-TZTWD
      Used output buffers: 9 of 26 (21 max)
      === RTOS ===
      Static ram: 23860
      Dynamic ram: 78532 of which 0 recycled
      Never used RAM 6832, free system stack 184 words
      Tasks: NETWORK(ready,5.6%,237) ACCEL(notifyWait,0.0%,348) HEAT(notifyWait,0.0%,333) Move(notifyWait,0.0%,363) MAIN(running,91.2%,464) IDLE(ready,3.1%,30), total 100.0%
      Owned mutexes:
      === Platform ===
      Last reset 00:00:30 ago, cause: software
      Last software reset time unknown, reason: HardFault bfarValid precise, none spinning, available RAM 40780, slot 2
      Software reset code 0x0072 HFSR 0x40000000 CFSR 0x00008200 ICSR 0x00000803 BFAR 0xa5a5a665 SP 0x20004b98 Task MAIN Freestk 1027 ok
      Stack: a5a5a5a5 00000000 2000bde0 0000005a ffffffff 0042ca4d 0042c930 61070000 20001c6c 20002084 00000000 20002030 00000000 00000000 200115d4 00000000 00000000 0045b60d 00000005 00456da3 00000000 00000000 00000002 200115d4 00000000 00000009 0000005a
      Error status: 0x00
      Aux0 errors 0,0,0
      Step timer max interval 0
      MCU temperature: min 18.6, current 19.4, max 19.8
      Supply voltage: min 0.5, current 24.3, max 24.5, under voltage events: 0, over voltage events: 0, power good: yes
      Heap OK, handles allocated/used 99/25, heap memory allocated/used/recyclable 2048/640/258, gc cycles 0
      Events: 0 queued, 0 completed
      Driver 0: standstill, SG min n/a
      Driver 1: standstill, SG min n/a
      Driver 2: standstill, SG min n/a
      Driver 3: standstill, SG min n/a
      Driver 4: standstill, SG min n/a
      Driver 5: 
      Driver 6: 
      Driver 7: 
      Driver 8: 
      Driver 9: 
      Driver 10: 
      Driver 11: 
      Date/time: 2022-08-13 16:44:15
      Cache data hit count 1177191863
      Slowest loop: 4.88ms; fastest: 0.11ms
      I2C nak errors 0, send timeouts 0, receive timeouts 0, finishTimeouts 0, resets 0
      === Storage ===
      Free file entries: 10
      SD card 0 detected, interface speed: 20.0MBytes/sec
      SD card longest read time 1.1ms, write time 0.0ms, max retries 0
      === Move ===
      DMs created 83, segm=== MainDDARing ===
      Scheduled moves 0, completed 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
      === AuxDDARing ===
      Scheduled moves 0, completed 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
      === Heat ===
      Bed heaters 0 -1 -1 -1, chamber heaters -1 -1 -1 -1, ordering errs 0
      === GCodes ===
      Segments left: 0
      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
      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
      Daemon is idle in state(s) 0
      Autopause is idle in state(s) 0
      Code queue is empty
      === Filament sensors ===
      Extruder 0 sensor: ok
      === Network ===
      Slowest loop: 62.42ms; fastest: 0.00ms
      Responder states: HTTP(2) HTTP(2) HTTP(0) HTTP(0) FTP(0) Telnet(0), 0 sessions
      HTTP sessions: 1 of 8
      - WiFi -
      Network state is active
      WiFi module is connected to access point 
      Failed messages: pending 0, notready 0, noresp 0
      WiFi firmware version 1.27beta1
      WiFi MAC address bc:dd:c2:89:a0:bb
      WiFi Vcc 3.38, reset reason Power up
      WiFi flash size 4194304, free heap 23272
      WiFi IP address 192.168.1.163
      WiFi signal strength -53dBm, mode 802.11n, reconnections 0, sleep mode modem
      Clock register 00002002
      Socket states: 4 4 0 0 0 0 0 0
      

      M122 report with 3.4.1 stable

      M122
      === Diagnostics ===
      RepRapFirmware for Duet 2 WiFi/Ethernet version 3.4.1 (2022-06-01 21:05:28) running on Duet WiFi 1.02 or later
      Board ID: 08DGM-917NK-F2MS4-7J1DA-3S86T-TZTWD
      Used output buffers: 8 of 26 (21 max)
      === RTOS ===
      Static ram: 23860
      Dynamic ram: 78500 of which 0 recycled
      Never used RAM 6864, free system stack 184 words
      Tasks: NETWORK(ready,6.7%,223) ACCEL(notifyWait,0.0%,348) HEAT(notifyWait,0.0%,333) Move(notifyWait,0.0%,363) MAIN(running,90.7%,466) IDLE(ready,2.6%,30), total 100.0%
      Owned mutexes: WiFi(NETWORK)
      === Platform ===
      Last reset 00:00:36 ago, cause: software
      Last software reset time unknown, reason: HardFault bfarValid precise, none spinning, available RAM 40780, slot 2
      Software reset code 0x0072 HFSR 0x40000000 CFSR 0x00008200 ICSR 0x00000803 BFAR 0xa5a5a665 SP 0x20004b98 Task MAIN Freestk 1027 ok
      Stack: a5a5a5a5 00000000 2000bde0 0000005a ffffffff 0042ca4d 0042c930 61070000 20001c6c 20002084 00000000 20002030 00000000 00000000 200115d4 00000000 00000000 0045b60d 00000005 00456da3 00000000 00000000 00000002 200115d4 00000000 00000009 0000005a
      Error status: 0x00
      Aux0 errors 0,0,0
      Step timer max interval 0
      MCU temperature: min 20.4, current 21.0, max 21.4
      Supply voltage: min 0.4, current 24.3, max 24.5, under voltage events: 0, over voltage events: 0, power good: yes
      Heap OK, handles allocated/used 99/25, heap memory allocated/used/recyclable 2048/668/286, gc cycles 0
      Events: 0 queued, 0 completed
      Driver 0: standstill, SG min n/a
      Driver 1: standstill, SG min n/a
      Driver 2: standstill, SG min n/a
      Driver 3: standstill, SG min n/a
      Driver 4: standstill, SG min n/a
      Driver 5: 
      Driver 6: 
      Driver 7: 
      Driver 8: 
      Driver 9: 
      Driver 10: 
      Driver 11: 
      Date/time: 2022-08-13 16:39:06
      Cache data hit count 1411814672
      Slowest loop: 4.93ms; fastest: 0.13ms
      I2C nak errors 0, send timeouts 0, receive timeouts 0, finishTimeouts 0, resets 0
      === Storage ===
      Free file entries: 10
      SD card 0 detected, interface speed: 20.0MBytes/sec
      SD card longest read time 1.1ms, write time 0.0ms, max retries 0
      === Move ===
      DMs created 83, segments created 0, maxWait 0ms, bed compensation in use: none, comp offset 0.000
      === MainDDARing ===
      Scheduled moves 0, completed 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
      === AuxDDARing ===
      Scheduled moves 0, completed 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
      === Heat ===
      Bed heaters 0 -1 -1 -1, chamber heaters -1 -1 -1 -1, ordering errs 0
      === GCodes ===
      Segments left: 0
      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
      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
      Daemon is idle in state(s) 0
      Autopause is idle in state(s) 0
      Code queue is empty
      === Filament sensors ===
      Extruder 0 sensor: ok
      === Network ===
      Slowest loop: 60.83ms; fastest: 0.00ms
      Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0), 0 sessions
      HTTP sessions: 1 of 8
      - WiFi -
      Network state is active
      WiFi module is connected to access point 
      Failed messages: pending 0, notready 0, noresp 0
      WiFi firmware version 1.27beta1
      WiFi MAC address bc:dd:c2:89:a0:bb
      WiFi Vcc 3.38, reset reason Power up
      WiFi flash size 4194304, free heap 23272
      WiFi IP address 192.168.1.163
      WiFi signal strength -53dBm, mode 802.11n, reconnections 0, sleep mode modem
      Clock register 00002002
      Socket states: 0 0 0 0 0 0 0 0
      
      dc42undefined 2 Replies Last reply Reply Quote 1
      • dc42undefined
        dc42 administrators @OwenD
        last edited by

        @owend thanks for your report. I will investigate this later today.

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

        1 Reply Last reply Reply Quote 0
        • dc42undefined
          dc42 administrators @OwenD
          last edited by

          @owend I confirm this is a bug. I have put a new firmware build for Duet 2 at https://www.dropbox.com/sh/7tf55ax00ky1pyx/AAA_eVJE20oYUON_gjKhCHsja?dl=0.

          Duet WiFi hardware designer and firmware engineer
          Please do not ask me for Duet support via PM or email, use the forum
          http://www.escher3d.com, https://miscsolutions.wordpress.com

          OwenDundefined 1 Reply Last reply Reply Quote 0
          • OwenDundefined
            OwenD @dc42
            last edited by

            @dc42
            This is now fixed.
            Thanks for the prompt attention 👍

            M122
            === Diagnostics ===
            RepRapFirmware for Duet 2 WiFi/Ethernet version 3.4.2rc2+ (2022-08-13 11:34:57) running on Duet WiFi 1.02 or later
            Board ID: 08DGM-917NK-F2MS4-7J1DA-3S86T-TZTWD
            Used output buffers: 3 of 26 (22 max)
            === RTOS ===
            Static ram: 23860
            Dynamic ram: 78520 of which 0 recycled
            Never used RAM 6844, free system stack 202 words
            Tasks: NETWORK(notifyWait,6.4%,237) ACCEL(notifyWait,0.0%,348) HEAT(notifyWait,0.0%,333) Move(notifyWait,0.0%,363) MAIN(running,90.7%,464) IDLE(ready,2.9%,30), total 100.0%
            Owned mutexes: WiFi(NETWORK)
            === Platform ===
            Last reset 00:00:32 ago, cause: software
            Last software reset time unknown, reason: HardFault bfarValid precise, none spinning, available RAM 40780, slot 2
            Software reset code 0x0072 HFSR 0x40000000 CFSR 0x00008200 ICSR 0x00000803 BFAR 0xa5a5a665 SP 0x20004b98 Task MAIN Freestk 1027 ok
            Stack: a5a5a5a5 00000000 2000bde0 0000005a ffffffff 0042ca4d 0042c930 61070000 20001c6c 20002084 00000000 20002030 00000000 00000000 200115d4 00000000 00000000 0045b60d 00000005 00456da3 00000000 00000000 00000002 200115d4 00000000 00000009 0000005a
            Error status: 0x00
            Aux0 errors 0,0,0
            Step timer max interval 0
            MCU temperature: min 15.8, current 16.3, max 16.5
            Supply voltage: min 0.5, current 0.5, max 0.6, under voltage events: 0, over voltage events: 0, power good: no
            Heap OK, handles allocated/used 99/25, heap memory allocated/used/recyclable 2048/570/188, gc cycles 0
            Events: 0 queued, 0 completed
            Driver 0: ok, SG min n/a
            Driver 1: ok, SG min n/a
            Driver 2: ok, SG min n/a
            Driver 3: ok, SG min n/a
            Driver 4: ok, SG min n/a
            Driver 5: 
            Driver 6: 
            Driver 7: 
            Driver 8: 
            Driver 9: 
            Driver 10: 
            Driver 11: 
            Date/time: 2022-08-14 07:25:19
            Cache data hit count 1313699203
            Slowest loop: 8.92ms; fastest: 0.14ms
            I2C nak errors 0, send timeouts 0, receive timeouts 0, finishTimeouts 0, resets 0
            === Storage ===
            Free file entries: 10
            SD card 0 detected, interface speed: 20.0MBytes/sec
            SD card longest read time 0.9ms, write time 0.0ms, max retries 0
            === Move ===
            DMs created 83, segments created 0, maxWait 0ms, bed compensation in use: none, comp offset 0.000
            === MainDDARing ===
            Scheduled moves 0, completed 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
            === AuxDDARing ===
            Scheduled moves 0, completed 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
            === Heat ===
            Bed heaters 0 -1 -1 -1, chamber heaters -1 -1 -1 -1, ordering errs 0
            === GCodes ===
            Segments left: 0
            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
            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
            Daemon is idle in state(s) 0
            Autopause is idle in state(s) 0
            Code queue is empty
            === Filament sensors ===
            Extruder 0 sensor: ok
            === Network ===
            Slowest loop: 60.58ms; fastest: 0.00ms
            Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0), 0 sessions
            HTTP sessions: 1 of 8
            = WiFi =
            Network state is active
            WiFi module is connected to access point 
            Failed messages: pending 0, notready 0, noresp 0
            WiFi firmware version 1.27beta1
            WiFi MAC address bc:dd:c2:89:a0:bb
            WiFi Vcc 3.38, reset reason Power up
            WiFi flash size 4194304, free heap 24736
            WiFi IP address 192.168.1.163
            WiFi signal strength -53dBm, mode 802.11n, reconnections 0, sleep mode modem
            Clock register 00002002
            Socket states: 0 0 0 0 0 0 0 0
            
            1 Reply Last reply Reply Quote 0
            • OwenDundefined OwenD has marked this topic as solved
            • Phaedruxundefined Phaedrux referenced this topic
            • First post
              Last post
            Unless otherwise noted, all forum content is licensed under CC-BY-SA