cancel
Showing results for 
Search instead for 
Did you mean: 

Enable TrustZone without using STM32Programmer

Shaffi
Associate II

Hello,

I am working STM32u575 Nucleo board. I want to use secure flash to store secure data and to use it I need to enable TrusZone. Is there a way we can program option bytes with TZEN =1 without using STM32programmer?

Regards,

Shafi

2 REPLIES 2
Jocelyn RICARD
ST Employee

Hello @Shaffi ,

as said in other topic, you should be able to program TZEN option byte to 1 inside your code as any other option byte.

Best regards

Jocelyn

Hi Jocelyn,

I am following the procedure to program option byte described in the rm0456-stm32u5-series-armbased-32bit-mcus-stmicroelectronics.pdf  section 7.4.2, after TZEN bit is set to 1 and the OBL_LAUNCH bit is set in FLASH_NSCR the CPU hangs from there and it isn't executing further. If the board power cycle is done then we are able to access secure flash. Is there a way we can do it without doing the power cycle.

Shaffi_2-1729072281394.png

Regards,

Shafi