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

electronic_projet
Posts: 1
Joined: Thu Jan 20, 2022 4:32 pm

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

Postby electronic_projet » Thu Jan 20, 2022 4:43 pm

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?

ESP_Sprite
Posts: 9770
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » Fri Jan 21, 2022 1:59 am

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?

Who is online

Users browsing this forum: acsoprana, Baidu [Spider] and 43 guests