1@startuml 2skinparam ParticipantPadding 10 3skinparam BoxPadding 10 4box RSE 5participant RSE_BL1_1 6participant RSE_BL1_2 7participant RSE_BL2 8participant RSE_S 9endbox 10box SCP 11participant SCP_BL1 12endbox 13box AP 14participant AP_BL1 15participant AP_BL2 16participant AP_BL31 17endbox 18 19== RSE Boot phase == 20-> RSE_BL1_1: Reset 21Rnote over RSE_BL1_1: ROM code, XIP 22Rnote over RSE_BL1_2: OTP code, XIP 23Rnote over RSE_BL2, AP_BL31: Stored in flash, loaded and executed in RAM 24activate RSE_BL1_1 #Green 25RSE_BL1_1 -->> RSE_BL1_2: Validate, measure 26Rnote over RSE_BL1_1: BL1_2 measurement\n\ saved to a shared buffer 27RSE_BL1_1 -> RSE_BL1_2: Pass execution 28deactivate RSE_BL1_1 29activate RSE_BL1_2 #Green 30RSE_BL1_2 -->> RSE_BL2: Validate, measure, load 31Rnote over RSE_BL1_2: RSE_BL2 measurement\n\ saved to a shared buffer 32RSE_BL1_2 -> RSE_BL2: Pass execution 33deactivate RSE_BL1_2 34activate RSE_BL2 #Green 35RSE_BL2 -->> RSE_S: Validate, measure, load 36RSE_BL2 -->> SCP_BL1: Validate, measure, load 37Rnote over RSE_BL2: RSE_S and SCP_BL1\n\ measurements saved\n\ to a shared buffer 38RSE_BL2 -> SCP_BL1: Release from reset 39activate SCP_BL1 #Green 40Rnote over RSE_BL2, SCP_BL1: MHU init between RSE and SCP 41Rnote over SCP_BL1: Configure memory 42Rnote over RSE_BL2: Waits for SCP 43SCP_BL1 --> RSE_BL2: Done 44RSE_BL2 -->> AP_BL1: Validate, measure, load 45Rnote over RSE_BL2: AP_BL1 measurement\n\ saved to a shared buffer 46RSE_BL2 -> AP_BL1: Release from reset 47activate AP_BL1 #Green 48RSE_BL2 -> RSE_S: Pass execution 49deactivate RSE_BL2 50activate RSE_S #Green 51Rnote over RSE_S: Measurements read from\n\ shared buffer and saved by\n\ 52Measured Boot service to\n\ measurement slots. 53 54== RSE Runtime / AP Boot phase == 55Rnote over RSE_S, AP_BL1: MHU init between RSE and AP 56Rnote over AP_BL1: Measure and load:\n\ FW_CONFIG\n\ TB_FW_CONFIG 57AP_BL1 -> RSE_S: Extend measurement 58Rnote over RSE_S: Measured Boot:\n\ store measurement 59AP_BL1 -->> AP_BL2: Validate, measure,load 60AP_BL1 -> RSE_S: Extend measurement 61Rnote over RSE_S: Measured Boot:\n\ store measurement 62AP_BL1 -> AP_BL2: Pass execution 63deactivate AP_BL1 64activate AP_BL2 #Green 65Rnote over AP_BL2: Measure and load:\n\ HW_CONFIG 66AP_BL2 -> RSE_S: Extend measurement 67Rnote over RSE_S: Measured Boot:\n\ store measurement 68AP_BL2 -->> AP_BL31: Validate, measure,load 69Rnote over AP_BL2: Measure and load:\n\ BL31 70AP_BL2 -> RSE_S: Extend measurement 71Rnote over RSE_S: Measured Boot:\n\ store measurement 72Rnote over AP_BL2: Measure and load:\n\ RMM 73AP_BL2 -> RSE_S: Extend measurement 74Rnote over RSE_S: Measured Boot:\n\ store measurement 75AP_BL2 -> AP_BL31: Pass execution 76deactivate AP_BL2 77activate AP_BL31 #Green 78== RSE / AP Runtime == 79@enduml 80