From 9e6c1beadcc76f12da7ef8d5736981d7fc542a0c Mon Sep 17 00:00:00 2001 From: David Garske Date: Mon, 9 Sep 2024 11:53:03 -0700 Subject: [PATCH] TrustZone (disable for now). Issue with startup call with TZEN=1. The registers are still running from secure base. --- config/examples/nrf5340.config | 2 +- hal/nrf5340.h | 4 ++++ hal/nrf5340.ld | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/config/examples/nrf5340.config b/config/examples/nrf5340.config index 03402274b..fda5763bf 100644 --- a/config/examples/nrf5340.config +++ b/config/examples/nrf5340.config @@ -1,5 +1,5 @@ ARCH?=ARM -TZEN?=1 +TZEN?=0 TARGET?=nrf5340 SIGN?=ECC256 HASH?=SHA256 diff --git a/hal/nrf5340.h b/hal/nrf5340.h index 30ef8ad92..49e6a86c5 100644 --- a/hal/nrf5340.h +++ b/hal/nrf5340.h @@ -22,6 +22,10 @@ #ifndef _HAL_NRF5340_H_ #define _HAL_NRF5340_H_ +#ifndef TZEN +#define TZEN +#endif + #define CPU_CLOCK 128000000UL /* 128MHz */ /* Assembly helpers */ diff --git a/hal/nrf5340.ld b/hal/nrf5340.ld index 5aff266c3..ac56d3a6d 100644 --- a/hal/nrf5340.ld +++ b/hal/nrf5340.ld @@ -1,7 +1,7 @@ MEMORY { FLASH (rx) : ORIGIN = 0x00000000, LENGTH = @BOOTLOADER_PARTITION_SIZE@ - RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 512K + RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 64K } SECTIONS