Software crash while collecting closed loop data
-
Hello. I'm having issue while trying to tune my stepper motors working in closed loop. I'm using closed loop plugin and the printer keeps crashing during data collection moves. The messages that pops up are "SPI connection has been lost" and "Board 52 reconnected" The crashes happen at random time. Sometimes just after move starts, or at the end. I have noticed that lowering the amount of data (by reducing samples and move length) reduces chance of crash, so it got me wondering if this issue is related to CAN bus communication being overloaded with messages due to large numbers of satellite boards connected to it.
I also had occasional crashes during input shaping data collection moves, but they were less frequent.
My setup:
DSF and RRF - newest 3.6
Hardware is Duet3 6XD in SBC with two toolboards, six 1HCL and two expansion boards. -
@ketirange When this next happens, please run M122 and M122 B52 afterwards to find the last reset reasons of the main board and the closed loop board or motor. That will give us a better idea of what happened.
-
@dc42 This is what i got this morning:
M122:
M122 B30.0 (Which is 1HCL board that was doing data collection during crash)
-
@ketirange dc42 will want the full outputs of the M122's or at least the firmware version information as there are a few interim versions of 3.6 beta 2 floating about.
-
-
that is not specific to 3.6 - I can reproduce it in 3.5.3 SBC setup.
I think it is triggered when the acceleration is to high (back emf), the sample rate is to high (sbc spi timeout) or too many samples are taken (again spi timeout). -
@timschneider How many boards you have connected to the CAN bus?
-
@ketirange
just 3.CAN 1 MB6HC - 120 Ohm -----------| 1 HCL Closed loop -----------| 1 HCL closed loop - 120 Ohm -|
-
My setup
In this example the samples 2500 at a rate of 2500 will trigger the reset.
-
@timschneider Thanks for sharing. Now i doubt it is CAN related problem. Maybe SPI communication is not keeping up with all this data being transfered and written to sd card? Im curious if this problem happens for standalone users.