Relocates regions in the hex file to new address spaces. Relocates regions in the hex file to new address spaces. All segments within the specified region (from

start

to

start

+

size

) will be relocated to the new address (

dest

).

Inputs:

Name

Type

Optional/Required

Description

file

string

required

Input hex file containing the segment(s) to relocate.

regions

array

required

Regions to relocate. An array of objects, each containing

start

,

size

, and

dest

fields.

description

string

optional

Description for this field.

Outputs:

Name

Type

Optional/Required

Description

file

string

required

Path to the output hex file.

description

string

optional

Description for this field.

Example:

{
"schema-version": 1.0,
"content": [
{
"name": "hex-relocate command example",
"description": "Relocates regions in hex file to new address spaces",
"enabled": true,
"commands": [
{
"command": "hex-relocate",
"inputs": [
{
"file": "input.hex",
"regions": [
{
"start": "0x08000000",
"size": "0x04000000",
"dest": "0x60000000"
}
]
}
],
"outputs": [
{
"file": "output.hex"
}
]
}
]
}
]
}