SV08 Mainline Klipper random shutdowns

Basic Information:

Printer Model: Sovol SV08
MCU / Printerboard: stm32f103xe/ SV08 Motherboard
Host / SBC: BTT-CB1
klippy.log.zip (1.2 MB)

I have moved from the Sovol’s iterationf of Klipper to the Mainline Klipper, but not without a hiccup.
Previously on the original firmware I was getting Error Code 21, which had something to do with the bed heater, the code does not obviously come up on the Mainline Klipper, but the behavior is the same. The printer stops mid print and becomes completely unresponsive, freezing the KlipperScreen and the “device screen”, Fluidd and Mainsail disconnect and I cannot even ping the host, let alone SSH.
I have checked all the cabling and all seems to be fine, I went in with multi-meter and voltages were as they supposed to.
I have also changed the PSU for the MEAN WELL LRS-350-24, as I was thinking that the weedy 150W original power supply was not up to the task, but the problem still existed.
Then I moved on to cooling the MCUs and installed heatsinks as well as fan cooling, but that again did not change anything, even though the temps on both MCUs as well as CPU are maintained at mid 40s level.

I am not a Klipper expert, so I cannot see anything obvious in the klippy.log
The Klipper installation is “dirty” as it requires 2 additional files provided by SOVOL, probe_pressure.py and timelapse.py, but neither of them should really cause such behaviour.
Needles to say that the same gcode slice sometimes completes without failure when the next time the print fails.

Hello @chrisf4lc0n !

At some point this macro seems to be called:

[delayed_gcode bed_mesh_init]
initial_duration = .01
gcode = 
	BED_MESH_PROFILE LOAD=default

If there is no existing profile named default, this error occurs:

gcode.CommandError: bed_mesh: Unknown profile [default]

Hi,
@EddyMI3D I have seen that after posting it and fine combing the klippy.log, I have created the “default” mesh now and I will see if that helps…
I am not sure why would a “default” mesh be called in the middle of the print though…
I will test and see if that has resolved the problem.
I have however see something odd, when stripping down the bed there are 4 power cables coming out of the bed, one is “blue” and marked as 110V, the other 3 are 220V+, 220V- and ground. According to the diagram on the bed itself when using 220V power supply 110V+ cable should not be connected, but it was. I have been in touch with the Sovol to ask regarding that if it should stay connected on the 220V power supply.
I wonder if they sent me a printer meant for the US market and for the European Market it should be disconnected, that would go in the line with their Error Code 21.

I have also changed the bed thermistor’s range to 125C in printer.cfg to see if temp out of the range didn’t cause that.

Unfortunately the bed mesh, nor other steps which I undertook resulted in a successful print.
There is more indication of possible underlying issue though as the Fluidd spat out the following error:

Can not update MCU ‘mcu’ config as it is shutdown
Once the underlying issue is corrected, use the
“FIRMWARE_RESTART” command to reset the firmware, reload the
config, and restart the host software.
Error configuring printer

I am attaching the new klippy.log
klippy_2.log.zip (680.6 KB)