GPIO Pin states after reset/during startup
Posted: Wed Oct 04, 2017 9:32 pm
Hey all, I'm wondering if there's any documentation on what the GPIO pins do during startup and following a hardware/software reset. I've been experimenting with GPIO0 and GPIO15 (simply because my design already has pullup/down resistors on them) on the scope and it seems that they are driven high/low at some point before it gets to my code in the start() function. Are there any GPIO pins that are guaranteed to stay in input mode until my code tells them otherwise?
Why I want to know: I'm driving a relay off one of the IO pins and I'd like to design a circuit with a holding cap that can store the last state of the pin for at least the 100ms or so that the ESP takes to boot to my start() function, so I can read it and not cycle the relay in case of a crash and reset. I want to do this without writing the EEPROM to avoid thousands of cycles wearing it out. Any help is greatly appreciated!
Thanks
Why I want to know: I'm driving a relay off one of the IO pins and I'd like to design a circuit with a holding cap that can store the last state of the pin for at least the 100ms or so that the ESP takes to boot to my start() function, so I can read it and not cycle the relay in case of a crash and reset. I want to do this without writing the EEPROM to avoid thousands of cycles wearing it out. Any help is greatly appreciated!
Thanks