Hello.
Which ROM function needs to be called to put the ESP32-C6 into download mode?
The documentation states that this step can be performed by setting GPIO 9 to a high state, so I assume this calls a ROM function.
I found the ROM function at 0x40000090 (# software_reset), but it triggers a processor reboot.
Thanks.
esp32-c6 rom function to download mode.
Re: esp32-c6 rom function to download mode.
No ROM function exists, but you can get into download mode from firmware by setting the LP_AON_FORCE_DOWNLOAD_BOOT reglster, then restarting the ESP.
-
watchdog40
- Posts: 19
- Joined: Fri Jun 26, 2026 2:20 pm
Re: esp32-c6 rom function to download mode.
Thanks.
So, I’ve adjusted my program. The ESP32 successfully enters download mode, as shown in the first log.
However, flashing still results in an error—see the second log:
log 1 :
modeLoadPgm
ESP-ROM:esp32c6-20220919
Build:Sep 19 2022
rst:0x3 (LP_SW_HPSYS),boot:0x5 (DOWNLOAD(USB/UART0/SDIO_FEI_REO))
Saved PC:0x4001974a
waiting for download
end log compiler :
C:\Espressif\tools\python\v6.0.1\venv\Scripts\esptool --chip esp32c6 -p com14 -b 460800 write-flash --flash-mode dio --flash-freq 80m --flash-size 2MB 0x0 projet1.bin
esptool v5.3.0
Serial port com14:
A fatal error occurred: Could not open com14, the port is busy or doesn't exist.
(could not open port 'com14': PermissionError(13, 'Accès refusé.', None, 5))
So, I’ve adjusted my program. The ESP32 successfully enters download mode, as shown in the first log.
However, flashing still results in an error—see the second log:
log 1 :
modeLoadPgm
ESP-ROM:esp32c6-20220919
Build:Sep 19 2022
rst:0x3 (LP_SW_HPSYS),boot:0x5 (DOWNLOAD(USB/UART0/SDIO_FEI_REO))
Saved PC:0x4001974a
waiting for download
end log compiler :
C:\Espressif\tools\python\v6.0.1\venv\Scripts\esptool --chip esp32c6 -p com14 -b 460800 write-flash --flash-mode dio --flash-freq 80m --flash-size 2MB 0x0 projet1.bin
esptool v5.3.0
Serial port com14:
A fatal error occurred: Could not open com14, the port is busy or doesn't exist.
(could not open port 'com14': PermissionError(13, 'Accès refusé.', None, 5))
-
watchdog40
- Posts: 19
- Joined: Fri Jun 26, 2026 2:20 pm
Re: esp32-c6 rom function to download mode.
Oh, sorry—you have to close the PuTTY session, and then it works!
Thanks a lot.
Thanks a lot.
Who is online
Users browsing this forum: Amazon [Bot], Bing [Bot], Qwantbot, YisouSpider and 1 guest
