Skip to content

Apni2/tmc51xx log progress #88903

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 24, 2025

Conversation

apni2
Copy link
Contributor

@apni2 apni2 commented Apr 22, 2025

This PR implements #88045 for tmc51xx
and some minor changes regarding logging in tmc50xx.

Replace stall guard retry error log on EAGAIN with enable/disable info log.
Log position, sg result and sg status on each rampstat_work_handler() call.
Treat only negative return values from tmc_spi_write_register() and
tmc_spi_read_register() as an error. Only log actual velocity when not 0.

@apni2 apni2 force-pushed the apni2/tmc51xx_log_progress branch 3 times, most recently from dda39cc to d432486 Compare April 23, 2025 15:38
Copy link
Member

@jilaypandya jilaypandya left a comment

Choose a reason for hiding this comment

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

The second commit message title needs to be updated

@apni2 apni2 force-pushed the apni2/tmc51xx_log_progress branch from d432486 to 1f5571c Compare April 24, 2025 08:26
apni2 added 2 commits April 24, 2025 10:28
Use rampstat_work_reschedule() and read_vactual().
Only log actual velocity when not 0.
Update log_stallguard() output.

Signed-off-by: Anders Nielsen <[email protected]>
Replace stall guard retry error log on EAGAIN with enable/disable info log.
Log position, sg result and sg status on each rampstat_work_handler() call.
Treat only negative return values from tmc_spi_write_register() and
tmc_spi_read_register() as an error. Only log actual velocity when not 0.
Use helper functions rampstat_work_reschedule() and read_vactual().

Signed-off-by: Anders Nielsen <[email protected]>
@apni2 apni2 force-pushed the apni2/tmc51xx_log_progress branch from 1f5571c to 508e7c9 Compare April 24, 2025 08:29
@apni2
Copy link
Contributor Author

apni2 commented Apr 24, 2025

The second commit message title needs to be updated

I have reworked the commit messages.

@apni2 apni2 closed this Apr 24, 2025
@apni2 apni2 reopened this Apr 24, 2025
@kartben kartben merged commit b469fc1 into zephyrproject-rtos:main Apr 24, 2025
41 of 45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Stepper platform: ADI Analog Devices, Inc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants