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.