Skip to content

Commit

Permalink
Merge branch 'bugfix/bod_threshold_v5.2' into 'release/v5.2'
Browse files Browse the repository at this point in the history
fix(bod): Fix BOD threshold value on ESP32H2(backport v5.2)

See merge request espressif/esp-idf!28622
  • Loading branch information
suda-morris committed Feb 18, 2024
2 parents 9875bee + 6e31efc commit a65db35
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions components/esp_system/port/soc/esp32h2/Kconfig.system
Expand Up @@ -11,7 +11,7 @@ menu "Brownout Detector"
choice ESP_BROWNOUT_DET_LVL_SEL
prompt "Brownout voltage level"
depends on ESP_BROWNOUT_DET
default ESP_BROWNOUT_DET_LVL_SEL_7
default ESP_BROWNOUT_DET_LVL_SEL_0
help
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
Expand All @@ -20,21 +20,27 @@ menu "Brownout Detector"
#The voltage levels here are estimates, more work needs to be done to figure out the exact voltages
#of the brownout threshold levels.
config ESP_BROWNOUT_DET_LVL_SEL_7
bool "2.51V"
bool "2.94V"
config ESP_BROWNOUT_DET_LVL_SEL_6
bool "2.64V"
bool "2.88V"
config ESP_BROWNOUT_DET_LVL_SEL_5
bool "2.76V"
bool "2.83V"
config ESP_BROWNOUT_DET_LVL_SEL_4
bool "2.92V"
bool "2.78V"
config ESP_BROWNOUT_DET_LVL_SEL_3
bool "3.10V"
bool "2.73V"
config ESP_BROWNOUT_DET_LVL_SEL_2
bool "3.27V"
bool "2.67V"
config ESP_BROWNOUT_DET_LVL_SEL_1
bool "2.62V"
config ESP_BROWNOUT_DET_LVL_SEL_0
bool "2.57V"
endchoice

config ESP_BROWNOUT_DET_LVL
int
default 0 if ESP_BROWNOUT_DET_LVL_SEL_0
default 1 if ESP_BROWNOUT_DET_LVL_SEL_1
default 2 if ESP_BROWNOUT_DET_LVL_SEL_2
default 3 if ESP_BROWNOUT_DET_LVL_SEL_3
default 4 if ESP_BROWNOUT_DET_LVL_SEL_4
Expand Down

0 comments on commit a65db35

Please sign in to comment.