Skip to content

Commit 6b8f860

Browse files
jamikeerwango
authored andcommitted
platform: stm: b_u585i_iot02a: Increase flash non secure access.
Since end of internal flash is not used by secure part, allow non secure application to use this area. Change-Id: I1cbe9e103ded3684d08f87e0840ca6fcff2438c0 Signed-off-by: Michel Jaouen <[email protected]> (cherry picked from 51d7d57)
1 parent 5503c15 commit 6b8f860

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ REGION_DECLARE(Image$$, TFM_UNPRIV_CODE, $$RO$$Base);
4646
REGION_DECLARE(Image$$, TFM_APP_RW_STACK_END, $$Base);
4747

4848
#define NON_SECURE_BASE (uint32_t) &REGION_NAME(Load$$LR$$, LR_NS_PARTITION, $$Base)
49-
#define NON_SECURE_LIMIT (uint32_t)(FLASH_BASE_NS + FLASH_AREA_3_OFFSET + FLASH_AREA_3_SIZE - 1)
49+
#define NON_SECURE_LIMIT (uint32_t)(FLASH_BASE_NS + FLASH_TOTAL_SIZE - 1)
5050
#define VENEER_BASE (uint32_t) &REGION_NAME(Load$$LR$$, LR_VENEER, $$Base)
5151
#define VENEER_LIMIT (uint32_t) &REGION_NAME(Load$$LR$$, LR_VENEER, $$Limit)
5252

0 commit comments

Comments
 (0)