diff --git a/soc/st/stm32/common/soc_config.c b/soc/st/stm32/common/soc_config.c index 9275ce72bab..997ab607017 100644 --- a/soc/st/stm32/common/soc_config.c +++ b/soc/st/stm32/common/soc_config.c @@ -16,6 +16,15 @@ #include #include +#if CONFIG_PM + +#if !defined(CONFIG_DEBUG) && defined(CONFIG_STM32_ENABLE_DEBUG_SLEEP_STOP) +#warning "Running with PM=y and STM32_ENABLE_DEBUG_SLEEP_STOP=y, \ +this will result in increased power consumption during sleep." +#endif + +#endif /* CONFIG_PM */ + /** * @brief Perform SoC configuration at boot. *