2024-10-15 03:02 AM
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
2024-10-15 11:08 AM
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
2024-10-16 02:52 AM
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.
Regards,
Shafi