Chapter 2. API Reference
CONFIG_ESP32S2_DEBUG_STUBS_ENABLE
OpenOCD debug stubs
Found in: Component config > ESP32S2-specific
Debug stubs are used by OpenOCD to execute pre-compiled onboard code which does some useful
debugging, e.g. GCOV data dump.
Default value:
•“COMPILER_OPTIMIZATION_LEVEL_DEBUG”if CONFIG_ESP32S2_TRAX
CONFIG_ESP32S2_BROWNOUT_DET
Hardware brownout detect & reset
Found in: Component config > ESP32S2-specific
The ESP32-S2 has a built-in brownout detector which can detect if the voltage is lower than a specific
value. If this happens, it will reset the chip in order to prevent unintended behaviour.
Default value:
• Yes (enabled)
CONFIG_ESP32S2_BROWNOUT_DET_LVL_SEL
Brownout voltage level
Found in: Component config > ESP32S2-specific > CONFIG_ESP32S2_BROWNOUT_DET
The brownout detector will reset the chip when the supply voltage is approximately below this level.
Note that there may be some variation of brownout voltage level between each ESP3-S2 chip.
#The voltage levels here are estimates, more work needs to be done to figure out the exact voltages #of
the brownout threshold levels.
Available options:
• 2.44V (ESP32S2_BROWNOUT_DET_LVL_SEL_7)
• 2.56V (ESP32S2_BROWNOUT_DET_LVL_SEL_6)
• 2.67V (ESP32S2_BROWNOUT_DET_LVL_SEL_5)
• 2.84V (ESP32S2_BROWNOUT_DET_LVL_SEL_4)
• 2.98V (ESP32S2_BROWNOUT_DET_LVL_SEL_3)
• 3.19V (ESP32S2_BROWNOUT_DET_LVL_SEL_2)
• 3.30V (ESP32S2_BROWNOUT_DET_LVL_SEL_1)
CONFIG_ESP32S2_TIME_SYSCALL
Timers used for gettimeofday function
Found in: Component config > ESP32S2-specific
This setting defines which hardware timers are used to implement‘gettimeofday’and‘time’functions
in C library.
• If both high-resolution and RTC timers are used, timekeeping will continue in deep sleep. Time
will be reported at 1 microsecond resolution. This is the default, and the recommended option.
• If only high-resolution timer is used, gettimeofday will provide time at microsecond resolution.
Time will not be preserved when going into deep sleep mode.
• If only RTC timer is used, timekeeping will continue in deep sleep, but time will be measured at
6.(6) microsecond resolution. Also the gettimeofday function itself may take longer to run.
• If no timers are used, gettimeofday and time functions return -1 and set errno to ENOSYS.
• When RTC is used for timekeeping, two RTC_STORE registers are used to keep time in deep
sleep mode.
Available options:
Espressif Systems 1104
Submit Document Feedback
Release v4.4