Skip to content

Commit 9e6c1be

Browse files
committed
TrustZone (disable for now). Issue with startup call with TZEN=1. The registers are still running from secure base.
1 parent 2d145bb commit 9e6c1be

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

config/examples/nrf5340.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ARCH?=ARM
2-
TZEN?=1
2+
TZEN?=0
33
TARGET?=nrf5340
44
SIGN?=ECC256
55
HASH?=SHA256

hal/nrf5340.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
#ifndef _HAL_NRF5340_H_
2323
#define _HAL_NRF5340_H_
2424

25+
#ifndef TZEN
26+
#define TZEN
27+
#endif
28+
2529
#define CPU_CLOCK 128000000UL /* 128MHz */
2630

2731
/* Assembly helpers */

hal/nrf5340.ld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
MEMORY
22
{
33
FLASH (rx) : ORIGIN = 0x00000000, LENGTH = @BOOTLOADER_PARTITION_SIZE@
4-
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 512K
4+
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 64K
55
}
66

77
SECTIONS

0 commit comments

Comments
 (0)