This reference design is used for the stall-detection in a stepper motor driven by DRV8880 in the presence of a closed-loop feedback obtained with an optical rotary incremental encoder. The reference design shows how to detect a stall using a closed-loop algorithm.