cancel
Showing results for 
Search instead for 
Did you mean: 

Write to flash memory with Trustzone actrive in STM32L5

simoBen47
Associate III

Hey evryone,

I can't write to memory flash when TZEN = 1 (e.g trustzone is active) , i hav no error return !

I call this fucntions from secure side :

  HAL_FLASH_Unlock();
 
  HAL_FLASH_Program(FLASH_TYPEPROGRAM_DOUBLEWORD, FlashAddr, FlashData);
 
  HAL_FLASH_Lock();

Thank you for your help guys

1 REPLY 1
Tilen MAJERLE
ST Employee

Before you can write (or program) flash, you will need to erase it.