Skip to content

Commit 1734548

Browse files
mathieuchopstmnashif
authored andcommitted
soc: st: stm32: allow disabling ENABLE_DEBUG_SLEEP_STOP when DEBUG=y
Use an override-able 'default' for CONFIG_STM32_ENABLE_DEBUG_SLEEP_STOP rather than forcefully 'select'ing the symbol when CONFIG_DEBUG=y, as there are situations where one might want CONFIG_DEBUG=y without inhibiting low-power mode entry. Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
1 parent 99a8cf5 commit 1734548

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

soc/st/stm32/Kconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
config SOC_FAMILY_STM32
55
select HAS_SEGGER_RTT if ZEPHYR_SEGGER_MODULE
6-
select STM32_ENABLE_DEBUG_SLEEP_STOP if DEBUG || ZTEST
6+
select STM32_ENABLE_DEBUG_SLEEP_STOP if ZTEST
77
select BUILD_OUTPUT_HEX
88

99
if SOC_FAMILY_STM32
@@ -40,6 +40,7 @@ config STM32_BACKUP_SRAM_INIT_PRIORITY
4040

4141
config STM32_ENABLE_DEBUG_SLEEP_STOP
4242
bool "Allow debugger attach in stop/sleep Mode"
43+
default y if DEBUG
4344
help
4445
Some STM32 parts disable the DBGMCU in sleep/stop modes because
4546
of power consumption. As a side-effects this prevents

0 commit comments

Comments
 (0)