Commit 54fa6f30 authored by Erwan Gouriou's avatar Erwan Gouriou Committed by Carles Cufi
Browse files

soc: stm32: Enable Debug in stop mode when ZTEST is used

Force STM32_ENABLE_DEBUG_SLEEP_STOP option when running tests.
This option enables Debug in Sleep/stop states and disables it when
disabled (default state).

When disabled, it may be impossible to flash the device with runner
such as openocd. It's generally working using cubeprogrammer, but it might
fail as well with fault configuration.

Instead of fixing each test or breaking CI each time a new test is created
with CONFIG_PM=y, force this option to be enabled when ZTEST=y (as it was
already the case when DEBUG=y).

Signed-off-by: default avatarErwan Gouriou <erwan.gouriou@st.com>
parent b3f3d902
Loading
Loading
Loading
Loading
+1 −1
Changes for soc/arm/st_stm32/Kconfig: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@
config SOC_FAMILY_STM32
	bool
	select HAS_SEGGER_RTT if ZEPHYR_SEGGER_MODULE
	select STM32_ENABLE_DEBUG_SLEEP_STOP if DEBUG
	select STM32_ENABLE_DEBUG_SLEEP_STOP if DEBUG || ZTEST
	select BUILD_OUTPUT_HEX

if SOC_FAMILY_STM32