Skip to main content
Visitor
August 3, 2026
Question

Need OEMiROT example on STM32C5 controller with STM32Cube IDE and STM32 CubeMX setting

  • August 3, 2026
  • 1 reply
  • 10 views

I am following this link for OEMiROT example with STM32C5 : https://wiki.st.com/stm32mcu/wiki/Security:How_to_start_with_OEMiRoT_on_STM32C5

 

But this example and steps are with IAR embedded workbench and Open-CMSIS.

I need example and configuration with STM32Cube IDE to achieve OEMiROT with STM32C5 series. Let me know if any hint or example already provided

1 reply

ST Employee
August 3, 2026

Hello ​@arpit.shah1 ,

 

For STM32CubeIDE, use the Open-CMSIS variant of the OEMiRoT example (NUCLEO-C562RE/open-cmsis). 
The overall OEMiRoT process stays the same as in the wiki (provisioning, build OEMiRoT, build Appli, generate signed/encrypted images, then program/provision).  
What changes vs EWARM is mainly the build integration:

1. OEMiRoT project: pre-build runs project_oemirot.py prebuild.  
2. Appli project: pre-build runs project_appli.py prebuild, and post-build runs project_appli.py postbuild (image generation).  
3. Build order: OEMiRoT first, then Appli (Release).  
4. Then run provisioning.py to program OB + binaries.

The prebuild/postbuild commands for CubeIDE: 

# OEMiRoT prebuild
python ./../../../oemirot/project_oemirot.py prebuild --compiler AC6

# Appli prebuild
python ./../../../appli/project_appli.py prebuild --compiler AC6

# Appli postbuild
python ./../../../appli/project_appli.py postbuild

To know how to import the Open-CMSIS project in the STM32CubeIDE please refer to this link.

Kind regards, 

DHIF Khaled

"Please mark my answer as best by clicking on the “Accept as solution"" button if it fully answered your question. This will help other users find this solution faster.​"