Enter download (bootloader) mode from software on ESP32-C3
Posted: Wed Apr 19, 2023 6:01 pm
Hello.
Is there a way to enter bootloader/download mode by calling a certain function in the user app?
For example, I'm aware of a function
which will simply reset CPU and it will boot back to the user app.
But what I need is a another function or a piece of code that resets CPU and makes so that it wouldn't jump to the user app and instead would stay in the bootloader.
I searched, but couldn't find any information on that. I tried configuring GPIO9 strapping pin as output, writing 0 to it and calling esp_restart() function, but that didn't work, probably because strapping pins are not sampled after software reset.
Is there a way to enter bootloader/download mode by calling a certain function in the user app?
For example, I'm aware of a function
Code: Select all
esp_restart()
But what I need is a another function or a piece of code that resets CPU and makes so that it wouldn't jump to the user app and instead would stay in the bootloader.
I searched, but couldn't find any information on that. I tried configuring GPIO9 strapping pin as output, writing 0 to it and calling esp_restart() function, but that didn't work, probably because strapping pins are not sampled after software reset.