Page 1 of 1

GPIO trigger factory reset

Posted: Thu Feb 21, 2019 3:57 pm
by persan666
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.

Re: GPIO trigger factory reset

Posted: Thu Feb 21, 2019 5:26 pm
by brp80000
My experience is it only works when power on (Power on reset) or hard reset via reset pin

Re: GPIO trigger factory reset

Posted: Fri Feb 22, 2019 2:43 pm
by persan666
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.