Page 1 of 1

circuit to reset, upload firmware and update firmware using a button

Posted: Thu Jan 20, 2022 4:43 pm
by electronic_projet
Hello! I want to make a project where I can reboot, upload and update the firmware of the esp32 using a single button, that is, if I press once the button reboots, if I keep pressed it uploads, if I press the button twice it does the firmware update, Does anyone have an idea how I can do it?

Re: circuit to reset, upload firmware and update firmware using a button

Posted: Fri Jan 21, 2022 1:59 am
by ESP_Sprite
Sounds simple: read the button every 100ms or so (or use a GPIO interrupt), write some logic to detect those things, call the correct routines to reboot/upload/OTA. What specifically are you having issues with?