Skip to main content
Associate
Oct 7, 2026 3:29 PM UTC
Question

STM32H563 trustzone and FLASH linker size

Hello everyone,

I'd like to know if anyone has tried setting the size of the FLASH memory in a .ld file so that the unsafe zone is larger than the safe zone, for example, by changing the size of the unsafe zone .ld file to more than half the size of the flash memory and leaving the size of the safe zone .ld file at half the size of the flash memory.

1 reply

Bubbles
ST Employee
Nov 12, 2026 2:59 PM UTC

Hi ​@Anderson Santos ,

do you mean to have the S code and the NS code to overlap on some flash pages? That would not work. I suggest to put the exact same range to the ld file as you define using the secure watermark option bytes.

BR,

J

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.