zephyr/boards/arm/mps2_an521/Kconfig.defconfig
Ioannis Glaropoulos 1b22f6b8c8 arm: cortex_m: enable null-pointer exception detection in the tests
Enable the null-pointer dereferencing detection by default
throughout the test-suite. Explicitly disable this for the
gen_isr_table test which needs to perform vector table reads.
Disable null-pointer exception detection on qemu_cortex_m3
board, as DWT it is not emulated by QEMU on this platform.
Additionally, disable null-pointer exception detection on
mps2_an521 (QEMU target), as DWT is not present and the MPU
based solution won't work, since the target does not have
the area 0x0 - 0x400 mapped, but the QEMU still permits
read access.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2021-03-03 10:38:29 +01:00

51 lines
805 B
Plaintext

# Copyright (c) 2018-2019 Linaro Limited
# SPDX-License-Identifier: Apache-2.0
if BOARD_MPS2_AN521
# MPU-based null-pointer dereferencing detection cannot
# be applied as the (0x0 - 0x400) is unmapped but QEMU
# will still permit bus access.
choice CORTEX_M_DEBUG_NULL_POINTER_EXCEPTION_DETECTION
bool
default CORTEX_M_DEBUG_NULL_POINTER_EXCEPTION_DETECTION_NONE if QEMU_TARGET
endchoice
config BOARD
default "mps2_an521_nonsecure" if TRUSTED_EXECUTION_NONSECURE
default "mps2_an521"
if GPIO
config GPIO_CMSDK_AHB
default y
endif # GPIO
if SERIAL
config UART_CMSDK_APB
default y
config UART_INTERRUPT_DRIVEN
default y
endif # SERIAL
config WDOG_CMSDK_APB
default y
depends on WATCHDOG
config I2C_SBCON
default y
depends on I2C
if IPM
config IPM_MHU
default y
endif # IPM
endif