Skip to content
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

custom servo sweep causes a restart #5697

Closed
jerryerry opened this issue Jan 14, 2017 · 5 comments
Closed

custom servo sweep causes a restart #5697

jerryerry opened this issue Jan 14, 2017 · 5 comments
Labels
T: Question Questions, generally redirected to other groups.

Comments

@jerryerry
Copy link

The servo can move using m280, and I wrote custom code to sweep the servo, but marlin resets after about 2sec. I tried running it without the servo as well, in case the servo is just really cheap, but it still causes a restart?

@shacal
Copy link

shacal commented Jan 14, 2017

Watch dog enabled?
Post custom code, hard to say anything if nothing to check (memory leak, pointers etc).
Enough power for board and servo?

@Roxy-3D
Copy link
Member

Roxy-3D commented Jan 14, 2017

Watch dog enabled?

Any time you loop for a long time.... You need to call idle(); or the Watch Dog Timer will reset the board.

@jerryerry
Copy link
Author

Thank you!!! adding idle() did the trick

@psavva
Copy link
Contributor

psavva commented Jan 14, 2017

@jerryerry, suggest you close this ticket :)

@thinkyhead thinkyhead added the T: Question Questions, generally redirected to other groups. label Feb 12, 2017
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T: Question Questions, generally redirected to other groups.
Projects
None yet
Development

No branches or pull requests

5 participants