Solved 3.4b1 - duet 3 mini + SBC - RRF crashes with fysetc mini enabled
-
With a fysetc mini enabled, the board reboots every 10-15 seconds and the config isn't loaded correctly.
I should note this is the 3.4b1 on the package feed and not the input shaping version
These are the lines I useM918 P2 ; enable ST7567-based 12864 display M150 X1 R255 U255 B255 S3 ; set all 3 LEDs to white
Commenting them out fixes the issue.
Below is an M122 output=== Diagnostics === RepRapFirmware for Duet 3 Mini 5+ version 3.4.0beta1 (2021-07-10 16:20:41) runni ng on Duet 3 Mini5plus Ethernet (SBC mode) Board ID: P2P4H-PA67A-G65J0-40TFU-L2D0Z-ZTS4L Used output buffers: 2 of 40 (10 max) === RTOS === Static ram: 102724 Dynamic ram: 96420 of which 0 recycled Never used RAM 44560, free system stack 152 words Tasks: SBC(notifyWait,2.0%,330) HEAT(notifyWait,0.0%,366) Move(notifyWait,0.1%,3 62) CanReceiv(notifyWait,0.0%,941) CanSender(notifyWait,0.0%,371) CanClock(delay ing,0.0%,340) TMC(notifyWait,0.6%,116) MAIN(running,62.9%,602) IDLE(ready,33.6%, 29) AIN(delaying,0.8%,273), total 100.0% Owned mutexes: USB(MAIN) === Platform === Last reset 00:00:08 ago, cause: software Last software reset at 2021-07-14 10:16, reason: StuckInSpinLoop, Platform spinn ing, available RAM 44560, slot 1 Software reset code 0x0080 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0000080f BFAR 0xe000ed38 SP 0x2002f1fc Task SBC Freestk 604 ok Stack: 0000987f 00009880 210f0000 00000000 40f86a00 00045443 19035c08 84858830 0 0ac249a 20056004 50808b04 02e0a458 102b408a 00191404 00000000 00000000 49371b00 7f7fffff 00000000 60000010 0000987f 20002744 20018401 00000001 20021f10 2002f474 000422cd Error status: 0x00 MCU revision 3, ADC conversions started 8333, completed 8333, timed out 0, errs 0 Step timer max interval 916 MCU temperature: min 34.8, current 35.2, max 35.4 Supply voltage: min 23.8, current 23.8, max 23.9, under voltage events: 0, over voltage events: 0, power good: yes Heap OK, handles allocated/used 0/0, heap memory allocated/used/recyclable 0/0/0 , gc cycles 0 Driver 0: position 0, standstill, SG min/max 0/0, read errors 0, write errors 1, ifcnt 101, reads 413, writes 13, timeouts 0, DMA errors 0 Driver 1: position 0, standstill, SG min/max 0/0, read errors 0, write errors 1, ifcnt 101, reads 413, writes 13, timeouts 0, DMA errors 0 Driver 2: position 0, standstill, SG min/max 0/0, read errors 0, write errors 1, ifcnt 100, reads 412, writes 13, timeouts 0, DMA errors 0 Driver 3: position 0, standstill, SG min/max 0/0, read errors 0, write errors 1, ifcnt 100, reads 412, writes 13, timeouts 0, DMA errors 0 Driver 4: position 0, standstill, SG min/max 0/0, read errors 0, write errors 1, ifcnt 101, reads 413, writes 13, timeouts 0, DMA errors 0 Driver 5: position 0, assumed not present Driver 6: position 0, assumed not present Date/time: 2021-07-14 10:17:15 Cache data hit count 13284213 Slowest loop: 1.31ms; fastest: 0.10ms === Storage === Free file entries: 10 SD card 0 not detected, interface speed: 0.0MBytes/sec SD card longest read time 0.0ms, write time 0.0ms, max retries 0 === Move === DMs created 83, maxWait 0ms, bed compensation in use: none, comp offset 0.000 === MainDDARing === Scheduled moves 0, completed moves 0, hiccups 0, stepErrors 0, LaErrors 0, Under runs [0, 0, 0], CDDA state -1 === AuxDDARing === Scheduled moves 0, completed moves 0, hiccups 0, stepErrors 0, LaErrors 0, Under runs [0, 0, 0], CDDA state -1 === Heat === Bed heaters = 0 -1, chamberHeaters = -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 ready with "m122" 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 queued 70, received 0, lost 0, longest wait 0ms for reply type 0, peak Tx sync delay 0, free buffers 17 (min 17), ts 42/0/0 Tx timeouts 0,0,41,0,0,27 last cancelled message type 30 dest 127 === SBC interface === State: 4, failed transfers: 0, checksum errors: 0 Last transfer: 15ms ago RX/TX seq numbers: 157/463 SPI underruns 0, overruns 0 Disconnects: 1, timeouts: 0, IAP RAM available 0x10aa4 Buffer RX/TX: 0/0-0 ok
-
this still happens in 3.4b2
=== Diagnostics === RepRapFirmware for Duet 3 Mini 5+ version 3.4.0beta2 (2021-08-03 12:43:05) running on Duet 3 Mini5plus Ethernet (SBC mode) Board ID: P2P4H-PA67A-G65J0-40TFU-L2D0Z-ZTS4L Used output buffers: 1 of 40 (10 max) === RTOS === Static ram: 102724 Dynamic ram: 92900 of which 0 recycled Never used RAM 46088, free system stack 206 words Tasks: SBC(ready,2.4%,330) HEAT(notifyWait,0.0%,365) Move(notifyWait,0.0%,340) CanReceiv(notifyWait,0.0%,941) CanSender(notifyWait,0.0%,371) CanClock(delaying,0.0%,340) TMC(notifyWait,0.6%,115) MAIN(running,89.8%,560) IDLE(ready,6.5%,29) AIN(delaying,0.8%,274), total 100.0% Owned mutexes: HTTP(MAIN) === Platform === Last reset 00:00:04 ago, cause: software Last software reset at 2021-08-10 12:19, reason: StuckInSpinLoop, GCodes spinning, available RAM 42244, slot 2 Software reset code 0x4083 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0000080f BFAR 0xe000ed38 SP 0x2002f264 Task SBC Freestk 602 ok Stack: 0000987b 000090b4 21010000 68000000 406dc898 00041443 19035c08 8c858832 00ac249a 20056004 51808b00 02e0a45a 102b408a 00191404 00000000 00000004 3f800000 7f7fffff 41be9d69 80000010 0000987b 20002744 00000001 2001def0 20021ee0 0000000c 00043513 Error status: 0x00 MCU revision 3, ADC conversions started 4919, completed 4919, timed out 0, errs 0 Step timer max interval 1488 MCU temperature: min 34.3, current 34.6, max 34.9 Supply voltage: min 23.8, current 23.9, max 23.9, under voltage events: 0, over voltage events: 0, power good: yes Heap OK, handles allocated/used 0/0, heap memory allocated/used/recyclable 0/0/0, gc cycles 0 Driver 0: position 0, standstill, SG min/max 0/0, read errors 0, write errors 1, ifcnt 48, reads 233, writes 13, timeouts 0, DMA errors 0 Driver 1: position 0, standstill, SG min/max 0/0, read errors 0, write errors 1, ifcnt 48, reads 233, writes 13, timeouts 0, DMA errors 0 Driver 2: position 0, standstill, SG min/max 0/0, read errors 0, write errors 1, ifcnt 48, reads 233, writes 13, timeouts 0, DMA errors 0 Driver 3: position 0, standstill, SG min/max 0/0, read errors 0, write errors 1, ifcnt 48, reads 232, writes 13, timeouts 0, DMA errors 0 Driver 4: position 0, standstill, SG min/max 0/0, read errors 0, write errors 1, ifcnt 48, reads 233, writes 13, timeouts 0, DMA errors 0 Driver 5: position 0, assumed not present Driver 6: position 0, assumed not present Date/time: 2021-08-10 12:20:03 Cache data hit count 10317119 Slowest loop: 3.99ms; fastest: 0.08ms === Storage === Free file entries: 10 SD card 0 not detected, interface speed: 0.0MBytes/sec SD card longest read time 0.0ms, 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 moves 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1 === AuxDDARing === Scheduled moves 0, completed moves 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1 === Heat === Bed heaters = 0 -1, chamberHeaters = -1 -1 Heater 1 is on, I-accum = 0.0 === GCodes === Segments left: 0 Movement lock held by null HTTP* is doing "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 queued 41, received 0, lost 0, longest wait 0ms for reply type 0, peak Tx sync delay 0, free buffers 17 (min 17), ts 25/0/0 Tx timeouts 0,0,24,0,0,15 last cancelled message type 30 dest 127 === SBC interface === State: 4, failed transfers: 0, checksum errors: 0 Last transfer: 6ms ago RX/TX seq numbers: 232/231 SPI underruns 0, overruns 0 Disconnects: 0, timeouts: 0, IAP RAM available 0x10a30 Buffer RX/TX: 0/0-0 === Duet Control Server === Duet Control Server v3.4-b2 Code buffer space: 4096 Configured SPI speed: 8000000Hz Full transfers per second: 10.29, max wait times: 28.0ms/5.3ms Codes per second: 2.71 Maximum length of RX/TX data transfers: 3540/788
-
@jay_s_uk Can you check if it crashes in standalone mode? ie is it an SBC issue or RRF issue? Thanks.
Ian
-
@droftarts I can have a go this evening. I'm running a print at the moment
-
@jay_s_uk I'll finish the conversion of my new printer with a Mini 12864 + SBC this week, when I'm done I can have a look at it.
-
@jay_s_uk is it the M918 or the M150 that causes the crash?
-
@dc42 M918.
I left them both commented out in my config and sent M918 through the command line -
@jay_s_uk thanks. My guess is that loading the menu files from SBC is triggering the problem, because that code is fairly new.
-
@jay_s_uk I can confirm 3.4-b2 + SBC doesn't work with a 12864 but thanks to the adapter PCB from @PCR / @DIY-O-Sphere I've been able to get it working in SBC mode. It will be fixed in v3.4-b3.