We have multiple products with “36v4” in the name, so just to avoid confusion, it sounds like you’re referring to the High-Power Stepper Motor Driver 36v4
Unfortunately, we have not done much with the stall detection on that driver, so we cannot offer any specific advice, but I would not expect any kind of meaningful reading with no motor connected. I recommend reviewing the DRV8711 datasheet, which has some information about the internal stall detection on page 24 including a few considerations. For example, the time between step inputs must be greater than the SMPLTH time, the motor must be moving at some minimum speed, it does not work in full-step mode, and you will probably need to find the correct setting of the SDTHR bits for your setup experimentally.
Thanks
yes, I am dealing with High-Power Stepper Motor Driver 36v4
I am working on it
I have another question about overcurrent protection (I already burnt one module)
DRV8711 spec. states: Iocp = OCPTH/Rdson (FET)
but I do not konw the Rdson of the FET you have on the board, so I cannot calculate it
To increase the overcurrent protection sensitivity, you can set the OCPTH register to 00 (it defaults to 01, and there are only 4 possible settings). However, overcurrent protection should not be the primary mechanism for limiting the current that the driver delivers. You will need to properly configure the current limit each time the driver is powered up (otherwise it defaults to the maximum programmable value of 18A per phase). How did you set the current limit (e.g. using our Arduino library or setting the corresponding register values individually) and what are you setting it to? Also, could you tell me more about your setup such as what stepper motor and power supply you are using?