Skip to main content
jackalope
Associate
Feb 18, 2026 11:38 PM UTC
Question

Enabling TrustZone with an existing project / ioc file

I see only one other answer to this question, here: Solved: TrustZone Enable afterwards - STMicroelectronics Community

However, others are not answered. Can you confirm that there is a solid reason why the TrustZone cannot be enabled after the project has been created? Does it scramble to ioc file? Was this an issue with previous versions of CubeMX and perhaps no longer an issue? 

Core: M33

2 replies

Jocelyn RICARD
ST Employee
Feb 24, 2026 10:20 AM UTC

Hello @jackalope ,

I don't see any way how you can do this using STM32CubeMX interface.

What I would do is create the new TrustZone Project from scratch, open also old project and update.

Another way could be to keep your non secure project as it is, create a new TrustZone enabled project to generate only the secure part.

Best regards

Jocelyn

jackalope
jackalopeAuthor
Associate
Mar 6, 2026 1:52 AM UTC

I've come to the same conclusion and trying to decide which direction to go. I would assume this is a common and that others have started a project and later given a new requirement for TrustZone. With that said, surely there's some literature or documentation regarding this migration, is there not?