Skip to content

Commit c630c68

Browse files
etienne-lmsAnton-TF
authored andcommitted
platform: stm: stm32wba65xx: enable non-secure access for SoC user OTPs
Enable non-secure accesses the SoC Users OTPs on stm32wba65xx targets. TF-M does not use the SoC OTPs to store any secrets hence make them available to the non-secure world. Change-Id: I6c492c431eeaa79c0dc55f2000e3dc28cee239c2 Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
1 parent 2e6b85b commit c630c68

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

  • platform/ext/target/stm/common/stm32wbaxx/secure

platform/ext/target/stm/common/stm32wbaxx/secure/target_cfg.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ const struct memory_region_limits memory_regions =
7575
#define TFM_NS_REGION_VENEER 3
7676
#define TFM_NS_REGION_PERIPH_1 4
7777
#define TFM_NS_REGION_PERIPH_2 5
78+
#define TFM_NS_REGION_PERIPH_3 6
7879

7980
/* Define Peripherals NS address range for the platform */
8081
#define PERIPHERALS_BASE_NS_START (PERIPH_BASE_NS)
@@ -121,6 +122,13 @@ const struct sau_cfg_t sau_init_cfg[] = {
121122
(PACKAGE_BASE + 0xfff),
122123
TFM_FALSE,
123124
},
125+
/* Configure the peripherals space 3 to access package information */
126+
{
127+
TFM_NS_REGION_PERIPH_3,
128+
FLASH_OTP_BASE,
129+
(FLASH_OTP_BASE + FLASH_OTP_SIZE - 1),
130+
TFM_FALSE,
131+
},
124132
};
125133
#ifdef TFM_DEV_MODE
126134
static __IO int once=0;

0 commit comments

Comments
 (0)