diff --git a/soc/st/stm32/common/CMakeLists.txt b/soc/st/stm32/common/CMakeLists.txt index 965200f1cfd4..6d97ebd9ac0f 100644 --- a/soc/st/stm32/common/CMakeLists.txt +++ b/soc/st/stm32/common/CMakeLists.txt @@ -26,3 +26,10 @@ endif() if (CONFIG_STM32_WKUP_PINS) zephyr_sources(stm32_wkup_pins.c) endif() + +if (CONFIG_PM AND CONFIG_STM32_ENABLE_DEBUG_SLEEP_STOP) + message(WARNING "\ +SoC Power Management (CONFIG_PM) enabled but the DBGMCU is still enabled \ +(CONFIG_STM32_ENABLE_DEBUG_SLEEP_STOP). The SoC will use more power than expected \ +in STOP modes due to internal oscillators that remain active.") +endif()