soc: nrf: Enable default DWT null pointer exception detection

Default null pointer exception detection to the DWT solution
instead of MPU based solution.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
Erwan Gouriou 2021-03-08 21:20:09 +01:00 committed by Anas Nashif
commit 79ea590bef

View file

@ -42,4 +42,8 @@ config GPIO
default y default y
depends on SPI depends on SPI
choice CORTEX_M_DEBUG_NULL_POINTER_EXCEPTION_DETECTION
default CORTEX_M_DEBUG_NULL_POINTER_EXCEPTION_DETECTION_DWT if TEST_ARM_CORTEX_M && !ARM_NONSECURE_FIRMWARE && CPU_CORTEX_M_HAS_DWT
endchoice
endif # SOC_FAMILY_NRF endif # SOC_FAMILY_NRF