STiRoT execution status
STiRoT is executed as a black box, but there is a way to verify the steps that have been executed and in case of an issue where the STiRoT execution has stopped.
For each HDPL OBKeys, there are four bytes reserved for the status log. This information can be extracted using the debug Authentication discovery command (refer to AN6007_generalinformation.html#id_62441__p_x5v_rzn_4yb for more information).
| Executed step | Status coding | Description |
|---|---|---|
| STIROT_INIT_DONE | 0x00000001UL | Device initialization done. STiRoT bootpath selected. STiRoT executed. |
| STIROT_CONFIG_DONE | 0x00000002UL | STiRoT configuration according to STiRoT_Config.obk is verified to be correct in OBKeys HDPL1. |
| STIROT_SECURITY_DONE | 0x00000004UL | Security activated. OBKeys STiRoT configuration verified to be correct. |
|
STIROT_SLOT_PRIMARY_1 | 0x00000010UL | Authenticity and integrity verified for the user application firmware image in the execution slot. |
|
STIROT_SLOT_PRIMARY_2 | 0x00000020UL | Authenticity and integrity verified for the data image in the HDPL2 OBKeys secure storage. |
| STIROT_SLOT_SECONDARY_1_VALID | 0x00000040UL | Authenticity and integrity verified for the user application firmware image in the download slot. |
| STIROT_SLOT_SECONDARY_2_VALID | 0x00000080UL | Authenticity and integrity verified for the data image in the download slot. |
| STIROT_PARSING_DONE | 0x00000100UL | Slots parsing done. |
| STIROT_INSTALLATION_DONE | 0x00000200UL | Image(s) in the download slot (one or two images depending on config) are installed. |
| STIROT_VALIDATION_DONE | 0x00000400UL | Execution slots analysis completed to verify which image is valid (integrity and authenticity). |
| STIROT_JUMP_BL | 0x00001000UL | At least one image is not valid -> bootloader execution. |
| STIROT_JUMP_APPLI | 0x00002000UL | All images (one or two depending on config) are valid -> application execution. |
| STIROT_NOJUMP | 0x00004000UL | At least one image is not valid, but bootloader execution is not allowed (option defined in STiRoT_Config.xml). |