Use case 3: Signing hex containing EEPROM segment
There are two segments: the internal flash segment and the EEPROM segment. We need to sign the internal flash application only.
{
"schema-version": 1.0,
"content": [
{
"name" : "EEPROM",
"description": "Use case 2: Signing hex containing EEPROM segment",
"enabled": true,
"commands": [
{
"command": "hex-segment",
"inputs": [
{
"description": "Extract Flash segment",
"file": "app-path/ble_app_psoc64.hex",
"address" : "0x10000000"
}
],
"outputs" : [
{
"description": "Save Flash segment",
"format" : "ihex",
"file" : "out-path/flash.hex"
}
]
},
{
"command": "hex-segment",
"inputs": [
{
"description": "Extract EEPROM segment",
"file": "app-path/ble_app_psoc64.hex",
"address" : "0x14000000"
}
],
"outputs" : [
{
"description": "Save EEPROM segment",
"format" : "ihex",
"file" : "out-path/eeprom.hex"
}
]
},
{
"command": "sign",
"inputs": [
{
"description": "Signs Flash application",
"file": "out-path/flash.hex"
}
],
"outputs" : [
{
"description": "Signed Flash application",
"signer-key" : "/key-path/signing_private_key.pem",
"format" : "ihex",
"file" : "out-path/flash_signed.hex"
}
]
},
{
"command": "merge",
"inputs": [
{
"description": "Signed Flash segment",
"file": "out-path/flash_signed.hex"
},
{
"description": "Unsigned EEPROM segment",
"file": "out-path/eeprom.hex"
}
],
"outputs" : [
{
"description": "Combined signed Flash app and unsigned EEPROM",
"format" : "ihex",
"file" : "out-path/ble_app_psoc64_signed.hex"
}
]
}
]
}
]
}