Rpi crashes when klipper is started with MCU connected

Basic Information:

Printer Model: Custom core xy
MCU / Printerboard: MKS Monster 8 V2
Host / SBC: Rpi 3 B+
klippy.log
klippy.log (832 KB)

Describe your issue:

I have a very strange issue. My Rpi freezes in 90% of the times during startup. I have connected a screen to it, but there are no error messages. The terminal just freezes completely, also the pi is not accessible via network anymore.

I have tried many things and found out the following:

  • The pi crashes during start of the klipper service. If I disable the klipper service, it boots normally. Then when I manually start the klipper service, Rpi dies again.
  • The pi crashes only if my MCU (MKS monster 8 v2) is connected and powered during klipper start. If I disconnect the MCU, klipper starts without any problems. If I power on the MCU after klipper is already running, everything is working perfectly fine and I can print for hours without any problem. Even a firmware restart and a klipper restart is working then.
  • I had the pi powered from the monster 8, I tried to power it from a separate power supply but the problem is the same.

I tried to check the journalctl logs but found no entries related to the crash.
I tried to check klippy.log without success. When I clear my logs and start klipper, after the freeze I have only an empty klippy.log. Looks like the pi dies before it can write anything persistent to the log file.

Thanks for any help.