Skip to content

Commit

Permalink
TrustZone (disable for now). Issue with startup call with TZEN=1. The…
Browse files Browse the repository at this point in the history
… registers are still running from secure base.
  • Loading branch information
dgarske committed Sep 10, 2024
1 parent 2d145bb commit 9e6c1be
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/examples/nrf5340.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARCH?=ARM
TZEN?=1
TZEN?=0
TARGET?=nrf5340
SIGN?=ECC256
HASH?=SHA256
Expand Down
4 changes: 4 additions & 0 deletions hal/nrf5340.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
#ifndef _HAL_NRF5340_H_
#define _HAL_NRF5340_H_

#ifndef TZEN
#define TZEN
#endif

#define CPU_CLOCK 128000000UL /* 128MHz */

/* Assembly helpers */
Expand Down
2 changes: 1 addition & 1 deletion hal/nrf5340.ld
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 9e6c1be

Please sign in to comment.