Skip to content

esp32: make machine.soft_reset() work in main.py - #6782

Closed
tve wants to merge 1 commit into
micropython:masterfrom
tve:esp32-soft-reset
Closed

tve wants to merge 1 commit into
micropython:masterfrom
tve:esp32-soft-reset

Conversation

@tve

@tve tve commented Jan 18, 2021

Copy link
Copy Markdown
Contributor

This patch fixes two issues on the esp32: it enables machine.soft_reset() to be called in main.py and it enables machine.reset_cause() to correctly identify a soft reset. The former is useful in that it enables soft resets in applications that are started at boot time.
The support is patterned after the stm32 port.
No docs changes 'cause this makes things works as documented.
No unit test, I can create one but due to the reset it ends up being pretty messy.

@dpgeorge

Copy link
Copy Markdown
Member

Thanks, a good addition. Don't worry about a test.

@dpgeorge

Copy link
Copy Markdown
Member

Rebased, tested against new cmake build, and merged in d28dbcd

@dpgeorge dpgeorge closed this Feb 19, 2021
tannewt pushed a commit to tannewt/circuitpython that referenced this pull request Aug 19, 2022
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.

2 participants