Skip to content

drivers: stepper: Added fault event#87479

Merged
kartben merged 1 commit intozephyrproject-rtos:mainfrom
tiacsys:stepper-fault-event
Mar 25, 2025
Merged

drivers: stepper: Added fault event#87479
kartben merged 1 commit intozephyrproject-rtos:mainfrom
tiacsys:stepper-fault-event

Conversation

@jbehrensnx
Copy link
Contributor

The stepper api currently lacks an event for issues unrelated to motor stalls, e.g. power supply issues or thermal shutdown. This PR adds a corresponding fault event.

Adds a fault event to stepper_event for stall unrelated problems.

Signed-off-by: Jan Behrens <jan.behrens@navimatix.de>
STEPPER_EVENT_RIGHT_END_STOP_DETECTED = 3,
/** Stepper has stopped */
STEPPER_EVENT_STOPPED = 4,
/** Fault with the stepper controller detected */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit

Suggested change
/** Fault with the stepper controller detected */
/** Fault detected with the stepper controller */

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jbehrensnx would you also be implementing this interrupt based fault detection for ti drv8424 driver?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's the plan, but as there will be some other changes to the drv8424 driver, it will definitely be a separate PR.

@kartben kartben merged commit 411ca58 into zephyrproject-rtos:main Mar 25, 2025
24 checks passed
@jilaypandya jilaypandya added this to the v4.2.0 milestone Jun 9, 2025
@jbehrensnx jbehrensnx deleted the stepper-fault-event branch February 19, 2026 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

Comments