Skip to content

Conversation

@stamp
Copy link
Contributor

@stamp stamp commented Apr 10, 2025

The current implementation using rtc_get_reset_reason(0) only retrieves the reset reason for CPU 0. This poses a problem since the user application typically runs on CPU 1, where programming errors such as panics or exceptions are more likely to occur.

I solved this by switching to the esp_reset_reason() function, which provides a more accurate reset reason for both CPUs at the same time.

@theelims theelims merged commit 606f1ad into theelims:main Jun 5, 2025
JuergenLeber pushed a commit to JuergenLeber/ESP32-sveltekit that referenced this pull request Nov 2, 2025
Replace rtc_get_reset_reason(0) with esp_reset_reason()
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.

2 participants