Thanks for suggestions everyone and sorry for not responding earlier, but I ended up experimenting for a long while and finally got a reliable printer so I thought I’d leave this for posterity. TL/DR: it’s a hardware issue, either shorting or ESD from the motor casing.
First, I thought it might indeed be extruder motor being more busy with increased PA and retraction for the flexible filament, but then I changed those to match my PETG profile and the issue persisted. Then, I started getting these toolhead resets with PETG too, just much later in the print (about 3-4h) that repeated consistently with every print and later started happening even earlier, but still much later than with the flexible material.
Here’s what I tried and none of it helped:
- Soldered a 1500uF 35V low-ESR capacitor to the toolhead power input
- Increased PSU output voltage to 25V
pwm_cycle_time: 0.100 -> 0.002
- Replaced the PSU from 200W to 350W
I noticed though that sometimes, after some changes it would work with PETG for a few days on long (12-22h) prints before exhibiting this issue again. I also noticed that, once the issue happened and a firmware reset was done, I could almost always repeat it by putting my finger on the plastic XT30 connector of the power/CAN cable or triggering the X endstop switch (which is connected to the toolhead board). After that it wouldn’t happen not matter how hard I pressed on it or other parts of the board or triggered the switch. Until another “natural” occurrence.
A few more details about my setup is: Galileo 2 extruder and a Cartographer 3D probe (connected via CAN pins on the SB0000 Stealthburner board). A few things that were suspicious to me in this setup:
- Extruder motor casing is very close to the SB2209 USB-C port’s body (might be a conduit for a discharge?)
- Extruder’s metal carrier shaft is pretty close to the pins on the SB0000 board, though not touching (might be with enough thermal expansion?)
- Cartographer 3D wires are a bit stressed due to the placement of the SB0000 board (might cause resets/CAN issues?)
Also, I noticed that new packages of the SB2209 RP2040 (both CAN and USB) contain a wire to connect any ground pin on the board and the extruder motor casing, which the USB-variant assembly manual recommends to do in order to provide a continuous discharge path.
So in an act of desperation I did the following things:
- Soldered an 18AWG wire to the GND pin of the SB2209 power input, crimped it with a circular terminal and attached it to one the extruder motor’s screws, secured with a nut
- Soldered all the Cartographer 3D wires to the back of respective SB2209 pins that connect the SB0000 board
- Covered those with an insulating varnish just in case too
- Covered the SB2209 USB port with an insulating tape
- Covered all the unused pins on the SB0000 board with an insulating tape (especially those close to the carrier shaft)
Something (or all of) this has finally addressed the issue and I’ve been reliably printing with various filaments (including the flexible one) for over a 100h.
I’m still not sure why it only started happening after I printed with that flexible filament for the first time (and only after a few hours of doing that). I had both G2E and Carto for a while before then. Might be a coincidence, but the consistently more frequent occurrence when using that filament even with PA and retraction decreased to the PETG levels (+ much lower flow rate) is suspicious to me.