Skip to main content
Visitor II
April 10, 2026
Question

About OEMiROT_Appli_TrustZone for H563ZIT6 SBSFU

  • April 10, 2026
  • 1 reply
  • 127 views

Hi,

I use OEMiROT_Appli_TrustZone +OEMiROT_Boot to do some change in order to migrate to my project.

Version: STM32Cube_FW_H5_V1.5.0

1.i change the secure image and non secure image size in flash_layout.h from OEMiROT_Boot.

#define FLASH_S_PARTITION_SIZE (0x20000) /* 128KB for S partition */
#if defined(DEVICE_1M_FLASH_ENABLE)
#define FLASH_NS_PARTITION_SIZE (0x30000) /* 192 KB for NS partition */
#else
#define FLASH_NS_PARTITION_SIZE (0x60000) /* 384 KB for NS partition */

​2.then rebuild the OEMiROT_Boot.

it will autocratically change the ld file and image.xls size of OEMiROT_Appli_TrustZone.

3.rebuild OEMiROT_Appli_TrustZone secure ap and non secure app

4.execute STM32Cube_FW_H5_V1.5.0\Projects\NUCLEO-H563ZI\ROT_Provisioning\OEMiROT\provisioning.bat OK

5.reconnet the board with UART . it shows the error as follow:.

INF] TAMPER Activated

[INF] BANK 1 secure flash 0, 27] : OB [0, 14]

[ERR] Unexpected value for secure flash protection

1 reply

Jocelyn RICARD
ST Employee
April 30, 2026

Hello @hongjin ,

in your environment, the postbuild updates .sh scripts and not .bat scripts

This explains why configuration is not aligned.

There is a test at beginning of postbuild.sh to check if you are running on windows and then launch the postbuild.bat that will update .bat scripts.

But it may be possible that this test does not work on your configuration

Test is this one: echo ${OS} | grep -i -e windows -e mingw

Best regards

Jocelyn

Associate III
June 30, 2026

Hi ​@Jocelyn RICARD,

 

There is a test at beginning of postbuild.sh to check if you are running on windows and then launch the postbuild.bat that will update .bat scripts.

 

I think this was added in STM32CubeH5 1.6.0.

@hongjin says he is using 1.5.0 and there the file won’t be updated but this is not so obvious to the devloper. I ran into the exact same problem with 1.4.0, see OEMiRoT on STM32H573 & 563: provisioning.bat not updated when using STM32CubeIDE | Community

So I think ​@hongjin needs to update to 1.6.0.

Disclaimer: I have not tested 1.6.0 myself regarding this since we moved away from developing on Windows.

    Best regards, Jesper