GPIO trigger factory reset

persan666
Posts: 28
Joined: Fri Feb 16, 2018 9:17 am

GPIO trigger factory reset

Postby persan666 » Thu Feb 21, 2019 3:57 pm

Hi,

I am using the GPIO trigger factory reset feature and I have a question.

In the documentation it says the following:

CONFIG_BOOTLOADER_NUM_PIN_FACTORY_RESET- number of the GPIO input for factory reset uses to trigger a factory reset, this GPIO must be pulled low on reset to trigger this.

CONFIG_BOOTLOADER_HOLD_TIME_GPIO- this is hold time of GPIO for reset/test mode (by default 5 seconds). The GPIO must be held low continuously for this period of time after reset before a factory reset or test partition boot (as applicable) is performed.

Is this regardless of what type off reset that is carried out? Power on reset, Deep sleep reset ...

I was hoping that it only took action on power on reset.

User avatar
brp80000
Posts: 138
Joined: Thu Oct 04, 2018 7:13 pm

Re: GPIO trigger factory reset

Postby brp80000 » Thu Feb 21, 2019 5:26 pm

My experience is it only works when power on (Power on reset) or hard reset via reset pin

persan666
Posts: 28
Joined: Fri Feb 16, 2018 9:17 am

Re: GPIO trigger factory reset

Postby persan666 » Fri Feb 22, 2019 2:43 pm

brp80000 wrote:
Thu Feb 21, 2019 5:26 pm
My experience is it only works when power on (Power on reset) or hard reset via reset pin
OK!
I have tried using gpio4 with wake up enabled as well. In deep sleep if I push the button and hold it, it executes the factory reset.
My hope was that it also require that I toggle the enable pin.

Who is online

Users browsing this forum: Google [Bot] and 229 guests