2025-01-15 04:16 AM
Hi,
I am trying to erase and write to stm32u545 flash.
The memory partition is such that, I am dividing each Flash bank 256kb into secure and non secure regions.
first 8 pages are secure and rest of the bank are non secure.
I am running my code from Bank 1 and experimenting on writing to secure and non secure sections in bank 2.
My code is running as secure code and I am able to write/erase to first 8 pages successfully.
When I try to erase 9th page [Non -Secure], I am encountering TZIC illegal access error.
I know that I am trying to access non secure page from secure, so what settings do I need to ensure that I can access it?
I have options bytes configured correctly based on my memorymap. SAU is disabled and TZEN =1.
Thanks,
Bharath