Enter bootloader mode from software on ESP32-WROOM-32E-N8
Posted: Thu Oct 26, 2023 4:19 pm
I am using an ESP32-WROOM-32E-N8 and was trying to implement the software reset to bootloader discussed in https://esp32.com/viewtopic.php?f=12&t=33238
The solution there was to use this:
However, on my device, which I believe is a regular ESP32 and not a -C3 or -S3 variant, this code will not compile since it appears as though RTC_CNTL_OPTION1_REG and RTC_CNTL_FORCE_DOWNLOAD_BOOT are not defined in 2.0.11/tools/sdk/esp32/include/soc/esp32/include/soc/rtc_cntl_reg.h
Is this something which should be possible on my ESP32-WROOM-32E-N8 and maybe I'm using the SDK headers incorrectly? Or is entering the bootloader through software just impossible on this variant?
thanks!
The solution there was to use this:
Code: Select all
#include "esp_system.h"
#include "soc/rtc_cntl_reg.h"
REG_WRITE(RTC_CNTL_OPTION1_REG, RTC_CNTL_FORCE_DOWNLOAD_BOOT);
esp_restart();
Is this something which should be possible on my ESP32-WROOM-32E-N8 and maybe I'm using the SDK headers incorrectly? Or is entering the bootloader through software just impossible on this variant?
thanks!