M111. debugging is disabled.
Usb communication works and I can send commands and printer answers as expected. Nothing gets outputed to usb when i start print. The printer crashes every time when it tries to extrude. It does heating and homing just fine but extrusion causes reboot. I tried with another stepper and both have the same issue. I also tried extruding without printing file and it works just fine. Extrudermotor rotates and plastic gets extruded. If it might have had something to do with bad acceleration settings, i tried to tweak those too and it actually was the reason.
M566 X800 Y800 Z30 E0 ; Set maximum instantaneous speed changes (mm/min)
M203 X15000 Y15000 Z1200 E3000 ; Set maximum speeds (mm/min)
M201 X1000 Y1000 Z1000 E3000 ; Set accelerations (mm/s^2)
And for some reason this caused firmware to reset. Maybe the accidental 0 in instantaneous speed changes or something? I changed that to 10 and max acceleration to E500 and seems to work now. Still i have occasional Ajax errors but at least now i can print (at least for a while, havent still tested full print)