AN6007 ยท Application noteGetting started with STiRoT (ST immutable Root of Trust) for STM32H5 MCUs
Download .pdfOpen in the full document

Code init image XML file

Code init image XML file

Table 11. Firmware init image generation
ParameterUpdatableDescription
Authentication keyAutomaticPrivate key inherited from STiRoT_Config.xml file.
Encryption keyAutomatic

Public key inherited from STiRoT_Config.xml file.

This parameter can be disabled (adding <enable> property to 0) in order to generate a nonencrypted image

EndiannessNoLittle endian.
Firmware area sizeAutomaticFirmware slot size information inherited from STiRoT_Config.xml file.
Header sizeNo0x400 bytes.
Padding headerNoPadding the header with 0xFF to fulfill the 0x400 bytes.
Write optionNoSTiRoT implement the overwrite installation method.
VersionYesx.y.z firmware image version.
Security counterYesSecurity counter value on which the antirollback feature is relying. It can be set to 'auto' to align the image security counter to image version or it can be set manually to a 32-bits value. The antirollback feature is disabled if the security counter value remains unchanged at each version of the image.
AlignNo16-bytes alignment
Firmware download area offsetAutomaticUsed to generate .hex binary file format including the destination address. This parameter is inherited from the STiRoT_Config.xml file with the addition of 0x8000000.
Firmware binary input fileAutomaticLocation of the firmware binary file. This parameter is updated during the provisioning process based on info from the env.bat file.
Image output fileYesLocation of the signed image generated. If changed, provisioning scripts must be updated accordingly.

Code image XML file

Table 12. Firmware image generation
ParameterUpdatableDescription
Authentication keyAutomaticPrivate key inherited from STiRoT_Config.xml file.
Encryption keyAutomatic

Public key inherited from STiRoT_Config.xml file.

This parameter can be disabled (adding <enable> property to 0) in order to generate a nonencrypted image

Image magicNoMagic value identifying a firmware code image.
EndiannessNoLittle endian.
PaddingNo

Add an installation magic value at the end of the image to trigger image installation.

Padding with 0xFF when required.

Firmware area sizeAutomaticFirmware slot size information inherited from STiRoT_Config.xml file.
Header sizeNo0x400 bytes.
Padding headerNoPadding the header with 0xFF to fulfil the 0x400 bytes.
Dependency with data imageYesDependency with a specific data image identified with its version. This parameter can be removed by setting the <enable> property to 1.
Write optionNoSTiRoT implement the overwrite installation method.
VersionYesx.y.z firmware image version.
Security counterYesSecurity counter value on which the antirollback feature is relying. It can be set to 'auto' to align the image security counter to image version or it can be set manually to a 32-bits value. The antirollback feature is disabled if the security counter value remains unchanged at each version of the image.
AlignNo16-bytes alignment
Firmware download area offsetAutomaticUsed to generate .hex binary file format including the destination address. This parameter is inherited from the STiRoT_Config.xml file with the addition of 0x8000000.
Firmware binary input fileAutomaticLocation of the firmware binary file. This parameter is updated during the provisioning process based on info from the env.bat file.
Image output fileYesLocation of the signed and encrypted image generated. If changed, provisioning scripts must be updated accordingly.

Data init image XML file

Table 13. Data init image generation
ParameterUpdatableDescription
Authentication keyAutomaticPrivate key inherited from the STiRoT_Config.xml file.
Encryption keyAutomatic

Public key inherited from the STiRoT_Config.xml file.

This parameter can be disabled (adding <enable> property to 0) in order to generate a nonencrypted image

EndiannessNoLittle endian.
Data download slot sizeNoData download slot size information inherited from the STiRoT_Config.xml file.
Header SizeNo0x400 bytes.
Padding HeaderNoPadding the header with 0xFF to fulfill the 0x400 bytes.
Write optionNoSTiRoT implement the overwrite installation method.
VersionYesx.y.z data image version.
Security counterYesSecurity counter value on which the antirollback feature is relying. It can be set to 'auto' to align the image security counter to image version or it can be set manually to a 32-bits value. The antirollback feature is disabled if the security counter value remains unchanged at each version of the image.
AlignNo16-bytes alignment.
Data download area offsetAutomaticUsed to generate .hex binary file format including the destination address. This parameter is inherited from the STiRoT_Config.xml file with the addition of 0x8000000.
Data binary input fileAutomaticLocation of the data binary file. This parameter is updated during the provisioning process based on information from the env.bat file.
Image output fileYesLocation of the signed image generated. If changed, provisioning scripts must be updated accordingly.

Data image XML file

Table 14. Data image generation
ParameterUpdatableDescription
Authentication keyAutomaticPrivate key inherited from the STiRoT_Config.xml file.
Encryption keyAutomatic

Public key inherited from the STiRoT_Config.xml file.

This parameter can be disabled (adding <enable> property to 0) in order to generate a nonencrypted image

Image magicNoMagic value identifying a data image.
EndiannessNoLittle endian.
PaddingNo

Add an installation magic value at the end of the image to trigger image installation.

Padding with 0xFF when required.

Data download slot sizeNoData download slot size information inherited from the STiRoT_Config.xml file.
Header SizeNo0x400 bytes.
Padding HeaderNoPadding the header with 0xFF to fulfill the 0x400 bytes.
Dependency with firmware imageYesDependency with a specific firmware image identified with its version. This parameter can be removed by setting the <enable> property to 1.
Write optionNoSTiRoT implement the overwrite installation method.
VersionYesx.y.z data image version.
Security counterYesSecurity counter value on which the antirollback feature is relying. It can be set to 'auto' to align the image security counter to image version or it can be set manually to a 32-bits value. The antirollback feature is disabled if the security counter value remains unchanged at each version of the image.
AlignNo16-bytes alignment.
Data download area offsetAutomaticUsed to generate .hex binary file format including the destination address. This parameter is inherited from the STiRoT_Config.xml file with the addition of 0x8000000.
Data binary input fileAutomaticLocation of the data binary file. This parameter is updated during the provisioning process based on information from the env.bat file.
Image output fileYesLocation of the signed and encrypted image generated. If changed, provisioning scripts must be updated accordingly.