GPIO pins reset behaviour during esp_restart() in ESP-IDF

regan.xavier
Posts: 5
Joined: Thu Sep 05, 2024 6:45 am

GPIO pins reset behaviour during esp_restart() in ESP-IDF

Postby regan.xavier » Thu Jan 23, 2025 6:45 am

Hi ESP Team,

I'm currently working with ESP-IDF and have observed a change in GPIO behaviour when using the esp_restart() function.

In ESP-IDF v5.1.4, when esp_restart() is called, all GPIO pins are reset to their default state (logic 0). However, after updating to ESP-IDF v5.3.1, I noticed that GPIO pins retain their state during a software reboot initiated with esp_restart().

Could you kindly explain the reason for this change in behaviour? Additionally, is there any recommended solution to reset all GPIO pins to their default state during a software reboot using esp_restart() in ESP-IDF v5.3.1?

Thanks for your support!

nopnop2002
Posts: 138
Joined: Thu Oct 03, 2019 10:52 pm
Contact:

Re: GPIO pins reset behaviour during esp_restart() in ESP-IDF

Postby nopnop2002 » Sat Jan 25, 2025 5:58 am

What happens if you connect an appropriate GPIO and EN pin with a wire, and set the GPIO to LOW instead of esp_restart()?

esp_restart() is a software reset, but I think manipulating the EN pin is a hard reset.

Who is online

Users browsing this forum: No registered users and 97 guests