Hi,
I am using a DRV8825 in a project and having some issues with the DIR pin not actually changing direction when pulled high or low. I have a script that moves the motor, stops it, and changes direction to move again. When the DIR pin is pulled high or low(verified by oscilliscope), the direction it steps will sometimes not change and sometimes will change. I tried replacing the component after verifying correct inputs and it still moves randomly. schematic included below, let me know if you have any ideas!