The MCUboot formatted image consists of a header, a payload, a protected TLV area, and a non-protected TLV area. A header, a payload, and a protected TLV are the data that must be signed. A non-protected TLV area must not be included in a signature. This command extracts a part of an image to be signed.

Inputs

Name

Type

Optional/Required

Description

file

string

required

Image with MCUboot metadata.

description

string

optional

Description for this field.

Outputs

Name

Type

Optional/Required

Description

file

string

required

Path where to save the image to be signed (bin).

description

string

optional

Description for this field.

Example

{    
"schema-version": 1.0,
"content": [
{
"name": "Extract-payload command example",
"description": "Adds a signature to the MCUboot formatted image",
"enabled": true,
"commands": [
{
"command": "extract-payload",
"inputs": [
{
"description": "Path to the input hex file",
"file": "./hexs/rram_1_meta.hex"
}
],
"outputs": [
{
"description": "Name of output file",
"file": "./hexs/extracted.bin"
}
]
}
]
}
]
}