Skip to main content
Associate II
October 15, 2024
Question

Enable TrustZone without using STM32Programmer

  • October 15, 2024
  • 1 reply
  • 811 views

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

1 reply

Jocelyn RICARD
ST Employee
October 15, 2024

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

ShaffiAuthor
Associate II
October 16, 2024

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