summaryrefslogtreecommitdiff
path: root/hw/bsp/nrf/FreeRTOSConfig/FreeRTOSConfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'hw/bsp/nrf/FreeRTOSConfig/FreeRTOSConfig.h')
-rw-r--r--hw/bsp/nrf/FreeRTOSConfig/FreeRTOSConfig.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/bsp/nrf/FreeRTOSConfig/FreeRTOSConfig.h b/hw/bsp/nrf/FreeRTOSConfig/FreeRTOSConfig.h
index 0ddd536fb..b6395306f 100644
--- a/hw/bsp/nrf/FreeRTOSConfig/FreeRTOSConfig.h
+++ b/hw/bsp/nrf/FreeRTOSConfig/FreeRTOSConfig.h
@@ -53,6 +53,12 @@
#define configENABLE_TRUSTZONE 0
#define configMINIMAL_SECURE_STACK_SIZE (1024)
+/* nRF54 runs entirely in Secure mode (SAU present but no SPE bootloader).
+ * Tell FreeRTOS CM33 NTZ port to use Secure-compatible EXC_RETURN values. */
+#if defined(NRF54H20_XXAA) || defined(NRF54LM20A_ENGA_XXAA)
+#define configRUN_FREERTOS_SECURE_ONLY 1
+#endif
+
#define configUSE_PREEMPTION 1
#define configUSE_PORT_OPTIMISED_TASK_SELECTION 0
#define configCPU_CLOCK_HZ SystemCoreClock