Skip to main content
Associate
Oct 26, 2026 11:36 AM UTC
Question

STM32H533 Secure Boot Regression Failure

Hi Folks,

I was working on Secure Boot for the STM32H533, following the documented steps for the STiRoT boot path. I used the STiRoT boot path based on the STM32 documentation.

https://wiki.st.com/stm32mcu/wiki/Security:How_to_start_with_STM32CubeMX_STiRoT_Boot_path_on_STM32H57 

I am trying to bring the device back to the OPEN state, but I am facing an issue during the process. After providing the Key File Path and Certificate and selecting Full Regression permission, the Debug Authentication step fails.

16:42:50:983 : Start Debug Authentication Sequence
16:42:50:984 : SDMOpen                       :   765 : open       : SDM API v1.0
16:42:50:985 : SDMOpen                       :   766 : open       : SDM Library version v1.4.0
16:42:50:986 : open_comms                    :   606 : open       : Asserting target reset
16:42:50:987 : open_comms                    :   614 : open       : Writing magic number
16:42:50:987 : open_comms                    :   678 : open       : De-asserting target reset
16:42:50:987 : open_comms                    :   699 : open       : No response from the target
16:42:50:988 : open_comms                    :   700 : open       : The target is unable to boot on RSS_DA or is in OPEN mode
16:42:50:988 : open_comms                    :   701 : open       : Failed to open communication with the target
16:43:09:778 : Start Debug Authentication Sequence
16:43:09:779 : SDMOpen                       :   765 : open       : SDM API v1.0
16:43:09:779 : SDMOpen                       :   766 : open       : SDM Library version v1.4.0
16:43:09:779 : open_comms                    :   606 : open       : Asserting target reset
16:43:09:779 : open_comms                    :   614 : open       : Writing magic number
16:43:09:779 : open_comms                    :   678 : open       : De-asserting target reset
16:43:09:780 : open_comms                    :   713 : open       : Communication with the target established successfully
16:43:09:780 : discovery: target ID.......................:0x478
16:43:09:780 : discovery: SoC ID..........................:0x00000000_32303639_30335110_0016005B
16:43:09:780 : discovery: SDA version.....................:1.2.0
16:43:09:780 : discovery: Vendor ID.......................:STMicroelectronics
16:43:09:780 : discovery: PSA lifecycle...................:ST_LIFECYCLE_IROT_PROVISIONED
16:43:09:781 : discovery: PSA auth version................:1.0
16:43:09:781 : discovery: ST HDPL1 status.................:0x00000001
16:43:09:782 : discovery: ST HDPL2 status.................:0xFFFFFFFF
16:43:09:782 : discovery: ST HDPL3 status.................:0xFFFFFFFF
16:43:09:782 : discovery: Token Formats...................:0x00000200
16:43:09:783 : discovery: Certificate Formats.............:0x00000201
16:43:09:783 : discovery: cryptosystems...................:Ecdsa-P256 SHA256
16:43:09:783 : discovery: ST provisioning integrity status:0xF5F5F5F5
16:43:09:783 : discovery: ST provisioning integrity status message:INVALID
16:43:09:783 : discovery: permission if authorized...........:Full Regression
16:43:09:783 : discovery: permission if authorized...........:To TZ Regression
16:43:09:784 : discovery: permission if authorized...........:Level 3 Intrusive Debug
16:43:09:785 : discovery: permission if authorized...........:Level 2 Intrusive Debug
16:43:09:786 : discovery: permission if authorized...........:Level 1 Intrusive Debug
16:43:09:786 : discovery: permission if authorized...........:Level 3 Intrusive Non Secure Debug
16:43:09:786 : discovery: permission if authorized...........:Level 2 Intrusive Non Secure Debug
16:43:09:786 : discovery: permission if authorized...........:Level 1 Intrusive Non Secure Debug

3 replies

Jocelyn RICARD
ST Employee
Oct 26, 2026 11:48 AM UTC

Hello ​@Elgin_Peru ,

as you can see in the trace:

16:43:09:783 : discovery: cryptosystems...................:Ecdsa-P256 SHA256
16:43:09:783 : discovery: ST provisioning integrity status:0xF5F5F5F5
16:43:09:783 : discovery: ST provisioning integrity status message:INVALID

the device does not contain the debug authentication key allowing the reopening of your device.

Integrity status means that either nothing was provisioned or wrong data was provisioned.

