OEMiROT Swap Mode with Single Image (Secure Only) – Binary Not Generated
Hi,
I am currently testing OEMiROT and I performed the following 3 tests.
Test 1: Default example
(Overwrite mode enabled + separate Secure and Non-Secure applications)
How to start with OEMiRoT on STM32U3 - stm32mcu
Project:
- OEMiROT_Appli_TrustZone
- OEMiROT_Boot
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.
Test 2:
(Swap mode enabled + separate Secure and Non-Secure applications)
Project:
- OEMiROT_Appli_TrustZone
- OEMiROT_Boot
/* #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.
Test 3:
(Swap mode enabled + Secure-only application / single image)
Project:
- OEMiROT_Appli_Secure
- OEMiROT_Boot
/* #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