Skip to content

Commit 847f1f1

Browse files
committed
Fix incorrectly mapped SAU for NS-RAM
1 parent 224d0ea commit 847f1f1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

hal/stm32_tz.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,8 @@ void hal_tz_sau_init(void)
278278
sau_init_region(1, WOLFBOOT_PARTITION_BOOT_ADDRESS,
279279
WOLFBOOT_PARTITION_BOOT_ADDRESS + WOLFBOOT_PARTITION_SIZE - 1, 0);
280280

281-
/* Non-secure RAM region in SRAM1/SRAM2 (STM32L5x2: 0x2000_0000..0x2003_FFFF) */
282-
sau_init_region(2, 0x20000000, 0x2003FFFF, 0);
281+
/* Non-secure RAM region */
282+
sau_init_region(2, 0x20050000, 0x2008FFFF, 0);
283283

284284
/* Non-secure: internal peripherals */
285285
sau_init_region(3, 0x40000000, 0x4FFFFFFF, 0);

0 commit comments

Comments
 (0)