Enter bootloader mode from software on ESP32-WROOM-32E-N8

waynepiekarski
Posts: 2
Joined: Thu Oct 26, 2023 4:09 pm

Enter bootloader mode from software on ESP32-WROOM-32E-N8

Postby waynepiekarski » 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:

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();
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!

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

Re: Enter bootloader mode from software on ESP32-WROOM-32E-N8

Postby ESP_Sprite » Fri Oct 27, 2023 2:51 am

Sorry, the 'classic' ESP32 does not have that option. It was introduced when USB connectivity was added to the -S2, to allow the USB-OTG peripheral that chip has to simulate the uart auto-reset circuit earlier chips use.

waynepiekarski
Posts: 2
Joined: Thu Oct 26, 2023 4:09 pm

Re: Enter bootloader mode from software on ESP32-WROOM-32E-N8

Postby waynepiekarski » Fri Oct 27, 2023 7:33 am

Thank you for the clarification. I will start looking at an ESP32-S3 module instead which should support this then, but it looks like the pinouts are different and this is not a drop in replacement.

Who is online

Users browsing this forum: No registered users and 81 guests