79417579

Date: 2025-02-06 10:50:24
Score: 1
Natty:
Report link

I have figured out how to do it and it appears to be somewhat undocumented in the ESP32-C6 Technical Reference Manual so I'm posting it here for reference.

It can be done like so, include:

#include "esp_system.h"
#include "soc/lp_aon_reg.h"

and add below lines:

REG_WRITE(LP_AON_SYS_CFG_REG, LP_AON_FORCE_DOWNLOAD_BOOT);
esp_restart();

It will boot directly to the ROM update mode.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Wizzard_Dr