2026-05-17 6:52 PM
I'm looking for a working example of how to program the OTP memory on the STM32H573.
I am looking to program with TrustZone enabled, from secure mode. I'm using STM32Cube_FW_H5_v1.4.0, and am not in a good position to move to v1.5.0. Any working example would do, using HAL, LL or direct register access.
Thanks in advance.
-Rob
2026-05-18 1:44 AM
Hello @rdl_42
Unfortunately, there is no example on STM32CubeH5 about programming OTP memory.
You can refer to the article How to program the OTP fuse bits in the STM32N6 as starting point.
2026-05-18 8:20 AM
Saket_Om,
Thanks for the response. That article appears target programming an external OTP, not the H573 on chip OTP that is part of the FLASH module. I don't think it applies to my situation.
Here is a direct first question: Should I be able to program the H573 onchip OTP with TrustZone enabled, from secure mode?
Thanks,
-Rob