markniu / Bed_Distance_sensor

Auto bed level with High resolution distance sensor
281 stars 28 forks source link

TMC UART - GSTAT Errors #131

Closed Reubertt closed 6 months ago

Reubertt commented 6 months ago

I have already reported some situations about the case on Facebook, version 9e5f5d2 to have resolved the problem. However, I am forwarding the log for version 929f865 for better error analysis.

I thought about removing irrelevant parts but was worried about removing anything that I might miss.

klippy.log

Reubertt commented 6 months ago

The error happens again when stealthchop_threshold is active. Forwarding new log with only log information (different from the other).

klippy.log

markniu commented 6 months ago

Hello, How about increase the endstop sample time? image

Reubertt commented 6 months ago

Changing the sample_time to .008 seems to solve the problem (I'll test .007) however I found a way to reproduce my error. I use a similar configuration from PR20100 where you abstract certain settings to change the "speed" the printer works. By simplifying this abstraction of my print.cfg I was able to run it with sample_time .006. This means that some part of this code abstraction may be having a conflict. So my problem is apparently resolved, but be warned that very complex abstractions can cause some bugs with BDSensor.