54fa6f30b8
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: Erwan Gouriou <erwan.gouriou@st.com>
30 lines
796 B
Plaintext
30 lines
796 B
Plaintext
# ST Microelectronics STM32 MCU line
|
|
|
|
# Copyright (c) 2016 Open-RnD Sp. z o.o.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config SOC_FAMILY_STM32
|
|
bool
|
|
select HAS_SEGGER_RTT if ZEPHYR_SEGGER_MODULE
|
|
select STM32_ENABLE_DEBUG_SLEEP_STOP if DEBUG || ZTEST
|
|
select BUILD_OUTPUT_HEX
|
|
|
|
if SOC_FAMILY_STM32
|
|
|
|
config SOC_FAMILY
|
|
string
|
|
default "st_stm32"
|
|
|
|
config STM32_ENABLE_DEBUG_SLEEP_STOP
|
|
bool "Allow debugger attach in stop/sleep Mode"
|
|
help
|
|
Some STM32 parts disable the DBGMCU in sleep/stop modes because
|
|
of power consumption. As a side-effects this prevents
|
|
debuggers from attaching w/o resetting the target. This
|
|
effectivly destroys the use-case of `west attach`. Also
|
|
SEGGER RTT and similar technologies need this.
|
|
|
|
source "soc/arm/st_stm32/*/Kconfig.soc"
|
|
|
|
endif # SOC_FAMILY_STM32
|