Skip to content

Commit 7426337

Browse files
authored
Merge pull request #84 from zephyrproject-rtos/fix_u5_ns_limit
cherry-pick: platform: stm: b_u585i_iot02a: Increase flash non secure access.
2 parents 5503c15 + 6b8f860 commit 7426337

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)