As your device is in iROT_Provisioned state, you have no way to connect to the device to reopen it.

Unfortunately this means device is bricked.

When first testing things I would recommend staying in OPEN state.

Closing the device should be done when have already understood how things work.

For instance, you should be able to check that DA_Config.obk was provisioned in the obkey_provisioning.log file:

Something like:

Secure Data Provisioning Start. OBK Input file : ./../DA/Binary/DA_Config.obk
ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ 100%OBKey Provisioned successfully

Best regards

Jocelyn

Associate
Nov 3, 2026 5:41 AM UTC

Hi ​@Jocelyn RICARD , thanks, and sorry for the late reply.

Yes, you are correct. I had missed this point in the DOC.

I followed the same steps on another custom-made STM32H533 board that we use for our application, and it showed the expected 0xEAEAEAEA integrity status.

However, when I try to run the regression script on this board, after the board is successfully discovered, it fails with the following message:

      -------------------------------------------------------------------
                       STM32CubeProgrammer v2.23.0
      -------------------------------------------------------------------


Start Debug Authentication Sequence

Open SDM Lib
SDMOpen                       :   765 : open       : SDM API v1.0

SDMOpen                       :   766 : open       : SDM Library version v1.4.0

open_comms                    :   606 : open       : Asserting target reset

open_comms                    :   614 : open       : Writing magic number

open_comms                    :   678 : open       : De-asserting target reset

open_comms                    :   699 : open       : No response from the target

open_comms                    :   700 : open       : The target is unable to boot on RSS_DA or is in OPEN mode

open_comms                    :   701 : open       : Failed to open communication with the target

Reboot the board or Reset it again by giving gnd it shows,

 

      -------------------------------------------------------------------
                       STM32CubeProgrammer v2.23.0
      -------------------------------------------------------------------


Start Debug Authentication Sequence

Open SDM Lib
SDMOpen                       :   765 : open       : SDM API v1.0

SDMOpen                       :   766 : open       : SDM Library version v1.4.0

open_comms                    :   606 : open       : Asserting target reset

open_comms                    :   614 : open       : Writing magic number

open_comms                    :   678 : open       : De-asserting target reset

open_comms                    :   713 : open       : Communication with the target established successfully

response_packet_lock
response_packet_lock
discovery: target ID.......................:0x478
discovery: SoC ID..........................:0x00000000_32303639_30335110_00160046
discovery: SDA version.....................:1.2.0
discovery: Vendor ID.......................:STMicroelectronics
discovery: PSA lifecycle...................:ST_LIFECYCLE_IROT_PROVISIONED
discovery: PSA auth version................:1.0
discovery: ST HDPL1 status.................:0x00002717
discovery: ST HDPL2 status.................:0xFFFFFFFF
discovery: ST HDPL3 status.................:0xFFFFFFFF
discovery: Token Formats...................:0x00000200
discovery: Certificate Formats.............:0x00000201
discovery: cryptosystems...................:Ecdsa-P256 SHA256
discovery: ST provisioning integrity status:0xEAEAEAEA
discovery: ST provisioning integrity status message:VALID
discovery: permission if authorized...........:(a/14) ==> Full Regression
discovery: permission if authorized...........:(b/12) ==> To TZ Regression
discovery: permission if authorized...........:(c/6) ==> Level 3 Intrusive Debug
discovery: permission if authorized...........:(d/5) ==> Level 2 Intrusive Debug
discovery: permission if authorized...........:(e/4) ==> Level 1 Intrusive Debug
discovery: permission if authorized...........:(f/2) ==> Level 3 Intrusive Non Secure Debug
discovery: permission if authorized...........:(g/1) ==> Level 2 Intrusive Non Secure Debug
discovery: permission if authorized...........:(h/0) ==> Level 1 Intrusive Non Secure Debug
To select multiple permission/actions:
    Using numerical values: List the needed bit numbers, separated by commas without spaces.
    Using symbolic letters: List the needed letters by concatenating them without separators.

After this single script runs it fails in next script again while executing.

Jocelyn RICARD
ST Employee
Nov 4, 2026 6:22 PM UTC

Hello ​@Elgin_Peru ,

it looks like you are launching the script dbg_auth 

Here you need to select “a” for full regression.

If it does not work, please provide full trace of what you are doing. Here I miss lots of details.

Best regards

Jocelyn