Skip to content

Commit 3ef7602

Browse files
ananglcarlescufi
authored andcommitted
[nrf noup] soc: Use DWT for null-pointer detection on nRF5340 net core
squash! [nrf noup] soc: nrf: Switch null-pointer detection option to MPU The MPU-based null-pointer dereference detection cannot be used on the network core in nRF5340 because of its flash base address and this causes the zephyr/tests/arch/arm/arm_interrupt test to fail. Use the DWT option instead for this core. Ref. NCSDK-11348 Signed-off-by: Andrzej Głąbek <[email protected]>
1 parent 1a4f35f commit 3ef7602

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

soc/arm/nordic_nrf/Kconfig.defconfig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ config GPIO
4343
depends on SPI
4444

4545
# Switch the default mechanism for null-pointer dereference detection from
46-
# DWT-based to MPU-based.
46+
# DWT-based to MPU-based, except for the network core on nRF5340 where the
47+
# MPU-based mechanism cannot be used.
4748
choice NULL_POINTER_EXCEPTION_DETECTION
49+
default NULL_POINTER_EXCEPTION_DETECTION_DWT if SOC_NRF5340_CPUNET
4850
default NULL_POINTER_EXCEPTION_DETECTION_MPU if TEST_ARM_CORTEX_M && !ARM_NONSECURE_FIRMWARE
4951
endchoice
5052

0 commit comments

Comments
 (0)