Skip to content

Commit

Permalink
soc: nrf: Disable DWT NULL pointer detection by default
Browse files Browse the repository at this point in the history
Having DWT-based NULL-pointer detection enabled by default trips a lot
of users since it will make any debugging fail when enabled. Disable it
by default and let users enable it if they desire to.

Fixes zephyrproject-rtos#39216.

Signed-off-by: Carles Cufi <[email protected]>
  • Loading branch information
carlescufi committed Dec 20, 2021
1 parent fef2e30 commit 26d8113
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions soc/arm/nordic_nrf/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,4 @@ config GPIO
default y
depends on SPI

choice NULL_POINTER_EXCEPTION_DETECTION
default NULL_POINTER_EXCEPTION_DETECTION_DWT if TEST_ARM_CORTEX_M && !ARM_NONSECURE_FIRMWARE && CPU_CORTEX_M_HAS_DWT
endchoice

endif # SOC_FAMILY_NRF

0 comments on commit 26d8113

Please sign in to comment.