2026-05-15 12:30 AM
Hi,
I am currently testing OEMiROT and I performed the following 3 tests.
(Overwrite mode enabled + separate Secure and Non-Secure applications)
How to start with OEMiRoT on STM32U3 - stm32mcu
Project:
Configuration:
#define MCUBOOT_OVERWRITE_ONLY
/* Defined: FW installation uses overwrite method.
Undefined: FW installation uses swap mode. */
#define MCUBOOT_APP_IMAGE_NUMBER 2
/* 1: S application only if FLASH_NS_PARTITION_SIZE = 0,
otherwise S and NS binaries assembled in one single image.
2: Two separated images for S and NS applications. */
#define MCUBOOT_S_DATA_IMAGE_NUMBER 0
#define MCUBOOT_NS_DATA_IMAGE_NUMBER 0This test works correctly.
(Swap mode enabled + separate Secure and Non-Secure applications)
Project:
/* #define MCUBOOT_OVERWRITE_ONLY */
/* Undefined: FW installation uses swap mode. */
#define MCUBOOT_APP_IMAGE_NUMBER 2
#define MCUBOOT_S_DATA_IMAGE_NUMBER 0
#define MCUBOOT_NS_DATA_IMAGE_NUMBER 0This test also works correctly.
(Swap mode enabled + Secure-only application / single image)
Project:
/* #define MCUBOOT_OVERWRITE_ONLY */
/* Undefined: FW installation uses swap mode. */
#define MCUBOOT_APP_IMAGE_NUMBER 1
/* Single image configuration */
#define MCUBOOT_S_DATA_IMAGE_NUMBER 0
#define MCUBOOT_NS_DATA_IMAGE_NUMBER 0In this case, the binary for the OEMiROT_Appli project is not generated.
Has anyone already tested the configuration with no separation between Secure and Non-Secure applications?
Any feedback or suggestions would be appreciated.
Thank you,
Marco
2026-05-15 1:17 AM
Hi,
small update regarding my previous post.
I am now able to generate the binary files correctly with the single-image configuration.
However, when I run provisioning.bat, I get the following error:
Error: File does not exist: oemirot_tz_app_init_sign.binThe issue is that inside the Binary directory the generated file has a different name:
oemirot_tz_s_app_init_sign.binSo it seems that the provisioning script is looking for:
while the generated file is:
Has anyone already encountered this issue with the single-image / Secure-only configuration?
Thank you.
Marco