Use case 1: Shifting non-secure app to secure region and signing
There are two segments in the image. The first one is located in the secure memory region. The second one in the non-secure. The following JSON shows how to shift data from the non-secure memory region to secure memory region.
{ "schema-version": 1.0,
"content": [
{
"name" : "CM33_Secure_CM33_Non_Secure",
"description": "Use case 1: Shifting non-secure app to secure region and signing",
"enabled": true,
"commands": [
{ "command": "shift",
"inputs": [
{ "description": "CM33 Secure + CM33 Non-Secure application",
"file": "app-path/cm33s_cm33ns.hex",
"address" : "0x2201F000"
}
],
"outputs" : [
{ "description": "Application shifted to secure region",
"address" : "0x3201F000",
"file" : "out-path/cm33s_cm33ns_shifted.hex"
}
]
},
{
"command": "sign",
"inputs": [
{ "description": "Shifted CM33 Secure + CM33 Non-Secure application",
"file": "out-path/cm33s_cm33ns_shifted.hex"
}
],
"outputs" : [
{ "description": "Signed CM33 Secure + CM33 Non-Secure",
"signer-key" : "/key-path/signing_private_key.pem",
"format" : "ihex",
"file" : "out-path/cm33s_cm33ns_signed.hex",
"header-size": "0x400",
"fill-value": "0x00"
}
]
}
]
}
]
}