10000 Add pyb.hard_reset, and make sys.exit() or raise SystemExit do a soft reset. by dhylands · Pull Request #924 · micropython/micropython · GitHub
[go: up one dir, main page]

Skip to content

Add pyb.hard_reset, and make sys.exit() or raise SystemExit do a soft reset. #924

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

Closed
wants to merge 1 commit into from

Conversation

dhylands
Copy link
Contributor

No description provided.

@methoxid
Copy link

Hi Dave,
thank you for implementing this.
pyb.soft_reset() works as expected

pyb.hard_reset() on my board blocks REPL and nothing else happens, the execution of main.py switch() callback still continues. What should NVIC_SystemReset(void) do? Thank you.

@dhylands
Copy link
Contributor Author

Where are you doing the pyb.hard_reset() ? It's supposed to act like you pressed the reset button

@dpgeorge
Copy link
Member

Thanks! Merged in 8d62bbd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0