@dc42 I built a new computer in the first week of December '24 and started using Microsoft Edge for DWC; prior to that I was using Google Chrome. I use Google Chrome on my S22U phone to access DWC, as well. This installation of Windows 11 Professional is only a few weeks old and was a fresh installation. I haven't installed any additional languages aside from 'English (United States)' in Windows and Edge just shows two instances of English ('English' and 'English (US)') under preferred languages.
Posts made by omtek
-
RE: RRF 3.5.4 - Hardfault bfarValid precise
-
RE: RRF 3.5.4 - Hardfault bfarValid precise
@dc42 I meant to update this post sooner to add that I don't know why it started, but it stopped just as mysteriously as it started; including the two reports above, I captured an additional five M122 reports over a 36-ish hour period. The last one was 29 December, and I haven't encountered the issue since. The printer has been on and active with a browser window open to the printer since then.
The two most recent changes made to the printer before the issue occurred was updating the PanelDue 7.0i firmware to 3.5.1 and replacing the toolboard umbilical cable with the newer style molded power-CAN cable from Mellow Fly. I don't know if that had anything to do with it, but I'd be lying if I didn't consider rolling back both those changes when these resets started occurring.
Collected M122s (the two M122 reports above are included in the attached file):
omtek-RRF3.5.4-Duet3Mini5Plus-HardFault-M122.txtLet me know if I can provide any other information.
~oM
-
RE: RRF 3.5.4 - Hardfault bfarValid precise
Another Hardfault. Printer was idle at the time. This one had
Expansion
spinning.M122
=== Diagnostics === RepRapFirmware for Duet 3 Mini 5+ version 3.5.4 (2024-11-24 10:44:24) running on Duet 3 Mini5plus WiFi (standalone mode) Board ID: NTK2Z-J196U-D65J0-40KMN-1V03Z-ZJMGF Used output buffers: 13 of 40 (36 max) === RTOS === Static ram: 103496 Dynamic ram: 124564 of which 12 recycled Never used RAM 10824, free system stack 198 words Tasks: NETWORK(2,nWait 7,11.9%,211) LASER(5,nWait 7,0.0%,269) HEAT(3,nWait 6,0.0%,337) Move(4,nWait 6,0.0%,355) CanReceiv(6,nWait 1,0.1%,798) CanSender(5,nWait 7,0.0%,336) CanClock(7,delaying,0.0%,352) TMC(4,delaying,1.5%,101) MAIN(1,running,84.7%,665) IDLE(0,ready,1.1%,29) AIN(4,delaying,0.8%,259), total 100.0% Owned mutexes: === Platform === Last reset 00:00:28 ago, cause: software Last software reset at 2024-12-27 16:42, reason: HardFault bfarValid precise, Expansion spinning, available RAM 9544, slot 0 Software reset code 0x4072 HFSR 0x40000000 CFSR 0x00008200 ICSR 0x00000803 BFAR 0x0d392e38 SP 0x20011f80 Task NETW Freestk 448 ok Stack: 0d392e30 20033b0f 0000000a 00000001 20033b0f 0009e8e9 000a1478 61010000 2002c438 00000001 20012000 00000113 0009e8e9 2002c438 0002e74f 0d392e30 2002c401 20012050 a5a76ae7 00000000 00000113 2002c658 20031990 2002c670 2001eb00 a5a5a5a5 000305d9 Error status: 0x00 Aux0 errors 0,0,0 MCU revision 3, ADC conversions started 21388, completed 21387, timed out 0, errs 0 MCU temperature: min 37.2, current 37.4, max 38.6 Supply voltage: min 24.3, current 24.4, max 24.4, under voltage events: 0, over voltage events: 0, power good: yes Heap OK, handles allocated/used 99/10, heap memory allocated/used/recyclable 2048/300/128, gc cycles 0 Events: 0 queued, 0 completed Driver 0: standstill, SG min 0, read errors 0, write errors 1, ifcnt 105, reads 2532, writes 13, timeouts 0, DMA errors 0, CC errors 0 Driver 1: standstill, SG min 0, read errors 0, write errors 1, ifcnt 107, reads 2531, writes 13, timeouts 0, DMA errors 0, CC errors 0 Driver 2: standstill, SG min 0, read errors 0, write errors 1, ifcnt 54, reads 2534, writes 10, timeouts 0, DMA errors 0, CC errors 0 Driver 3: standstill, SG min 4, read errors 0, write errors 1, ifcnt 109, reads 2531, writes 13, timeouts 0, DMA errors 0, CC errors 0 Driver 4: standstill, SG min 2, read errors 0, write errors 1, ifcnt 107, reads 2532, writes 13, timeouts 0, DMA errors 0, CC errors 0 Driver 5: standstill, SG min 0, read errors 0, write errors 1, ifcnt 108, reads 2531, writes 13, timeouts 0, DMA errors 0, CC errors 0 Driver 6: standstill, SG min 0, read errors 0, write errors 1, ifcnt 54, reads 2534, writes 10, timeouts 0, DMA errors 0, CC errors 0 Date/time: 2024-12-27 16:43:21 Cache data hit count 53217681 Slowest loop: 8.67ms; fastest: 0.16ms === Storage === Free file entries: 20 SD card 0 detected, interface speed: 22.5MBytes/sec SD card longest read time 2.5ms, write time 0.0ms, max retries 0 === Move === DMs created 83, segments created 0, maxWait 0ms, bed compensation in use: none, height map offset 0.000, max steps late 0, min interval 0, bad calcs 0, ebfmin 0.00, ebfmax 0.00 no step interrupt scheduled Moves shaped first try 0, on retry 0, too short 0, wrong shape 0, maybepossible 0 === DDARing 0 === Scheduled moves 0, completed 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1 === DDARing 1 === 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 Heater 1 is on, I-accum = 0.0 === GCodes === Movement locks held by null, 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 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 File2 is idle in state(s) 0 Queue2 is idle in state(s) 0 Q0 segments left 0, axes/extruders owned 0x0000803 Code queue 0 is empty Q1 segments left 0, axes/extruders owned 0x0000000 Code queue 1 is empty === CAN === Messages queued 262, received 817, lost 0, errs 0, boc 0 Longest wait 2ms for reply type 6034, peak Tx sync delay 6, free buffers 26 (min 25), ts 142/141/0 Tx timeouts 0,0,0,0,0,0 === Network === Slowest loop: 30.26ms; fastest: 0.00ms Responder states: MQTT(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0) HTTP sessions: 3 of 8 === WiFi === Interface state: active Module is connected to access point Failed messages: pending 0, notrdy 0, noresp 0 Firmware version 2.2.0 MAC address d8:bf:c0:14:e5:fc Module reset reason: Power up, Vcc 3.36, flash size 2097152, free heap 39332 WiFi IP address 192.168.2.8 Signal strength -53dBm, channel 1, mode 802.11n, reconnections 0 Clock register 00002002 Socket states: 0 0 0 0 0 0 0 0
-
RRF 3.5.4 - Hardfault bfarValid precise
I just encountered a 'Hardfault bfarValid precise' reset on my Duet 3 Mini Wifi+ running RRF 3.5.4. The machine was sitting idle at the time, but had run some input shaping movements along with a G29 using the SZP. I had helped with pinpointing the source of this issue in the past, and this is the first Hardfault reset I've encountered since installing the 3.5.3-dbg firmware from dc42 and now 3.5.4.
M122
m122 === Diagnostics === RepRapFirmware for Duet 3 Mini 5+ version 3.5.4 (2024-11-24 10:44:24) running on Duet 3 Mini5plus WiFi (standalone mode) Board ID: NTK2Z-J196U-D65J0-40KMN-1V03Z-ZJMGF Used output buffers: 12 of 40 (30 max) === RTOS === Static ram: 103496 Dynamic ram: 124540 of which 12 recycled Never used RAM 10848, free system stack 200 words Tasks: NETWORK(2,nWait 7,9.4%,219) LASER(5,nWait 7,0.0%,269) HEAT(3,nWait 6,0.0%,349) Move(4,nWait 6,0.0%,355) CanReceiv(6,nWait 1,0.1%,798) CanSender(5,nWait 7,0.0%,336) CanClock(7,delaying,0.0%,353) TMC(4,nWait 6,1.5%,101) MAIN(1,running,86.7%,665) IDLE(0,ready,1.5%,29) AIN(4,delaying,0.8%,264), total 100.0% Owned mutexes: === Platform === Last reset 00:00:20 ago, cause: software Last software reset at 2024-12-27 15:00, reason: HardFault bfarValid precise, Platform spinning, available RAM 9828, slot 0 Software reset code 0x4060 HFSR 0x40000000 CFSR 0x00008200 ICSR 0x00000803 BFAR 0x0d392e38 SP 0x20011f80 Task NETW Freestk 448 ok Stack: 0d392e30 20033b0f 0000000a 00000001 20033b0f 0009e8e9 000a1478 61010000 2002c438 00000001 20012000 00000113 0009e8e9 2002c438 0002e74f 0d392e30 31514201 20012050 a5a76a17 00000000 00000113 2002c658 20031178 2002c670 2001eb00 a5a5a5a5 000305d9 Error status: 0x00 Aux0 errors 0,0,0 MCU revision 3, ADC conversions started 15656, completed 15654, timed out 0, errs 0 MCU temperature: min 37.0, current 37.2, max 38.6 Supply voltage: min 24.3, current 24.4, max 24.4, under voltage events: 0, over voltage events: 0, power good: yes Heap OK, handles allocated/used 99/10, heap memory allocated/used/recyclable 2048/300/128, gc cycles 0 Events: 0 queued, 0 completed Driver 0: standstill, SG min 0, read errors 0, write errors 1, ifcnt 40, reads 1807, writes 13, timeouts 0, DMA errors 0, CC errors 0 Driver 1: standstill, SG min 2, read errors 0, write errors 1, ifcnt 42, reads 1807, writes 13, timeouts 0, DMA errors 0, CC errors 0 Driver 2: standstill, SG min 0, read errors 0, write errors 1, ifcnt 21, reads 1810, writes 10, timeouts 0, DMA errors 0, CC errors 0 Driver 3: standstill, SG min 2, read errors 0, write errors 1, ifcnt 43, reads 1807, writes 13, timeouts 0, DMA errors 0, CC errors 0 Driver 4: standstill, SG min 2, read errors 0, write errors 1, ifcnt 42, reads 1807, writes 13, timeouts 0, DMA errors 0, CC errors 0 Driver 5: standstill, SG min 0, read errors 0, write errors 1, ifcnt 40, reads 1807, writes 13, timeouts 0, DMA errors 0, CC errors 0 Driver 6: standstill, SG min 0, read errors 0, write errors 1, ifcnt 21, reads 1810, writes 10, timeouts 0, DMA errors 0, CC errors 0 Date/time: 2024-12-27 15:01:08 Cache data hit count 38321701 Slowest loop: 7.67ms; fastest: 0.16ms === Storage === Free file entries: 20 SD card 0 detected, interface speed: 22.5MBytes/sec SD card longest read time 2.5ms, write time 0.0ms, max retries 0 === Move === DMs created 83, segments created 0, maxWait 0ms, bed compensation in use: none, height map offset 0.000, max steps late 0, min interval 0, bad calcs 0, ebfmin 0.00, ebfmax 0.00 no step interrupt scheduled Moves shaped first try 0, on retry 0, too short 0, wrong shape 0, maybepossible 0 === DDARing 0 === Scheduled moves 0, completed 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1 === DDARing 1 === 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 Heater 1 is on, I-accum = 0.0 === GCodes === Movement locks held by null, 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 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 File2 is idle in state(s) 0 Queue2 is idle in state(s) 0 Q0 segments left 0, axes/extruders owned 0x0000803 Code queue 0 is empty Q1 segments left 0, axes/extruders owned 0x0000000 Code queue 1 is empty === CAN === Messages queued 190, received 621, lost 0, errs 0, boc 0 Longest wait 2ms for reply type 6031, peak Tx sync delay 6, free buffers 26 (min 25), ts 102/101/0 Tx timeouts 0,0,0,0,0,0 === Network === Slowest loop: 11.38ms; fastest: 0.00ms Responder states: MQTT(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0) HTTP sessions: 3 of 8 === WiFi === Interface state: active Module is connected to access point Failed messages: pending 0, notrdy 0, noresp 0 Firmware version 2.2.0 MAC address d8:bf:c0:14:e5:fc Module reset reason: Power up, Vcc 3.36, flash size 2097152, free heap 39544 WiFi IP address 192.168.2.8 Signal strength -44dBm, channel 1, mode 802.11n, reconnections 0 Clock register 00002002 Socket states: 0 0 0 0 0 0 0 0
config.g
;;;; sacrifical colons. delete or add semicolons to this line and save ;=== initialize variables ===; M98 P"0:/sys/init_pre.g" ;; set some variables that we need for configuration ;=== discard if necessary ===; ;=== configuration - initial networking setup ===; M586 P0 S1 ;; enable http, disable ftp, disable telnet, set printer name, wait 5s for expansion boards M586 P1 S0 M586 P2 S0 G4 S5 M550 P"legionXY" ;; in SBC mode, M550 goes in dsf-config.g, not config.g M552 S1 ;G4 S5 ;M122 P500 S0 ;=== configuration - PanelDue init ===; M575 P1 S1 B57600 ;=== configuration - printer ===; G90 ;; absolute coordinates, relative extruder moves M83 M669 K1 ;; Kinematics type: 1 = CoreXY ;=== configuration - drive ===; M569 P0.0 S0 D2 ;; Z-axis motors, 0.driver0,0.driver1,0.driver2 M569 P0.1 S0 D2 M569 P0.5 S0 D2 M569 P0.3 S1 D2 ;; Left and right motors (X- and Y- axis), 0.driver3,0.driver4 M569 P0.4 S1 D2 M569 P20.0 S0 D2 ;; Extruder.driver0 ;=== configuration - drive - axis mapping ===; M584 X0.3 Y0.4 Z0.1:0.0:0.5 E20.0 ;; map E-axis here as toolboard will be connected ;=== configuration - drive - microstepping ===; M350 X16 Y16 Z16 I1 ;=== configuration - drive - steps/mm, current, idle timeout ===; M92 X80 Y80 Z800 ;; set steps/mm, current (mA), idle timeout M84 S30 ;; set idle hold 30s ;=== configuration - drive - speed, acceeleration, jerk ===; M98 P"0:/sys/configMaxSpeed.g" ;; set all the max speeds below as these are adjusted during home moves so we only want to adjust in one spot ;=== configuration - axis - min/max ===; M208 X0 Y0 Z0 S1 M208 X310 Y300 Z300 S0 ;=== configuration - axis - endstops ===; M574 X1 S1 P"20.io2.in" ;; configure active high (S1) X endstop at X- (X1) on RRF36.io2.in (20.io.in) M574 Y2 S1 P"0.io2.in" ;; configure Y active high (S1) endstop at Y+ (Y2) on duet.io2.in (0.io2.in) M574 Z1 S2 ;; configure Z-probe (S2) endstop at low end (Z1) ;=== configuration - axis - z-probe ===; M558 P8 C"^20.io0.in" H5:1 F300:120 T9000 A20 B0 ;; klicky pcb probe installed on RRF36.io0.in (20.io0.in) ;=== configuration - axis - mesh compensation and bed dismensions ===; M557 X30:290 Y30:290 S15 ;; SZP-safe if !exists(global.bedCenterX) ;; calculate bed center, insert into object model global bedCenterX = floor(move.axes[0].max / 2) if !exists(global.bedCenterY) global bedCenterY = floor(move.axes[1].max / 2) ;=== configuration - axis - lead screw position ===; M671 X-4.5:150:304.5 Y-4.52:305:-4.52 S5 ;=== configuration - sensor - bed heater & thermistor ===; M308 S0 P"0.temp0" Y"thermistor" T100000 B3950 A"Bed" ;; create sensor S0 on duet.temp0 named "Bed" M950 H0 C"0.out0" T0 Q11 ;; create heater (H0) for bed M307 H0 B0 S1.00 ;; on bed H0 disable bang-bang mode and set PWM limit M140 H0 ;; map heated bed to heater 0 (H0) M143 H0 S120 ;; set heater H0 temperature limit to 120C ;=== !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ===; ;; run bed PID tune using code below ;;; ;;; H0 = heater 0, or bed ;;; ;;; S = temperature in C (90C) ;;; ; M303 H0 S90 ;;; ;;; replace M307 below with results from M303 ;;; M307 may have a Vnnn included with it ;;; if you're using mains (AC) bed heater on your bed, omit it ;=== !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ===; M307 H0 R0.475 K0.253:0.000 D1.98 E1.35 S1.00 B0 ;=== configuration - sensor - accelerometer ===; M955 P20.0 I10 ;; create accelerometer on RRF36 ;;; I = accelerometer orientation, expressed as 2-digit number. see ;;; https://www.dropbox.com/s/hu2w5mk57l4zqpg/Accelerometer%20Orientation.pdf ;;; for all possible permutations ;=== configuration - sensor - chamber monitoring ===; M308 S5 P"0.io4.out+0.io4.in" Y"dht22" A"Chamber" ;; DHT22 setup M308 S8 P"S5.1" Y"dht-humidity" A"Humidity[%]" M308 S11 Y"mcu-temp" A"MCU" ;; MCU temperature, with offset M912 P0 S-1.2 M950 F2 C"0.out3" Q250 ;; create fan 0 (F0) on pin 0.out2 M106 P2 C"mainboard cooling" S0 H1 T155 L255 ;; set fan 0 (P0) to thermostatic control (45C), full-speed (L255) named "mainboard cooling" ;=== configuration - LEDs, chamber & toolhead ===; M950 P0 C"0.out5" Q1000 ;; configure Dayspring LEDs P0 on duet.out5 (0.out5) ;=== configuration - overrides ===; ;M501 ;; config-override.g should remain empty ;=== configuration - gizmo1 ===; M98 P"0:/sys/gizmo0.g" ;; revo + vz-hextrudort M568 P0 R0 S0 A0 ;; turn tool0 heater off M140 S-273.1 ;; turn bed off T0 P0 ;; select T0, don't run any toolchange macros M39 ;; show SD card status in console ;=== configuration ===; ;=== configuration - housekeeping ===; M98 P"0:/sys/init_post.g" ;; set the last few variables we need that rely on loaded configuration M98 P"0:/sys/configBuildPlate.g" ;; see setBuildPlate.g for Z probe trigger value, offset, trigger height ;=== discard if necessary ===;
init_pre.g
if !exists(global.runDaemon) global runDaemon = false if !exists(global.bedPreheatTemp) global bedPreheatTemp = 60 if !exists(global.cancelled) ; global variable for exiting out of loops global cancelled = false if !exists(global.filamentDistance) global filamentDistance = 0 if !exists(global.filamentFeedSpeed) global filamentFeedSpeed = 1800 if !exists(global.filamentRetractSpeed) global filamentRetractSpeed = 3600 if !exists(global.filamentDistance) global filamentDistance = 0 ; global for use to allow filament to feed for set distance after sensor trips else set global.filamentDistance = 0
configMaxSpeed.g
;=== configuration - drive - current and idle factor ===; M906 X1400 Y1400 Z1400 I30 ;; set motor currents and motor idle factor in per cent, December 2023 M913 X100 Y100 Z100 ;; ensure motors are at 100% current after homing ;=== configuration - drive - jerk ===; M205 X9.166 Y9.166 Z4.166 P1 ;; set maximum instantaneous speed changes (mm/min) and jerk policy M566 X550.0 Y550.0 Z250 P1 ;; set maximum instantaneous speed changes (mm/min) and jerk policy ;;M205 doesn't set jerk policy so we need M566 ;=== configuration - drive - speed ===; M203 X18000.00 Y18000.00 Z800.00 ;; set maximum speeds (mm/min) ;=== configuration - drive - acceleration ===; M201 X10000.00 Y10000.00 Z350.00 ;; set accelerations (mm/s^2) M204 P6000 T8000 ;; Set printing and travel acceleration (mm/s^2)
init_post.g
;;;;===== global variables for preheating, review, extract, and extrapolate for filament load/preheat macros);;;; ; extrusion if !exists(global.loadedFilament) || global.loadedFilament=null; global variable to hold filament name global loadedFilament="No_Filament" ; create a filament variable G4 P10 if move.extruders[state.currentTool].filament="" echo "No filament loaded. Cold extrude & retract set to defaults" M302 S190 R110 ; Allow extrusion starting from 190°C and retractions already from 110°C (defaults) set global.loadedFilament="No_Filament" else set global.loadedFilament=move.extruders[state.currentTool].filament ; set the variable to the currently loaded filament echo "Loading config for " ^ global.loadedFilament ^ " filament" M703 ; if a filament is loaded, set all the heats and speeds for it by loading config.g G4 P10
configBuildPlate.g
;=== configuration - bed - z-probe offset ===; G31 K0 P500 X-23.34 Y-20.49 Z5.4500 ;; klickyPCB with plunger switch on e3d revo, 0.6N G31 K1 X0.0 Y17.00 Z3.20 ;; beacon duct 1
gizmo0.g
;; gizmoN.g is the comprehensive definition of a tool (extruder, hotend, heater, thermisistor, filament monitoring, input shaping, tool and part cooling fans) ;; includes hotend (thermistor, heater), fan (tool, part), extruder (axis, microstepping), tool assignment and offset ;=== gizmo1 - fan ===; M950 F1 C"!0.out4+0.out4.tach" ;; create fan F1 named "4028" with duet.out4+duet.out4.tach (0.out4+0.out4.tach) M106 P1 C"4028" S0 H-1 ;=== gizmo1 - hotend thermistor ===; M308 S1 P"20.temp0" Y"thermistor" T100000 B4725 C7.060000e-8 A"heatercore" ;; configure sensor 1 (S1) on pin RRF36.temp0 (20.temp0) as thermistor M950 H1 C"20.out0" T1 ;; create heater output (H1) on RRF36.out0 (20.out0) and map to sensor 1 (T1) M307 H1 B0 S1.00 ;; set PWM limit (S1.00) M563 P0 S"e3drevo" D0 H1 F1 ;; define tool0 (T0) ;; assign fan F1, extruder drive D0 (E0) and heater H1 to tool T0 named "revo" G10 P0 X0 Y0 Z0 ;; set axis offsets, max temperature, initial temperature M143 H1 S290 G10 P0 R0 S0 ;=== !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ===; ;; run hotend PID tune!! using code below ;;; T0 = PID tune tool0 ;;; S210 = temperature in C (210C) ;;; F0.45 = Fan PWM value; 0.45 = 45% ;;; ; M303 T0 S210 F0.45 ;;; replace M307 below with results from M303 ;=== !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ===; M307 H1 R3.611 K0.702:0.541 D1.95 E1.35 S1.00 B0 V23.5 ;; this is my M307, find your own ;=== gizmo1 - fan - hotend ===; M950 F0 C"20.out2" Q250 ;; create fan 0 (F0) on pin RRF.out2 (20.out2) M106 P0 C"tool" S0 H1 T45 L255 ;; set fan 0 (P0) to thermostatic control (45C), full-speed (L255) named "tool" ;=== gizmo1 - extruder ===; ;; VZ-Hextrudort Low with LDO motor M906 E1400 ;; set extruder motor current M350 E16 I1 ;; set microstepping to 16 with interpolation M92 E718.62 ;; 10T LDO motor M203 E7200 ;; set max speed, jerk, acceleration M205 E5.0 M201 E3000 T0 P0 ;; select T0, don't run toolchange macro M703 ;; load filament specific gcode ;; I keep filament-specific PID tuning, retraction, and pressure advance ;; settings here. ;=== configuration - scanning z-probe ===; M558 K1 P11 C"20.i2c.ldc1612" F18000 T36000 M308 A"SZP" S4 Y"thermistor" P"20.temp1" T100000 B4092; thermistor on PCB/coil M558.2 K1 S16 R217324 ;=== gizmo1 - options ===; M955 P20.0 I12 ;; accelerometer on RRF36 M950 E0 C"20.rgbled" T2 U2 Q3000000 ;; configure toolhead LED E0 on FLY36.rgbled (20.rgbled)
Let me know if there's any additional information I can provide.
~oM
-
RE: Random Hard Fault resets on Duet 3 Mini WiFi
Three more messages overnight and this morning. They occurred after the printer was cooling down. Looks like another two potential crashes caught and averted. Still no resets to speak of.
*** Memory difference at line 2228 offset 4: original 392e303d copy 00000168, original changed, copy ok, fix=yes
*** Memory difference at line 2228 offset 52: original 20036658 copy 0d0a0d73, original ok, copy changed, fix=no
*** Memory difference at line 2228 offset 4: original 392e303d copy 00000168, original changed, copy ok, fix=yes
-
RE: Random Hard Fault resets on Duet 3 Mini WiFi
Started a long print last night and woke up to two messages in the console:
*** Memory difference at line 2228 offset 4: original 392e303d copy 00000168, original changed, copy ok, fix=yes
*** Memory difference at line 2228 offset 4: original 392e303d copy 00000168, original changed, copy ok, fix=yes
(the same message occurs twice; potential crash caught?) Printer has been stable otherwise.
-
RE: Random Hard Fault resets on Duet 3 Mini WiFi
Two more memory difference messages logged overnight. Printer was idle but has been printing nicely. Still no resets to speak of.
*** Memory difference at line 2228 offset 60: original 2001882c copy 0a0d392e, original ok, copy changed, fix=no
*** Memory difference at line 2228 offset 56: original 2002c5d8 copy 0a0d656e, original ok, copy changed, fix=no
-
RE: Random Hard Fault resets on Duet 3 Mini WiFi
Another memory difference message this afternoon. No resets to speak of, either.
*** Memory difference at line 2228 offset 12: original 0a0d392e copy 20032128, original changed, copy ok, fix=yes
and another
*** Memory difference at line 2228 offset 52: original 20036658 copy 0d0a0d6d, original ok, copy changed, fix=no
edit #3 - busy day...
*** Memory difference at line 2228 offset 60: original 2001882c copy 0a0d392e, original ok, copy changed, fix=no
-
RE: Random Hard Fault resets on Duet 3 Mini WiFi
@Exerqtor With both debug builds I logged a memory difference message within a couple of hours. The first debug build was under an hour, the second took maybe 1-2 hours to show up.
-
RE: Random Hard Fault resets on Duet 3 Mini WiFi
@dc42 Logged a memory difference message with the new build. Printer was idle. No reset as of yet.
*** Memory difference at line 2228 offset 12: original 0d0a0d39 copy 20032958, original changed, copy ok, fix=yes
Logged another memory difference message. Still no reset.
*** Memory difference at line 2228 offset 60: original 2001882c copy 0d0a0d39, original ok, copy changed, fix=no
-
RE: Random Hard Fault resets on Duet 3 Mini WiFi
Had another reset this morning. I didn't record any additional memory difference messages. The printer was sitting idle, cooling down after completing a print about 35-40 minutes prior.
M122
m122 === Diagnostics === RepRapFirmware for Duet 3 Mini 5+ version 3.5.3+1dbg (2024-10-14 09:45:56) running on Duet 3 Mini5plus WiFi (standalone mode) Board ID: NTK2Z-J196U-D65J0-40KMN-1V03Z-ZJMGF Used output buffers: 3 of 40 (28 max) === RTOS === Static ram: 103368 Dynamic ram: 124564 of which 12 recycled Never used RAM 10952, free system stack 156 words Tasks: NETWORK(2,nWait 7,15.5%,240) LASER(5,nWait 7,0.0%,269) HEAT(3,nWait 6,0.0%,325) Move(4,nWait 6,0.0%,341) CanReceiv(6,nWait 1,0.1%,773) CanSender(5,nWait 7,0.0%,336) CanClock(7,delaying,0.0%,348) TMC(4,delaying,1.5%,101) MAIN(1,running,82.1%,665) IDLE(0,ready,0.0%,29) AIN(4,delaying,0.8%,259), total 100.0% Owned mutexes: === Platform === Last reset 03:15:48 ago, cause: software Last software reset at 2024-10-20 05:47, reason: HardFault bfarValid precise, Expansion spinning, available RAM 7204, slot 0 Software reset code 0x4072 HFSR 0x40000000 CFSR 0x00008200 ICSR 0x00446803 BFAR 0x00000004 SP 0x20012008 Task NETW Freestk 482 ok Stack: 00000167 00000002 200014e4 00000166 20033af3 000a102f 0003041a 810f0000 00030411 00000000 00000000 00000000 20032964 00000800 20036670 2002c5d8 2001882c 2002c42e 2001882c 2001ea80 000305ab 00000000 00000000 00000000 200120b8 00000014 b5ddddb2 Error status: 0x00 Aux0 errors 0,0,0 MCU revision 3, ADC conversions started 8811290, completed 8811289, timed out 0, errs 0 MCU temperature: min 33.0, current 33.3, max 35.4 Supply voltage: min 24.3, current 24.4, max 24.5, under voltage events: 0, over voltage events: 0, power good: yes Heap OK, handles allocated/used 99/10, heap memory allocated/used/recyclable 2048/304/132, gc cycles 0 Events: 0 queued, 0 completed Driver 0: standstill, SG min 0, read errors 0, write errors 1, ifcnt 115, reads 19406, writes 13, timeouts 0, DMA errors 0, CC errors 0 Driver 1: standstill, SG min 2, read errors 0, write errors 1, ifcnt 113, reads 19406, writes 13, timeouts 0, DMA errors 0, CC errors 0 Driver 2: standstill, SG min 0, read errors 0, write errors 1, ifcnt 65, reads 19409, writes 10, timeouts 0, DMA errors 0, CC errors 0 Driver 3: standstill, SG min 2, read errors 0, write errors 1, ifcnt 120, reads 19406, writes 13, timeouts 0, DMA errors 0, CC errors 0 Driver 4: standstill, SG min 0, read errors 0, write errors 1, ifcnt 119, reads 19406, writes 13, timeouts 0, DMA errors 0, CC errors 0 Driver 5: standstill, SG min 2, read errors 0, write errors 1, ifcnt 113, reads 19406, writes 13, timeouts 0, DMA errors 0, CC errors 0 Driver 6: standstill, SG min 0, read errors 0, write errors 1, ifcnt 65, reads 19409, writes 10, timeouts 0, DMA errors 0, CC errors 0 Date/time: 2024-10-20 09:02:56 Cache data hit count 4294967295 Slowest loop: 9.39ms; fastest: 0.16ms === Storage === Free file entries: 20 SD card 0 detected, interface speed: 22.5MBytes/sec SD card longest read time 4.8ms, write time 0.0ms, max retries 0 === Move === DMs created 83, segments created 0, maxWait 0ms, bed compensation in use: none, height map offset 0.000, max steps late 0, min interval 0, bad calcs 0, ebfmin 0.00, ebfmax 0.00 no step interrupt scheduled Moves shaped first try 0, on retry 0, too short 0, wrong shape 0, maybepossible 0 === DDARing 0 === Scheduled moves 0, completed 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1 === DDARing 1 === 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 Heater 1 is on, I-accum = 0.0 === GCodes === Movement locks held by null, 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 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 File2 is idle in state(s) 0 Queue2 is idle in state(s) 0 Q0 segments left 0, axes/extruders owned 0x0000803 Code queue 0 is empty Q1 segments left 0, axes/extruders owned 0x0000000 Code queue 1 is empty === CAN === Messages queued 105742, received 334856, lost 0, errs 0, boc 0 Longest wait 2ms for reply type 6060, peak Tx sync delay 284, free buffers 26 (min 25), ts 58741/58740/0 Tx timeouts 0,0,0,0,0,0 === Network === Slowest loop: 13.05ms; fastest: 0.00ms Responder states: MQTT(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0) HTTP sessions: 1 of 8 === WiFi === Interface state: active Module is connected to access point Failed messages: pending 0, notrdy 0, noresp 0 Firmware version 2.1.0 MAC address d8:bf:c0:14:e5:fc Module reset reason: Power up, Vcc 3.36, flash size 2097152, free heap 42764 WiFi IP address 192.168.2.8 Signal strength -51dBm, channel 1, mode 802.11n, reconnections 0 Clock register 00002001 Socket states: 0 0 0 0 0 0 0 0
-
RE: Random Hard Fault resets on Duet 3 Mini WiFi
@dc42 Logged another message. Printer was idle at the time, and this was the first memory difference message since my last post. There haven't been any resets since my last post, either.
*** Memory difference at offset 20: was 2001ea80 now 00000000
-
RE: Random Hard Fault resets on Duet 3 Mini WiFi
@dc42 Build installed and running.
and I've logged a message in the console already:
*** Memory difference at offset 24: was a5a5a5a5 now 00000000
That was the final message in the console before the reset. The printer was idle. DWC was open in Chrome.
No reset to report.
M122=== Diagnostics === RepRapFirmware for Duet 3 Mini 5+ version 3.5.3+1dbg (2024-10-14 09:45:56) running on Duet 3 Mini5plus WiFi (standalone mode) Board ID: NTK2Z-J196U-D65J0-40KMN-1V03Z-ZJMGF Used output buffers: 3 of 40 (26 max) === RTOS === Static ram: 103368 Dynamic ram: 124576 of which 0 recycled Never used RAM 10952, free system stack 156 words Tasks: NETWORK(2,nWait 7,8.3%,228) LASER(5,nWait 7,0.0%,269) HEAT(3,nWait 6,0.0%,361) Move(4,nWait 6,0.0%,355) CanReceiv(6,nWait 1,0.1%,798) CanSender(5,nWait 7,0.0%,336) CanClock(7,delaying,0.0%,350) TMC(4,nWait 6,1.5%,101) MAIN(1,running,87.7%,665) IDLE(0,ready,1.6%,29) AIN(4,delaying,0.8%,259), total 100.0% Owned mutexes: === Platform === Last reset 00:00:18 ago, cause: software Last software reset at 2024-10-17 18:07, reason: HardFault bfarValid precise, Gcodes spinning, available RAM 7892, slot 0 Software reset code 0x4063 HFSR 0x40000000 CFSR 0x00008200 ICSR 0x00000803 BFAR 0x00000004 SP 0x20012008 Task NETW Freestk 482 ok Stack: 00000165 00000002 200014e4 00000164 20033af1 000a102f 0003041a 810f0000 00030411 00000000 00000000 00000000 2003111c 00000800 20036670 2002c5d8 2001882c 2002c42e 2001882c 2001ea80 000305ab 00000000 00000000 00000000 200120b8 00000014 b5ddddb2 Error status: 0x00 Aux0 errors 0,0,0 MCU revision 3, ADC conversions started 14510, completed 14510, timed out 0, errs 0 MCU temperature: min 33.7, current 33.7, max 35.1 Supply voltage: min 24.3, current 24.4, max 24.5, under voltage events: 0, over voltage events: 0, power good: yes Heap OK, handles allocated/used 99/10, heap memory allocated/used/recyclable 2048/304/132, gc cycles 0 Events: 0 queued, 0 completed Driver 0: standstill, SG min 0, read errors 0, write errors 1, ifcnt 47, reads 1693, writes 13, timeouts 0, DMA errors 0, CC errors 0 Driver 1: standstill, SG min 0, read errors 0, write errors 1, ifcnt 47, reads 1693, writes 13, timeouts 0, DMA errors 0, CC errors 0 Driver 2: standstill, SG min 0, read errors 0, write errors 1, ifcnt 32, reads 1696, writes 10, timeouts 0, DMA errors 0, CC errors 0 Driver 3: standstill, SG min 0, read errors 0, write errors 1, ifcnt 51, reads 1692, writes 13, timeouts 0, DMA errors 0, CC errors 0 Driver 4: standstill, SG min 0, read errors 0, write errors 1, ifcnt 51, reads 1693, writes 13, timeouts 0, DMA errors 0, CC errors 0 Driver 5: standstill, SG min 0, read errors 0, write errors 1, ifcnt 47, reads 1693, writes 13, timeouts 0, DMA errors 0, CC errors 0 Driver 6: standstill, SG min 0, read errors 0, write errors 1, ifcnt 32, reads 1696, writes 10, timeouts 0, DMA errors 0, CC errors 0 Date/time: 2024-10-17 18:07:41 Cache data hit count 35094639 Slowest loop: 5.03ms; fastest: 0.16ms === Storage === Free file entries: 20 SD card 0 detected, interface speed: 22.5MBytes/sec SD card longest read time 0.5ms, write time 0.0ms, max retries 0 === Move === DMs created 83, segments created 0, maxWait 0ms, bed compensation in use: none, height map offset 0.000, max steps late 0, min interval 0, bad calcs 0, ebfmin 0.00, ebfmax 0.00 no step interrupt scheduled Moves shaped first try 0, on retry 0, too short 0, wrong shape 0, maybepossible 0 === DDARing 0 === Scheduled moves 0, completed 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1 === DDARing 1 === 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 Heater 1 is on, I-accum = 0.0 === GCodes === Movement locks held by null, 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 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 File2 is idle in state(s) 0 Queue2 is idle in state(s) 0 Q0 segments left 0, axes/extruders owned 0x0000803 Code queue 0 is empty Q1 segments left 0, axes/extruders owned 0x0000000 Code queue 1 is empty === CAN === Messages queued 181, received 573, lost 0, errs 0, boc 0 Longest wait 2ms for reply type 6060, peak Tx sync delay 90, free buffers 26 (min 25), ts 95/94/0 Tx timeouts 0,0,0,0,0,0 === Network === Slowest loop: 4.31ms; fastest: 0.00ms Responder states: MQTT(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0) HTTP sessions: 1 of 8 === WiFi === Interface state: active Module is connected to access point Failed messages: pending 0, notrdy 0, noresp 0 Firmware version 2.1.0 MAC address d8:bf:c0:14:e5:fc Module reset reason: Power up, Vcc 3.36, flash size 2097152, free heap 42932 WiFi IP address 192.168.2.8 Signal strength -47dBm, channel 1, mode 802.11n, reconnections 0 Clock register 00002001 Socket states: 0 0 0 0 0 0 0 0
And a second reset about an hour later.
M122
=== Diagnostics === RepRapFirmware for Duet 3 Mini 5+ version 3.5.3+1dbg (2024-10-14 09:45:56) running on Duet 3 Mini5plus WiFi (standalone mode) Board ID: NTK2Z-J196U-D65J0-40KMN-1V03Z-ZJMGF Used output buffers: 3 of 40 (28 max) === RTOS === Static ram: 103368 Dynamic ram: 124564 of which 12 recycled Never used RAM 10952, free system stack 156 words Tasks: NETWORK(2,nWait 7,15.5%,241) LASER(5,nWait 7,0.0%,269) HEAT(3,nWait 6,0.0%,335) Move(4,nWait 6,0.0%,355) CanReceiv(6,nWait 1,0.1%,773) CanSender(5,nWait 7,0.0%,336) CanClock(7,delaying,0.0%,348) TMC(4,nWait 6,1.5%,101) MAIN(1,running,82.1%,665) IDLE(0,ready,0.0%,29) AIN(4,delaying,0.8%,259), total 100.0% Owned mutexes: WiFi(NETWORK) === Platform === Last reset 01:14:36 ago, cause: software Last software reset at 2024-10-17 19:14, reason: HardFault bfarValid precise, none spinning, available RAM 10952, slot 1 Software reset code 0x0073 HFSR 0x40000000 CFSR 0x00008200 ICSR 0x00000803 BFAR 0x0000001c SP 0x20012008 Task NETW Freestk 482 ok Stack: 2002c5f0 200328a0 200014e4 00000000 ffffffff 00030425 00030338 610f0000 00030411 00000000 00000000 00000000 200328ac 00000800 200365c0 2002c5d8 2001882c 2002c42e 2001882c 2001ea80 000305ab 00000000 00000000 00000000 200120b8 00000014 b5ddddb2 Error status: 0x00 Aux0 errors 0,0,0 MCU revision 3, ADC conversions started 3357571, completed 3357570, timed out 0, errs 0 MCU temperature: min 30.2, current 30.7, max 32.1 Supply voltage: min 24.3, current 24.3, max 24.5, under voltage events: 0, over voltage events: 0, power good: yes Heap OK, handles allocated/used 99/10, heap memory allocated/used/recyclable 2048/304/132, gc cycles 0 Events: 0 queued, 0 completed Driver 0: standstill, SG min 0, read errors 0, write errors 1, ifcnt 61, reads 13726, writes 13, timeouts 0, DMA errors 0, CC errors 0 Driver 1: standstill, SG min 0, read errors 0, write errors 1, ifcnt 61, reads 13726, writes 13, timeouts 0, DMA errors 0, CC errors 0 Driver 2: standstill, SG min 0, read errors 0, write errors 1, ifcnt 43, reads 13729, writes 10, timeouts 0, DMA errors 0, CC errors 0 Driver 3: standstill, SG min 0, read errors 0, write errors 1, ifcnt 65, reads 13726, writes 13, timeouts 0, DMA errors 0, CC errors 0 Driver 4: standstill, SG min 0, read errors 0, write errors 1, ifcnt 65, reads 13726, writes 13, timeouts 0, DMA errors 0, CC errors 0 Driver 5: standstill, SG min 0, read errors 0, write errors 1, ifcnt 61, reads 13726, writes 13, timeouts 0, DMA errors 0, CC errors 0 Driver 6: standstill, SG min 0, read errors 0, write errors 1, ifcnt 43, reads 13729, writes 10, timeouts 0, DMA errors 0, CC errors 0 Date/time: 2024-10-17 20:29:25 Cache data hit count 4294967295 Slowest loop: 9.45ms; fastest: 0.16ms === Storage === Free file entries: 20 SD card 0 detected, interface speed: 22.5MBytes/sec SD card longest read time 4.7ms, write time 0.0ms, max retries 0 === Move === DMs created 83, segments created 0, maxWait 0ms, bed compensation in use: none, height map offset 0.000, max steps late 0, min interval 0, bad calcs 0, ebfmin 0.00, ebfmax 0.00 no step interrupt scheduled Moves shaped first try 0, on retry 0, too short 0, wrong shape 0, maybepossible 0 === DDARing 0 === Scheduled moves 0, completed 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1 === DDARing 1 === 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 Heater 1 is on, I-accum = 0.0 === GCodes === Movement locks held by null, 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 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 File2 is idle in state(s) 0 Queue2 is idle in state(s) 0 Q0 segments left 0, axes/extruders owned 0x0000803 Code queue 0 is empty Q1 segments left 0, axes/extruders owned 0x0000000 Code queue 1 is empty === CAN === Messages queued 40299, received 127619, lost 0, errs 0, boc 0 Longest wait 2ms for reply type 6031, peak Tx sync delay 282, free buffers 26 (min 25), ts 22384/22383/0 Tx timeouts 0,0,0,0,0,0 === Network === Slowest loop: 7.94ms; fastest: 0.00ms Responder states: MQTT(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0) HTTP sessions: 1 of 8 === WiFi === Interface state: active Module is connected to access point Failed messages: pending 0, notrdy 0, noresp 0 Firmware version 2.1.0 MAC address d8:bf:c0:14:e5:fc Module reset reason: Power up, Vcc 3.36, flash size 2097152, free heap 42772 WiFi IP address 192.168.2.8 Signal strength -48dBm, channel 1, mode 802.11n, reconnections 0 Clock register 00002001 Socket states: 0 0 0 0 0 0 0 0
-
RE: Random Hard Fault resets on Duet 3 Mini WiFi
Here's my output:
M122
9/29/2024, 10:53:53 AM: m122: === Diagnostics === RepRapFirmware for Duet 3 Mini 5+ version 3.5.3 (2024-09-18 11:25:48) running on Duet 3 Mini5plus WiFi (standalone mode) Board ID: NTK2Z-J196U-D65J0-40KMN-1V03Z-ZJMGF Used output buffers: 14 of 40 (34 max) === RTOS === Static ram: 103368 Dynamic ram: 124668 of which 12 recycled Never used RAM 10848, free system stack 192 words Tasks: NETWORK(2,nWait 7,15.6%,232) LASER(5,nWait 7,0.0%,269) HEAT(3,nWait 6,0.0%,325) Move(4,nWait 6,0.0%,341) CanReceiv(6,nWait 1,0.1%,773) CanSender(5,nWait 7,0.0%,336) CanClock(7,delaying,0.0%,348) TMC(4,nWait 6,1.5%,101) MAIN(1,running,82.0%,665) IDLE(0,ready,0.0%,29) AIN(4,delaying,0.8%,255), total 100.0% Owned mutexes: WiFi(NETWORK) === Platform === Last reset 00:50:15 ago, cause: software Last software reset at 2024-09-29 10:03, reason: HardFault bfarValid precise, Gcodes spinning, available RAM 9244, slot 0 Software reset code 0x4063 HFSR 0x40000000 CFSR 0x00008200 ICSR 0x00000803 BFAR 0x00000004 SP 0x20012008 Task NETW Freestk 482 ok Stack: 0000016e 00000002 200014e4 0000016d 20033b4a 000a0f9f 00030392 810f0000 00030389 00000000 00000000 00000000 2003219c 00000800 200366c0 2002c640 2001882c 2002c496 2001882c 2001ea80 00030523 00000000 00000000 00000000 200120b8 00000014 b5dde89b Error status: 0x00 Aux0 errors 0,0,0 MCU revision 3, ADC conversions started 2262005, completed 2262004, timed out 0, errs 0 MCU temperature: min 32.9, current 33.3, max 36.9 Supply voltage: min 24.3, current 24.3, max 24.5, under voltage events: 0, over voltage events: 0, power good: yes Heap OK, handles allocated/used 99/10, heap memory allocated/used/recyclable 2048/300/128, gc cycles 0 Events: 0 queued, 0 completed Driver 0: standstill, SG min 2, read errors 0, write errors 1, ifcnt 214, reads 11963, writes 13, timeouts 0, DMA errors 0, CC errors 0 Driver 1: standstill, SG min 0, read errors 0, write errors 1, ifcnt 217, reads 11962, writes 13, timeouts 0, DMA errors 0, CC errors 0 Driver 2: standstill, SG min 0, read errors 0, write errors 1, ifcnt 142, reads 11965, writes 10, timeouts 0, DMA errors 0, CC errors 0 Driver 3: standstill, SG min 0, read errors 0, write errors 1, ifcnt 233, reads 11962, writes 13, timeouts 0, DMA errors 0, CC errors 0 Driver 4: standstill, SG min 2, read errors 0, write errors 1, ifcnt 230, reads 11963, writes 13, timeouts 0, DMA errors 0, CC errors 0 Driver 5: standstill, SG min 2, read errors 0, write errors 1, ifcnt 215, reads 11962, writes 13, timeouts 0, DMA errors 0, CC errors 0 Driver 6: standstill, SG min 0, read errors 0, write errors 1, ifcnt 142, reads 11965, writes 10, timeouts 0, DMA errors 0, CC errors 0 Date/time: 2024-09-29 10:53:53 Cache data hit count 4294967295 Slowest loop: 11.68ms; fastest: 0.16ms === Storage === Free file entries: 20 SD card 0 detected, interface speed: 22.5MBytes/sec SD card longest read time 4.7ms, write time 0.0ms, max retries 0 === Move === DMs created 83, segments created 0, maxWait 0ms, bed compensation in use: none, height map offset 0.000, max steps late 0, min interval 0, bad calcs 0, ebfmin 0.00, ebfmax 0.00 no step interrupt scheduled Moves shaped first try 0, on retry 0, too short 0, wrong shape 0, maybepossible 0 === DDARing 0 === Scheduled moves 0, completed 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1 === DDARing 1 === 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 Heater 1 is on, I-accum = 0.0 === GCodes === Movement locks held by null, 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 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 File2 is idle in state(s) 0 Queue2 is idle in state(s) 0 Q0 segments left 0, axes/extruders owned 0x0000803 Code queue 0 is empty Q1 segments left 0, axes/extruders owned 0x0000000 Code queue 1 is empty === CAN === Messages queued 27148, received 84467, lost 0, errs 0, boc 0 Longest wait 2ms for reply type 6031, peak Tx sync delay 264, free buffers 26 (min 25), ts 15078/15077/0 Tx timeouts 0,0,0,0,0,0 === Network === Slowest loop: 12.78ms; fastest: 0.00ms Responder states: MQTT(0) HTTP(0) HTTP(0) HTTP(4) HTTP(0) FTP(0) Telnet(0) HTTP sessions: 3 of 8 === WiFi === Interface state: active Module is connected to access point Failed messages: pending 0, notrdy 0, noresp 0 9/29/2024, 10:53:54 AM: : Firmware version 2.1.0 MAC address d8:bf:c0:14:e5:fc Module reset reason: Power up, Vcc 3.36, flash size 2097152, free heap 36056 WiFi IP address 192.168.2.8 Signal strength -42dBm, channel 1, mode 802.11n, reconnections 0 Clock register 00002001 Socket states: 0 0 0 0 0 0 0 0
M122 P106
Platform 2001d138-2001e737 SbcInterface 2001e740-2001ea70 Network 2001ea80-2001eb67 GCodes 2001eb70-2001ff6f Move 20023ff8-20024d33 Heat 20025110-20025237 PrintMonitor 20025240-2002544f FansManager 20025458-200254d7 PortControl 200254e0-2002550f Display 20025518-20025533 ExpansionManager 20025540-200282f7
M122 P1007 A{0x2001ea80+8}:
2001ea88: 2002c420
M122 P1007 A{0x2002c420+136}:
2002c4a8: 20033940
config.g
;=== initialize variables ===; M98 P"0:/sys/init_pre.g" ;; set some variables that we need for configuration ;=== discard if necessary ===; ;=== configuration - initial networking setup ===; M586 P0 S1 ;; enable http, disable ftp, disable telnet, set printer name, wait 5s for expansion boards M586 P1 S0 M586 P2 S0 G4 S5 M550 P"legionXY" ;; in SBC mode, M550 goes in dsf-config.g, not config.g M552 S1 ;G4 S5 M122 P500 S0 ;=== configuration - PanelDue init ===; M575 P1 S1 B57600 ;=== configuration - printer ===; G90 ;; absolute coordinates, relative extruder moves M83 M669 K1 ;; Kinematics type: 1 = CoreXY ;=== configuration - drive ===; M569 P0.0 S0 D2 ;; Z-axis motors, 0.driver0,0.driver1,0.driver2 M569 P0.1 S0 D2 M569 P0.5 S0 D2 M569 P0.3 S1 D2 ;; Left and right motors (X- and Y- axis), 0.driver3,0.driver4 M569 P0.4 S1 D2 M569 P20.0 S1 D2 ;; Extruder, RRF36.driver0 ;=== configuration - drive - axis mapping ===; M584 X0.3 Y0.4 Z0.1:0.0:0.5 E20.0 ;; map E-axis here as toolboard will be connected ;=== configuration - drive - microstepping ===; M350 X16 Y16 Z16 I1 ;=== configuration - drive - steps/mm, current, idle timeout ===; M92 X80 Y80 Z800 ;; set steps/mm, current (mA), idle timeout M84 S30 ;; set idle hold 30s ;=== configuration - drive - speed, acceeleration, jerk ===; ;M98 P"0:/sys/setMaxSpeed.g" ;; set all the max speeds below as these are adjusted during home moves so we only want to adjust in one spot ;=== configuration - drive - current and idle factor ===; M906 X1400 Y1400 Z1400 I30 ;; set motor currents and motor idle factor in per cent, December 2023 M913 X100 Y100 Z100 ;; ensure motors are at 100% current after homing ;=== configuration - drive - jerk ===; M566 X550.0 Y550.0 Z250 P1 ;; set maximum instantaneous speed changes (mm/min) and jerk policy ;=== configuration - drive - speed ===; M203 X18000.00 Y18000.00 Z800.00 ;; set maximum speeds (mm/min) ;=== configuration - drive - acceleration ===; M201 X10000.00 Y10000.00 Z350.00 ;; set accelerations (mm/s^2) M204 P6000 T8000 ;; Set printing and travel acceleration (mm/s^2) ;=== configuration - axis - min/max ===; M208 X0 Y0 Z0 S1 M208 X310 Y300 Z300 S0 ;=== configuration - axis - endstops ===; M574 X1 S1 P"20.io2.in" ;; configure active high (S1) X endstop at X- (X1) on RRF36.io2.in (20.io.in) M574 Y2 S1 P"0.io2.in" ;; configure Y active high (S1) endstop at Y+ (Y2) on duet.io2.in (0.io2.in) M574 Z1 S2 ;; configure Z-probe (S2) endstop at low end (Z1) ;=== configuration - axis - z-probe ===; M558 P8 C"^20.io0.in" H5:1 F300:120 T9000 A20 B0 ;; klicky pcb probe installed on RRF36.io0.in (20.io0.in) ;=== configuration - axis - mesh compensation and bed dismensions ===; M557 X5:275 Y5:275 P20 ; set values as you would normally do in config.g.g if !exists(global.bedCenterX) ;; calculate bed center, insert into object model global bedCenterX = floor(move.axes[0].max / 2) if !exists(global.bedCenterY) global bedCenterY = floor(move.axes[1].max / 2) ;=== configuration - axis - lead screw position ===; M671 X-4.5:150:304.5 Y-4.52:305:-4.52 S5 ;=== configuration - sensor - bed heater & thermistor ===; M308 S0 P"0.temp0" Y"thermistor" T100000 B3950 A"Bed" ;; create sensor S0 on duet.temp0 named "Bed" M950 H0 C"0.out0" T0 Q11 ;; create heater (H0) for bed M307 H0 B0 S1.00 ;; on bed H0 disable bang-bang mode and set PWM limit M140 H0 ;; map heated bed to heater 0 (H0) M143 H0 S120 ;; set heater H0 temperature limit to 120C ;=== !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ===; ;; run bed PID tune using code below ;;; ;;; H0 = heater 0, or bed ;;; ;;; S = temperature in C (90C) ;;; ; M303 H0 S90 ;;; ;;; replace M307 below with results from M303 ;;; M307 may have a Vnnn included with it ;;; if you're using mains (AC) bed heater on your bed, omit it ;=== !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ===; ;M307 H0 R0.480 K0.256:0.000 D2.03 E1.35 S1.00 B0 ;; this is my M307, find your own M307 H0 R0.475 K0.253:0.000 D1.98 E1.35 S1.00 B0 ;=== configuration - sensor - accelerometer ===; M955 P20.0 I10 ;; create accelerometer on RRF36 ;;; I = accelerometer orientation, expressed as 2-digit number. see ;;; https://www.dropbox.com/s/hu2w5mk57l4zqpg/Accelerometer%20Orientation.pdf ;;; for all possible permutations ;=== configuration - sensor - chamber monitoring ===; M308 S5 P"0.io4.out+0.io4.in" Y"dht22" A"Chamber" ;; DHT22 setup M308 S8 P"S5.1" Y"dht-humidity" A"Humidity[%]" M308 S11 Y"mcu-temp" A"MCU" ;; MCU temperature, with offset M912 P0 S-1.2 M950 F2 C"0.out3" Q250 ;; create fan 0 (F0) on pin 0.out2 M106 P2 C"mainboard cooling" S0 H1 T155 L255 ;; set fan 0 (P0) to thermostatic control (45C), full-speed (L255) named "mainboard cooling" ;=== configuration - LEDs, chamber & toolhead ===; M950 P0 C"0.out5" Q1000 ;; configure Dayspring LEDs P0 on duet.out5 (0.out5) ;=== configuration - overrides ===; ;M501 ;; config-override.g should remain empty ;=== configuration - gizmo1 ===; ;=== gizmo1 - fan ===; M950 F1 C"!0.out4+0.out4.tach" ;; create fan F1 named "4028" with duet.out4+duet.out4.tach (0.out4+0.out4.tach) M106 P1 C"4028" S0 H-1 ;=== gizmo1 - hotend thermistor ===; M308 S1 P"20.temp0" Y"thermistor" T100000 B4725 C7.060000e-8 A"heatercore" ;; configure sensor 1 (S1) on pin RRF36.temp0 (20.temp0) as thermistor M950 H1 C"20.out0" T1 ;; create heater output (H1) on RRF36.out0 (20.out0) and map to sensor 1 (T1) M307 H1 B0 S1.00 ;; set PWM limit (S1.00) M563 P0 S"revo" D0 H1 F1 ;; define tool0 (T0) ;; assign fan F1, extruder drive D0 (E0) and heater H1 to tool T0 named "revo" G10 P0 X0 Y0 Z0 ;; set axis offsets, max temperature, initial temperature M143 H1 S290 G10 P0 R0 S0 ;=== !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ===; ;; run hotend PID tune!! using code below ;;; T0 = PID tune tool0 ;;; S210 = temperature in C (210C) ;;; F0.45 = Fan PWM value; 0.45 = 45% ;;; ; M303 T0 S210 F0.45 ;;; replace M307 below with results from M303 ;=== !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ===; M307 H1 R3.611 K0.702:0.541 D1.95 E1.35 S1.00 B0 V23.5 ;; this is my M307, find your own ;=== gizmo1 - fan - hotend ===; M950 F0 C"20.out2" Q250 ;; create fan 0 (F0) on pin RRF.out2 (20.out2) M106 P0 C"tool" S0 H1 T45 L255 ;; set fan 0 (P0) to thermostatic control (45C), full-speed (L255) named "tool" ;=== gizmo1 - extruder ===; ;; VZ-Hextrudort Low with LDO motor M906 E1400 ;; set extruder motor current M350 E16 I1 ;; set microstepping to 16 with interpolation M92 E891.09 M203 E7200 ;; set max speed, jerk, acceleration M205 E5.0 M201 E3000 T0 P0 ;; select T0, don't run toolchange macro M703 ;; load filament specific gcode ;; I keep filament-specific PID tuning, retraction, and pressure advance ;; settings here. ;=== configuration - scanning z-probe ===; M558 K1 P11 C"20.i2c.ldc1612" F18000 T36000 M308 A"SZP" S4 Y"thermistor" P"20.temp1" T100000 B4092; thermistor on PCB/coil M558.2 K1 S16 R217324 ;=== gizmo1 - options ===; M955 P20.0 I12 ;; accelerometer on RRF36 M950 E0 C"20.rgbled" T2 U2 Q3000000 ;; configure toolhead LED E0 on FLY36.rgbled (20.rgbled) M568 P0 R0 S0 A0 ;; turn tool0 heater off M140 S-273.1 ;; turn bed off T0 P0 ;; select T0, don't run any toolchange macros ;=== configuration ===; ;=== configuration - housekeeping ===; ;;;;===== global variables for preheating, review, extract, and extrapolate for filament load/preheat macros);;;; ; extrusion if !exists(global.loadedFilament) || global.loadedFilament=null; global variable to hold filament name global loadedFilament="No_Filament" ; create a filament variable G4 P10 if move.extruders[state.currentTool].filament="" echo "No filament loaded. Cold extrude & retract set to defaults" M302 S190 R110 ; Allow extrusion starting from 190°C and retractions already from 110°C (defaults) set global.loadedFilament="No_Filament" else set global.loadedFilament=move.extruders[state.currentTool].filament ; set the variable to the currently loaded filament echo "Loading config for " ^ global.loadedFilament ^ " filament" M703 ; if a filament is loaded, set all the heats and speeds for it by loading config.g G4 P10 ;=== configuration - bed - mesh compensation ===; ;M376 H3 ;; fade mesh compensation at 3mm ;=== configuration - bed - z-probe offset ===; ;;set in config.g, but change here // old offset: G31 K0 P500 X-27.8 Y-12.0 Z1.55 G31 K0 P500 X-23.34 Y-20.49 Z5.440 ;; klickyPCB with plunger switch G31 K1 X0.0 Y23.00 Z2.000 ;; SZP
init_pre.g (global variables for config.g)
if !exists(global.runDaemon) global runDaemon = false if !exists(global.bedPreheatTemp) global bedPreheatTemp = 60 if !exists(global.cancelled) ; global variable for exiting out of loops global cancelled = false if !exists(global.filamentDistance) global filamentDistance = 0 if !exists(global.filamentFeedSpeed) global filamentFeedSpeed = 1800 if !exists(global.filamentRetractSpeed) global filamentRetractSpeed = 3600 if !exists(global.filamentDistance) global filamentDistance = 0 ; global for use to allow filament to feed for set distance after sensor trips else set global.filamentDistance =
I believe that is everything. Let me know if there is any additional information I can provide.
-
RE: Duet 3 Mini 5+ standalone 3.5.2 - HardFault bfarValid precise
@gloomyandy Ah ok, that actually makes a lot of sense. I'll keep that in mind in the future.
-
RE: Duet 3 Mini 5+ standalone 3.5.2 - HardFault bfarValid precise
I wanted to add some behavior that I've noticed as I've encountered this issue several times since switching to standalone mode.
A reset just occurred, so here is a more recent M122 (hopefully more of these help!)
=== Diagnostics === RepRapFirmware for Duet 3 Mini 5+ version 3.5.2 (2024-06-11 17:14:16) running on Duet 3 Mini5plus WiFi (standalone mode) Board ID: NTK2Z-J196U-D65J0-40KMN-1V03Z-ZJMGF Used output buffers: 15 of 40 (25 max) === RTOS === Static ram: 103368 Dynamic ram: 124620 of which 0 recycled Never used RAM 10572, free system stack 198 words Tasks: NETWORK(2,nWait 7,8.5%,211) LASER(5,nWait 7,0.0%,269) HEAT(3,nWait 6,0.0%,335) Move(4,nWait 6,0.0%,355) CanReceiv(6,nWait 1,0.1%,798) CanSender(5,nWait 7,0.0%,336) CanClock(7,delaying,0.0%,350) TMC(4,nWait 6,1.5%,101) MAIN(1,running,87.7%,665) IDLE(0,ready,1.4%,29) AIN(4,delaying,0.9%,263), total 100.0% Owned mutexes: WiFi(NETWORK) === Platform === Last reset 00:00:21 ago, cause: software Last software reset at 2024-07-27 14:21, reason: HardFault bfarValid precise, Gcodes spinning, available RAM 6824, slot 1 Software reset code 0x4063 HFSR 0x40000000 CFSR 0x00008200 ICSR 0x00000803 BFAR 0x0000001c SP 0x20012008 Task NETW Freestk 482 ok Stack: 2002c658 20032190 200014e8 00000000 20033b45 0003015d 00030070 610f0000 00030149 00000000 00000000 00000000 2003219c 00000800 200366a8 2002c640 2001882c 2002c496 2001882c 2001ea80 000302e3 00000000 00000000 00000000 200120b8 00000014 b5ddbf73 Error status: 0x00 Aux0 errors 0,0,0 MCU revision 3, ADC conversions started 21420, completed 21420, timed out 0, errs 0 MCU temperature: min 34.6, current 34.8, max 36.0 Supply voltage: min 24.2, current 24.3, max 24.4, under voltage events: 0, over voltage events: 0, power good: yes Heap OK, handles allocated/used 99/10, heap memory allocated/used/recyclable 2048/300/128, gc cycles 0 Events: 0 queued, 0 completed Driver 0: standstill, SG min 0, read errors 0, write errors 1, ifcnt 65, reads 1901, writes 13, timeouts 0, DMA errors 0, CC errors 0 Driver 1: standstill, SG min 0, read errors 0, write errors 1, ifcnt 64, reads 1901, writes 13, timeouts 0, DMA errors 0, CC errors 0 Driver 2: standstill, SG min 0, read errors 0, write errors 1, ifcnt 21, reads 1903, writes 10, timeouts 0, DMA errors 0, CC errors 0 Driver 3: standstill, SG min 2, read errors 0, write errors 1, ifcnt 66, reads 1900, writes 13, timeouts 0, DMA errors 0, CC errors 0 Driver 4: standstill, SG min 0, read errors 0, write errors 1, ifcnt 64, reads 1901, writes 13, timeouts 0, DMA errors 0, CC errors 0 Driver 5: standstill, SG min 2, read errors 0, write errors 1, ifcnt 65, reads 1901, writes 13, timeouts 0, DMA errors 0, CC errors 0 Driver 6: standstill, SG min 0, read errors 0, write errors 1, ifcnt 21, reads 1903, writes 10, timeouts 0, DMA errors 0, CC errors 0 Date/time: 2024-07-27 14:22:18 Cache data hit count 40640421 Slowest loop: 7.25ms; fastest: 0.16ms === Storage === Free file entries: 20 SD card 0 detected, interface speed: 22.5MBytes/sec SD card longest read time 0.5ms, write time 0.0ms, max retries 0 === Move === DMs created 83, segments created 0, maxWait 0ms, bed compensation in use: none, height map offset 0.000, max steps late 0, min interval 0, bad calcs 0, ebfmin 0.00, ebfmax 0.00 no step interrupt scheduled Moves shaped first try 0, on retry 0, too short 0, wrong shape 0, maybepossible 0 === DDARing 0 === Scheduled moves 0, completed 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1 === DDARing 1 === 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 Heater 1 is on, I-accum = 0.0 === GCodes === Movement locks held by null, 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 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 File2 is idle in state(s) 0 Queue2 is idle in state(s) 0 Q0 segments left 0, axes/extruders owned 0x0000803 Code queue 0 is empty Q1 segments left 0, axes/extruders owned 0x0000000 Code queue 1 is empty === CAN === Messages queued 200, received 634, lost 0, errs 0, boc 0 Longest wait 2ms for reply type 6034, peak Tx sync delay 6, free buffers 26 (min 25), ts 107/106/0 Tx timeouts 0,0,0,0,0,0 === Network === Slowest loop: 10.82ms; fastest: 0.00ms Responder states: MQTT(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0) HTTP sessions: 2 of 8 === WiFi === Interface state: active Module is connected to access point Failed messages: pending 0, notrdy 0, noresp 0 Firmware version 2.1.0 MAC address d8:bf:c0:14:e5:fc Module reset reason: Power up, Vcc 3.36, flash size 2097152, free heap 42932 WiFi IP address 192.168.2.8 Signal strength -48dBm, channel 1, mode 802.11n, reconnections 0 Clock register 00002001 Socket states: 0 0 0 0 0 0 0 0
The peculiar thing I noticed that while the printer seems to be in working order (config.g loads without error [including toolboard configuration; this is important later], printer homes properly, and bed/tool temperatures look ok along with DHT22/SZP temperatures), the electronics section in the Machine-Specific tab looks like this:
and is missing two toolboard entries; a CannedERCF-SAMMYC21 and a Mellow Fly SHT36 Max V3.
The boards respond to M122.
M122 B19 (CannedERCF-SAMMYC21)
Diagnostics for board 19: Duet SAMMYC21 firmware version 3.5.2+001 (2024-06-12 12:43:35) Bootloader ID: SAMMY-C21 bootloader version 2.4 (2021-12-10) Never used RAM 1180, free system stack 91 words Tasks: Move(3,nWait 7,0.0%,92) HEAT(2,nWait 6,0.1%,126) CanAsync(5,nWait 4,0.0%,54) CanRecv(3,nWait 1,0.0%,72) CanClock(5,nWait 1,0.0%,60) TMC(2,delaying,2.5%,44) MAIN(1,running,62.6%,420) IDLE(0,ready,0.0%,40) AIN(2,nWait 2,34.7%,112), total 100.0% Owned mutexes: Last reset 36:45:40 ago, cause: power up Last software reset data not available Driver 0: pos 798616, 80.0 steps/mm, standstill, SG min 0, read errors 20, write errors 0, ifcnt 14, reads 36602, writes 14, timeouts 2, DMA errors 0, CC errors 0, failedOp 0x41, steps req 0 done 1402 Driver 1: pos 0, 566.3 steps/mm, standstill, SG min 0, read errors 21, write errors 0, ifcnt 12, reads 36605, writes 12, timeouts 0, DMA errors 0, CC errors 0, steps req 0 done 0 Moves scheduled 4, completed 4, in progress 0, hiccups 0, segs 6, step errors 0, maxLate 1 maxPrep 192, maxOverdue 0, maxInc 0, mcErrs 0, gcmErrs 0, ebfmin 0.00 max 0.00 Peak sync jitter -3/20, peak Rx sync delay 221, resyncs 0/1, no timer interrupt scheduled VIN voltage: min 24.2, current 24.2, max 24.2 MCU temperature: min 30.4C, current 32.2C, max 36.3C Last sensors broadcast 0x00000000 found 0 139 ticks ago, 0 ordering errs, loop time 0 CAN messages queued 1061425, send timeouts 0, received 1720327, lost 0, errs 0, boc 0, free buffers 18, min 18, error reg 0 dup 0, oos 0/0/0/0, bm 0, wbm 0, rxMotionDelay 306, adv 37121/37173 === Filament sensors === Interrupt 5726621 to 0us, poll 4 to 509us Driver 1: no data received
M122 B20 (SHT36MAX3)
Diagnostics for board 20: Duet SHT36MAX3 firmware version 3.5.2 (2024-06-13 00:58:17) Bootloader ID: All averaging filters OK Never used RAM 217004, free system stack 380 words Tasks: Move(3,nWait 7,0.6%,72) HEAT(2,nWait 6,0.2%,110) CanAsync(5,nWait 4,0.0%,56) CanRecv(3,nWait 1,0.4%,356) CanClock(5,nWait 1,0.0%,334) ACCEL(3,nWait 6,0.0%,52) TMC(2,nWait 6,2.2%,52) MAIN(1,running,79.3%,436) IDLE(0,ready,0.0%,26) USBD(2,blocked,0.0%,150) AIN(2,delaying,17.3%,202), total 100.0% Owned mutexes: Last reset 36:45:53 ago, cause: power up or brownout Last software reset data not available Driver 0: pos 0, 900.0 steps/mm, standstill, read errors 0, write errors 0, ifcnt 25, reads 62720, writes 25, timeouts 0, DMA errors 0, CC errors 0, steps req 0 done 90296677 Moves scheduled 8734781, completed 8734781, in progress 0, hiccups 1, segs 46, step errors 0, maxLate 0 maxPrep 210, maxOverdue 30481, maxInc 15031, mcErrs 0, gcmErrs 0, ebfmin 0.00 max 1.00 Peak sync jitter -28/28, peak Rx sync delay 603, resyncs 0/1, no timer interrupt scheduled MCU temperature: min 33.7C, current 34.6C, max 49.1C Last sensors broadcast 0x00000012 found 2 154 ticks ago, 0 ordering errs, loop time 0 CAN messages queued 5299546, send timeouts 0, received 9928012, lost 0, errs 0, boc 0, free buffers 38, min 37, error reg 0 dup 0, oos 28/0/0/14, bm 0, wbm 0, rxMotionDelay 849, adv 35533/74590 Accelerometer: LIS2DW, status: 00 Inductive sensor: raw value 56698385, frequency 4.22MHz, current setting 16, amplitude error I2C bus errors 0, naks 0, contentions 0, other errors 0
After the reset occurs, when I try to load my working configuration for my ERCFv2, I get the following error:
M98 P"0:/sys/ercf/config.g"
Error: Driver 19.0 does not exist
ercf/config.g
;=== configuration - ERCF - drive & axis mapping ===; M569 P19.0 S1 D2 ;; ERCF Selector M569 P19.1 S0 D2 ;; ERCF Drive M584 E20.0:19.1 V19.0 ;; gizmoN extruder and ERCF drive are bonded together, selector is V-axis ;=== configuration - ERCF - drive - steps/mm, current, idle timeout ===; M350 E{move.extruders[0].microstepping.value, 16} V16 I1 M906 E{move.extruders[0].current, 1400} V1600 I30 M92 E{move.extruders[0].stepsPerMm, 566.3} V80 ;=== configuration - ERCF - drive - speed, acceeleration, jerk ===; M201 E{move.extruders[0].acceleration, 3000} V3000 M203 E{move.extruders[0].speed, 7200} V6000 M205 E{move.extruders[0].jerk, 5.0} V5.0 ;=== configuration - ERCF - axis - endstops ===; M574 V1 S1 P"19.io3.in" ;=== configuration - ERCF - axis - min/max ===; M208 V0 S1 M208 V200 S0 ;=== configuration - ERCF - servo, blinky ===; M591 D1 P7 C"^19.io1.in" S1 A1 L1.000 ;; pulsed filament monitor on CannedERCF, Binky mod M950 S10 C"19.io0.out" ;; cannedERCF servo M950 S5 C"0.out6" ;; filament cutter, ;=== configuration - ERCF - tool definitions ===; M563 P0 D0:1 H1 F1 L0; define tool 0 G10 P0 R0 S0 M563 P0 S"ERCF_0" D0:1 H1 F1 L1 ;; define and name tool ;; assign orbiter/ERCF as extruder drive G10 P0 R0 S0 ;; set active & standby temperatures M563 P1 S"ERCF_1" D0:1 H1 F1 L1 ;; define and name tool ;; assign orbiter/ERCF as extruder drive G10 P1 R0 S0 ;; set active & standby temperatures M563 P2 S"ERCF_2" D0:1 H1 F1 L1 ;; define and name tool ;; assign orbiter/ERCF as extruder drive G10 P2 R0 S0 ;; set active & standby temperatures M563 P3 S"ERCF_3" D0:1 H1 F1 L1 ;; define and name tool ;; assign orbiter/ERCF as extruder drive G10 P3 R0 S0 ;; set active & standby temperatures M563 P4 S"ERCF_4" D0:1 H1 F1 L1 ;; define and name tool ;; assign orbiter/ERCF as extruder drive G10 P4 R0 S0 ;; set active & standby temperatures M563 P5 S"ERCF_5" D0:1 H1 F1 L1 ;; define and name tool ;; assign orbiter/ERCF as extruder drive G10 P5 R0 S0 ;; set active & standby temperatures M563 P6 S"ERCF_6" D0:1 H1 F1 L1 ;; define and name tool ;; assign orbiter/ERCF as extruder drive G10 P6 R0 S0 ;; set active & standby temperatures M563 P7 S"ERCF_7" D0:1 H1 F1 L1 ;; define and name tool ;; assign orbiter/ERCF as extruder drive G10 P7 R0 S0 ;; set active & standby temperatures ;=== housekeeping ===: T0 P0 ;; select Tool 0, don't run toolchange macros
And if I try to home the V-axis (ERCF Selector axis), the printer hangs in a "Busy" state", the selector axis doesn't move and I have to use the E-stop to reset the printer. After the printer comes back up again, the electronics section is properly populated
and my ERCF configuration executes without issue.
Let me know if I can provide any further information.
-
Duet 3 Mini 5+ standalone 3.5.2 - HardFault bfarValid precise
I saw a couple of older posts about resets occurring with
reason: HardFault imprec,
but on 3.5.1, and after encountering the issue myself I addedM122 P500 S0
for the more helpful M122 output.Printer is the same one as here, just running in standalone mode now.
Duet 3 Mini 5+ running 3.5.2
CannedERCF running 3.5.2
SHT36MAX3 running 3.5.2M122
=== Diagnostics === RepRapFirmware for Duet 3 Mini 5+ version 3.5.2 (2024-06-11 17:14:16) running on Duet 3 Mini5plus WiFi (standalone mode) Board ID: NTK2Z-J196U-D65J0-40KMN-1V03Z-ZJMGF Used output buffers: 18 of 40 (25 max) === RTOS === Static ram: 103368 Dynamic ram: 124620 of which 0 recycled Never used RAM 10572, free system stack 202 words Tasks: NETWORK(2,nWait 7,6.2%,242) LASER(5,nWait 7,0.0%,269) HEAT(3,nWait 6,0.0%,353) Move(4,nWait 6,0.0%,355) CanReceiv(6,nWait 1,0.1%,798) CanSender(5,nWait 7,0.0%,336) CanClock(7,delaying,0.0%,353) TMC(4,delaying,1.5%,101) MAIN(1,running,90.2%,665) IDLE(0,ready,1.2%,29) AIN(4,delaying,0.9%,259), total 100.0% Owned mutexes: WiFi(NETWORK) === Platform === Last reset 00:00:24 ago, cause: software Last software reset at 2024-07-13 14:02, reason: HardFault bfarValid precise, Gcodes spinning, available RAM 10404, slot 1 Software reset code 0x4063 HFSR 0x40000000 CFSR 0x00008200 ICSR 0x00000803 BFAR 0x00000004 SP 0x20012008 Task NETW Freestk 482 ok Stack: 0000016e 00000002 200014e8 0000016d 20033aba 000a0bff 00030152 810f0000 00030149 00000000 00000000 00000000 200310cc 00000800 2002c640 2002c640 00000001 2002c496 2001882c 2001ea80 000302e3 00000000 00000000 00000000 200120b8 00000014 b5ddbf73 Error status: 0x00 Aux0 errors 0,0,0 MCU revision 3, ADC conversions started 25301, completed 25301, timed out 0, errs 0 MCU temperature: min 36.1, current 36.3, max 37.8 Supply voltage: min 24.3, current 24.3, max 24.4, under voltage events: 0, over voltage events: 0, power good: yes Heap OK, handles allocated/used 99/10, heap memory allocated/used/recyclable 2048/304/132, gc cycles 0 Events: 0 queued, 0 completed Driver 0: standstill, SG min 0, read errors 0, write errors 1, ifcnt 46, reads 2198, writes 13, timeouts 0, DMA errors 0, CC errors 0 Driver 1: standstill, SG min 0, read errors 0, write errors 1, ifcnt 46, reads 2198, writes 13, timeouts 0, DMA errors 0, CC errors 0 Driver 2: standstill, SG min 0, read errors 0, write errors 1, ifcnt 32, reads 2201, writes 10, timeouts 0, DMA errors 0, CC errors 0 Driver 3: standstill, SG min 0, read errors 0, write errors 1, ifcnt 47, reads 2198, writes 13, timeouts 0, DMA errors 0, CC errors 0 Driver 4: standstill, SG min 0, read errors 0, write errors 1, ifcnt 46, reads 2198, writes 13, timeouts 0, DMA errors 0, CC errors 0 Driver 5: standstill, SG min 0, read errors 0, write errors 1, ifcnt 47, reads 2198, writes 13, timeouts 0, DMA errors 0, CC errors 0 Driver 6: standstill, SG min 0, read errors 0, write errors 1, ifcnt 32, reads 2201, writes 10, timeouts 0, DMA errors 0, CC errors 0 Date/time: 2024-07-13 14:02:38 Cache data hit count 46575139 Slowest loop: 4.76ms; fastest: 0.16ms === Storage === Free file entries: 20 SD card 0 detected, interface speed: 22.5MBytes/sec SD card longest read time 0.4ms, write time 0.0ms, max retries 0 === Move === DMs created 83, segments created 0, maxWait 0ms, bed compensation in use: none, height map offset 0.000, max steps late 0, min interval 0, bad calcs 0, ebfmin 0.00, ebfmax 0.00 no step interrupt scheduled Moves shaped first try 0, on retry 0, too short 0, wrong shape 0, maybepossible 0 === DDARing 0 === Scheduled moves 0, completed 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1 === DDARing 1 === 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 Heater 1 is on, I-accum = 0.0 === GCodes === Movement locks held by null, 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 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 File2 is idle in state(s) 0 Queue2 is idle in state(s) 0 Q0 segments left 0, axes/extruders owned 0x0000803 Code queue 0 is empty Q1 segments left 0, axes/extruders owned 0x0000000 Code queue 1 is empty === CAN === Messages queued 209, received 716, lost 0, errs 0, boc 0 Longest wait 1ms for reply type 6042, peak Tx sync delay 3, free buffers 26 (min 25), ts 123/122/0 Tx timeouts 0,0,0,0,0,0 === Network === Slowest loop: 4.13ms; fastest: 0.00ms Responder states: MQTT(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0) HTTP sessions: 1 of 8 === WiFi === Interface state: active Module is connected to access point Failed messages: pending 0, notrdy 0, noresp 0 Firmware version 2.1.0 MAC address d8:bf:c0:14:e5:fc Module reset reason: Power up, Vcc 3.36, flash size 2097152, free heap 39688 WiFi IP address 192.168.2.8 Signal strength -72dBm, channel 1, mode 802.11n, reconnections 0 Clock register 00002001 Socket states: 0 0 0 0 0 0 0 0
Printer was idle at the time the reset occurred. DWC was open in Chrome 126.0.6478.127 (but I can't be certain on the version with how often Chrome can update). Installed languages were English (United States) and English, for the Chrome UI.
Let me know if there's any other information I can provide.
-
RE: SBC-mode config shows console errors in standalone mode
@Phaedrux It looks like the error was in one of the nested macros I use to lower motor current during homing as after running the blank operations I mentioned above on the files in the
/sys
folder, the error no longer appears. I guess SBC-mode was acting as an additional filter and caught it which was why I never encountered the errors before.Thanks for the help!
-
RE: SBC-mode config shows console errors in standalone mode
@Phaedrux Here is a .zip file of the /sys folder. I've been using the 'Blank Operations' in Notepad++ to remove trailing spaces and converting tabs to spaces (along with 'show all characters' on), but nothing has jumped out as an invalid character so far; at least not in homez.g, bed.g, or mesh.g.
-
RE: SBC-mode config shows console errors in standalone mode
config.g
;=== initialize variables ===; M98 P"0:/sys/init_pre.g" ;; set some variables that we need for configuration ;=== discard if necessary ===; ;=== configuration - initial networking setup ===; M586 P0 S1 ;; enable http, disable ftp, disable telnet, set printer name, wait 5s for expansion boards M586 P1 S0 M586 P2 S0 G4 S5 M550 P"legionXY" ;; in SBC mode, M550 goes in dsf-config.g, not config.g ;M552 S1 G4 S5 ;=== configuration - PanelDue init ===; M575 P1 S1 B57600 ;=== configuration - printer ===; G90 ;; absolute coordinates, relative extruder moves M83 M669 K1 ;; Kinematics type: 1 = CoreXY ;=== configuration - drive ===; M569 P0.0 S0 D2 ;; Z-axis motors, 0.driver0,0.driver1,0.driver2 M569 P0.1 S0 D2 M569 P0.5 S0 D2 M569 P0.3 S1 D2 ;; Left and right motors (X- and Y- axis), 0.driver3,0.driver4 M569 P0.4 S1 D2 M569 P20.0 S1 D2 ;; Extruder, RRF36.driver0 ;=== configuration - drive - axis mapping ===; M584 X0.3 Y0.4 Z0.1:0.0:0.5 E20.0 ;; map E-axis here as toolboard will be connected ;=== configuration - drive - microstepping ===; M350 X16 Y16 Z16 I1 ;=== configuration - drive - steps/mm, current, idle timeout ===; M92 X80 Y80 Z800 ;; set steps/mm, current (mA), idle timeout M84 S30 ;; set idle hold 30s ;=== configuration - drive - speed, acceeleration, jerk ===; M98 P"0:/sys/setMaxSpeed.g" ;; set all the max speeds below as these are adjusted during home moves so we only want to adjust in one spot ;=== configuration - axis - min/max ===; M208 X0 Y0 Z0 S1 M208 X310 Y300 Z300 S0 ;=== configuration - axis - endstops ===; M574 X1 S1 P"20.io2.in" ;; configure active high (S1) X endstop at X- (X1) on RRF36.io2.in (20.io.in) M574 Y2 S1 P"0.io2.in" ;; configure Y active high (S1) endstop at Y+ (Y2) on duet.io2.in (0.io2.in) M574 Z1 S2 ;; configure Z-probe (S2) endstop at low end (Z1) ;=== configuration - axis - z-probe ===; M558 P8 C"^20.io0.in" H5:1 F300:120 T6000 A20 B0 ;; klicky pcb probe installed on RRF36.io0.in (20.io0.in) ;=== configuration - axis - mesh compensation and bed dismensions ===; M98 P"0:/sys/setDefaultProbePoints.g" ;; define mesh grid with allowance for mesh generation on printed area only if !exists(global.bedCenterX) ;; calculate bed center, insert into object model global bedCenterX = floor(move.axes[0].max / 2) if !exists(global.bedCenterY) global bedCenterY = floor(move.axes[1].max / 2) ;=== configuration - axis - lead screw position ===; M671 X-4.5:150:304.5 Y-4.52:305:-4.52 S5 ;=== configuration - sensor - bed heater & thermistor ===; M308 S0 P"0.temp0" Y"thermistor" T100000 B3950 A"Bed" ;; create sensor S0 on duet.temp0 named "Bed" M950 H0 C"0.out0" T0 Q11 ;; create heater (H0) for bed M307 H0 B0 S1.00 ;; on bed H0 disable bang-bang mode and set PWM limit M140 H0 ;; map heated bed to heater 0 (H0) M143 H0 S120 ;; set heater H0 temperature limit to 120C ;=== !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ===; ;; run bed PID tune using code below ;;; ;;; H0 = heater 0, or bed ;;; ;;; S = temperature in C (90C) ;;; ; M303 H0 S90 ;;; ;;; replace M307 below with results from M303 ;;; M307 may have a Vnnn included with it ;;; if you're using mains (AC) bed heater on your bed, omit it ;=== !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ===; M307 H0 R0.480 K0.256:0.000 D2.03 E1.35 S1.00 B0 ;; this is my M307, find your own ;=== configuration - sensor - accelerometer ===; M955 P20.0 I16 R10 ;; create accelerometer on RRF36 ;;; I = accelerometer orientation, expressed as 2-digit number. see ;;; https://www.dropbox.com/s/hu2w5mk57l4zqpg/Accelerometer%20Orientation.pdf ;;; for all possible permutations ;=== configuration - sensor - chamber monitoring ===; M308 S5 P"0.io4.out+0.io4.in" Y"dht22" A"Chamber" ;; DHT22 setup M308 S8 P"S5.1" Y"dht-humidity" A"Humidity[%]" M308 S11 Y"mcu-temp" A"MCU" ;; MCU temperature, with offset M912 P0 S-1.2 M950 F2 C"0.out3" Q250 ;; create fan 0 (F0) on pin 0.out2 M106 P2 C"mainboard cooling" S0 H1 T155 L255 ;; set fan 0 (P0) to thermostatic control (45C), full-speed (L255) named "mainboard cooling" ;=== configuration - LEDs, chamber & toolhead ===; M950 P0 C"0.out5" Q1000 ;; configure Dayspring LEDs P0 on duet.out5 (0.out5) ;=== configuration - overrides ===; ;M501 ;; config-override.g should remain empty ;=== configuration - gizmo1 ===; M98 P"0:/sys/gizmo1.g" M568 P0 R0 S0 A0 ;; turn tool0 heater off M140 S-273.1 ;; turn bed off T0 P0 ;; select T0, don't run any toolchange macros ;=== configuration ===; ;=== configuration - housekeeping ===; M98 P"0:/sys/init_post.g" ;; set the last few variables we need that rely on loaded configuration M98 P"0:/sys/setBuildPlate.g" ;; see setBuildPlate.g for Z probe trigger value, offset, trigger height ;=== discard if necessary ===;
init_pre.g
if !exists(global.runDaemon) global runDaemon = false if !exists(global.bedPreheatTemp) global bedPreheatTemp = 60 if !exists(global.cancelled) ; global variable for exiting out of loops global cancelled = false if !exists(global.filamentDistance) global filamentDistance = 0 if !exists(global.filamentFeedSpeed) global filamentFeedSpeed = 1800 if !exists(global.filamentRetractSpeed) global filamentRetractSpeed = 3600 if !exists(global.filamentDistance) global filamentDistance = 0 ; global for use to allow filament to feed for set distance after sensor trips else set global.filamentDistance = 0
init_post.g
;;;;===== global variables for preheating, review, extract, and extrapolate for filament load/preheat macros);;;; ; extrusion if !exists(global.loadedFilament) || global.loadedFilament=null; global variable to hold filament name global loadedFilament="No_Filament" ; create a filament variable G4 P10 if move.extruders[state.currentTool].filament="" echo "No filament loaded. Cold extrude & retract set to defaults" M302 S190 R110 ; Allow extrusion starting from 190°C and retractions already from 110°C (defaults) set global.loadedFilament="No_Filament" else set global.loadedFilament=move.extruders[state.currentTool].filament ; set the variable to the currently loaded filament echo "Loading config for " ^ global.loadedFilament ^ " filament" M703 ; if a filament is loaded, set all the heats and speeds for it by loading config.g G4 P10
setDefaultProbePoints.g
;setDefaultProbePoints.g M557 X5:275 Y5:275 P20 ; set values as you would normally do in config.g.g
gizmo1.g
;; gizmoN.g is the comprehensive definition of a tool (extruder, hotend, heater, thermisistor, filament monitoring, input shaping, tool and part cooling fans) ;; includes hotend (thermistor, heater), fan (tool, part), extruder (axis, microstepping), tool assignment and offset ;=== gizmo1 - fan ===; M950 F1 C"!0.out4+0.out4.tach" ;; create fan F1 named "4028" with duet.out4+duet.out4.tach (0.out4+0.out4.tach) M106 P1 C"4028" S0 H-1 ;=== gizmo1 - hotend thermistor ===; M308 S1 P"20.temp0" Y"thermistor" T100000 B4725 C7.060000e-8 A"e3drevo" ;; configure sensor 1 (S1) on pin RRF36.temp0 (20.temp0) as thermistor M950 H1 C"20.out0" T1 ;; create heater output (H1) on RRF36.out0 (20.out0) and map to sensor 1 (T1) M307 H1 B0 S1.00 ;; set PWM limit (S1.00) M563 P0 S"revo" D0 H1 F1 ;; define tool0 (T0) ;; assign fan F1, extruder drive D0 (E0) and heater H1 to tool T0 named "revo" G10 P0 X0 Y0 Z0 ;; set axis offsets, max temperature, initial temperature M143 H1 S290 G10 P0 R0 S0 ;=== !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ===; ;; run hotend PID tune!! using code below ;;; T0 = PID tune tool0 ;;; S210 = temperature in C (210C) ;;; F0.45 = Fan PWM value; 0.45 = 45% ;;; ; M303 T0 S210 F0.45 ;;; replace M307 below with results from M303 ;=== !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ===; M307 H1 R3.611 K0.702:0.541 D1.95 E1.35 S1.00 B0 V23.5 ;; this is my M307, find your own ;=== gizmo1 - fan - hotend ===; M950 F0 C"20.out2" Q250 ;; create fan 0 (F0) on pin RRF.out2 (20.out2) M106 P0 C"tool" S0 H1 T45 L255 ;; set fan 0 (P0) to thermostatic control (45C), full-speed (L255) named "tool" ;=== gizmo1 - extruder ===; ;; Orbiter v2 with LDO motor M906 E1600 ;; set extruder motor current M350 E16 I1 ;; set microstepping to 16 with interpolation M92 E671.64 ;; set extruder steps per mm M203 E7200 ;; set max speed, jerk, acceleration M205 E5.0 M201 E3000 T0 P0 ;; select T0, don't run toolchange macro M703 ;; load filament specific gcode ;; I keep filament-specific PID tuning, retraction, and pressure advance ;; settings here. ;=== configuration - scanning z-probe ===; M558 K1 P11 C"20.i2c.ldc1612" F18000 T36000 M308 A"SZP" S4 Y"thermistor" P"20.temp1" T100000 B4092; thermistor on PCB/coil M558.2 K1 S16 R217324 ;=== gizmo1 - options ===; M955 P20.0 I12 ;; accelerometer on RRF36 M950 E0 C"20.rgbled" T2 U2 Q3000000 ;; configure toolhead LED E0 on FLY36.rgbled (20.rgbled)
setBuildPlate.g
;; check mesh.g and mesh.prusaslicer for setting on how to only create heightmap where printing ;=== configuration - bed - mesh compensation ===; ;M376 H3 ;; fade mesh compensation at 3mm ;=== configuration - bed - z-probe offset ===; ;;set in config.g, but change here // old offset: G31 K0 P500 X-27.8 Y-12.0 Z1.55 G31 K0 P500 X-23.34 Y-20.49 Z1.84 ;; klickyPCB with stock switch G31 K1 X0.0 Y-16.00 Z2.000 ;; Mellow SZP
pause.g
; pause.g ; called when a print from SD card is paused ; ; generated by RepRapFirmware Configuration Tool v3.3.5 on Sat Nov 20 2021 00:56:13 GMT-0500 (Eastern Standard Time) M83 ; relative extruder moves G1 E-10 F3600 ; retract 10mm of filament G91 ; relative positioning G1 Z5 F360 ; lift Z by 5mm G90 ; absolute positioning G1 X150 Y280 F6000 ; go to X150 Y280
resume.g
; resume.g ; called before a print from SD card is resumed G1 R1 X0 Y0 Z5 F6000 ; go to 5mm above position of the last print move G1 R1 X0 Y0 Z0 ; go back to the last print move M83 ; relative extruder moves G1 E10 F3600 ; extrude 10mm of filament
start.g
T0 ; ensure the tool is selected M220 S100 ; set speed factor back to 100% in case it was changed M221 S100 ; set extrusion factor back to 100% in case it was changed M290 R0 S0 ; clear any baby-stepping M106 P0 S0 ; turn layer fan off if it is on M400 ; finish all moves, clear the buffer M98 P"0:/sys/setBuildPlate.g" ; pull in build plate parameters ; heightmap, probe height, etc. ; chamber LEDs on M98 P"0:/macros/LEDs/led_on.g" G32 ; 3-point bed leveling ;M501 ; load config-override.g M703 ; load filament-specific config.g M98 P"0:/sys/setInputShaping.g" ; pull in input shaping parameters G90 ; absolute Positioning M83 ; extruder relative mode ;=== DuetLapse3 control ===; ;M291 P"DuetLapse3.start" S2 ;M292 ;G4 S10 M98 P"0:/sys/setDefaultProbePoints.g" ; reset probe points, just in case ;=== slicer start code ===;