3.01RC11 on WiFi + Duex5 M950 Fan on Duex causes reboot loop.
-
@dc42
I am using VIN, 24V.
No difference if Fan3 is connected or not. -
Now that you are running firmware 3.1.1, please can you get and post another M122 report after the reboot happens.
-
@dc42
Thank you! Here it is:M122 === Diagnostics === RepRapFirmware for Duet 2 WiFi/Ethernet version 3.1.1 running on Duet WiFi 1.02 or later + DueX5 Board ID: 08DGM-917DA-G4MS8-6JTD4-3S86L-19S7A Used output buffers: 3 of 24 (11 max) === RTOS === Static ram: 27980 Dynamic ram: 94788 of which 60 recycled Exception stack ram used: 264 Never used ram: 7980 Tasks: NETWORK(ready,384) HEAT(blocked,1224) DUEX(blocked,160) MAIN(running,1812) IDLE(ready,80) Owned mutexes: WiFi(NETWORK) I2C(DUEX) === Platform === Last reset 00:00:20 ago, cause: software Last software reset at 2020-05-28 12:58, reason: Stuck in spin loop, spinning module GCodes, available RAM 7480 bytes (slot 3) Software reset code 0x4083 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0041f80f BFAR 0xe000ed38 SP 0x200042e4 Task IDLE Stack: 00454cdd 00455710 61000000 a5a5a5a5 00454cdd a5a5a5a5 20004308 200041f8 00000002 20004de4 00046153 Error status: 0 MCU temperature: min 27.7, current 28.4, max 28.8 Supply voltage: min 24.1, current 24.2, max 24.3, 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 Driver 5: standstill, SG min/max not available Driver 6: standstill, SG min/max not available Driver 7: standstill, SG min/max not available Driver 8: standstill, SG min/max not available Driver 9: standstill, SG min/max not available Date/time: 2020-05-28 12:59:08 Cache data hit count 32201028 Slowest loop: 21.83ms; 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 2.7ms, write time 0.0ms, max retries 0 === Move === Hiccups: 0(0), FreeDm: 169, MinFreeDm: 169, MaxWait: 0ms Bed compensation in use: none, 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, chamberHeaters = -1 -1 -1 -1 === 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 Daemon is idle in state(s) 0 Autopause is idle in state(s) 0 Code queue is empty. === Network === Slowest loop: 15.74ms; fastest: 0.00ms Responder states: HTTP(2) 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.23 WiFi MAC address 80:7d:3a:3f:f4:ce WiFi Vcc 3.38, reset reason Unknown WiFi flash size 4194304, free heap 25984 WiFi IP address 192.168.1.44 WiFi signal strength -47dBm, reconnections 0, sleep mode modem Socket states: 0 0 0 0 0 0 0 0 === DueX === Read count 3219, 9584.64 reads/min
-
@dc42
M122 was achieved by first booting with good configuration file and then issuingM950 F3 C"duex.fan3" Q500
to cause the reboot.
-
@dc42
Here is something new... I don't know why I never tried it before.
I disconnected the the Duex bus cable and it no longer reboots. I feel bad that I never tried it before
Now, I could try few other things. -
@dc42
@T3P3Tony
Duex board hosts five inputs (E2_STOP ... E6_STOP
), one per extruder.
Our configuration hosts five tools in total, and usedE0_STOP - E1_STOP
on Duet WIfi andE2_STOP - E4_STOP
on Duex5. Those ports have standard RepRep optical limit switches connected to them. Those limit switches monitor tools parking states - very useful application.When tool is parked, it's 3D printed housing has a little tab which engages the optical limit switch. Depending on translucency of the material used for tool housing, the little tab may not be completely opaque, thus causing some light to travel through it, putting optical limit switch into the state other then ON or OFF. When you power up 3D printer, it will suffer continuous reboots. Please note (#1) that
E0_STOP - E1_STOP
ports are not susceptible to this, that is why, two tools configuration always worked. Note #2, is that continuous reboots will be only happening when FANs are configured usingM950 F3 C"duex.fan3" Q500, M950 F4 C"duex.fan4" Q500, M950 F5 C"duex.fan5" Q500, M950 F6 C"duex.fan6" Q500, M950 F7 C"duex.fan7" Q500
gcodes.I am planning to check the output voltage of such half-lit optical switch with the scope, and perhaps simulate the condition using the voltage source instead of the optical limit switch.
CONCLUSION:
There must be a slight difference in schematics of howE0_STOP - E1_STOP
wired compared toE2_STOP ... E6_STOP
on Duex5.
To prevent such condition, data feed must not be ambiguous.A am very sorry, for taking your precious time with this, but exceedingly happy that the issue is now resolved.
Thank you guys!!! -
Thanks for the update.
Do the outputs for fans 3 to 7 run close to the wires for the optical endstops connected to the DueX?
There is indeed a difference between endstops connected to the Duet and endstops connected to the DueX. Endstops connected to the Duet are polled during homing moves to see when they trigger. Endstops connected to the DueX generate an interrupt to the Duet, which then has to read them via the I2C connection. There is a mechanism to prevent the DueX interrupts causing excessive overload on the Duet main processor; but it sounds as though this mechanism isn't working as well as necessary.
-
@dc42
"Do the outputs for fans 3 to 7 run close to the wires for the optical endstops connected to the DueX"
Yes
But, I always look back at firmware 2 running on the same HW without interference issues. -
@dc42
While on this topic, is there a way to querye0_stop - e1_stop
andduex.e2stop - duex.e6stop
inputs through object model?
I want to use them in gcode meta commands expressions.Thank you!
-
@UticaTechClub said in 3.01RC11 on WiFi + Duex5 M950 Fan on Duex causes reboot loop.:
@dc42
"Do the outputs for fans 3 to 7 run close to the wires for the optical endstops connected to the DueX"
Yes
But, I always look back at firmware 2 running on the same HW without interference issues.Older versions of RRF2 didn't actively keep the DueX endstop input status up to date. This led to increased endstop latency. New versions of RRF2 and all versions of RRF3 use a separate task to keep the DueX status up to date, by responding to the interrupt from the DueX immediately.