Command Line Execution - DCD Tool

This section describes the Command Line Interface (CLI) commands supported in the DCD Tool.

Table 1. Commands supported in DCD
Command name ​​Definition and parameters Description Restriction Example
​Import DCD binary image ​-ImportBin

Import the binary DCD image in the current configuration.

The path of the imported binary image is expected as argument.

​Requires -HeadlessTool DCD ​-HeadlessTool DCD -ImportBin C:/boot_images/dcdImg.bin
Export DCD image in binary format ​​-ExportBin

​​Export the DCD image in binary format.

Folder name is expected as argument.

Requires ​​-HeadlessTool DCD ​​​-HeadlessTool DCD -ExportBin C:/exports/generated​
​Export DCD image in C format ​-ExportC

​Export the DCD image in C format.

Folder name is expected as argument.

​Requires ​​-HeadlessTool​ DCD ​ ​-HeadlessTool DCD -ExportC C:/exports/generated

​​Export all generated files

(to simplify all export commands to one command)

​​-ExportAll

​​Export generated files (with source code etc.).

Code will be regenerated before export.

Includes -ExportBin,-ExportC and in framework -ExportMEX.

Folder name is expected as argument.​

​Requires ​​-HeadlessTool​ DCD ​​-HeadlessTool DCD ​-ExportAll C:/exports/generated
Examples:
  • Import DCD binary image and save it to C format:
    eclipsec.exe -noSplash \
            -application com.nxp.swtools.framework.application \
            --launcher.ini /path/to/S32DS/installation/eclipse/s32ds.ini \
            -HeadlessTool DCD \
            -MCU /processor/name \
            -SDKVersion /sdk/version/name \
            -ImportBin /path/to/dcd/binary \
            -ExportC /path/where/to/save/file

    OR

    eclipsec.exe -noSplash \
            -application com.nxp.swtools.framework.application \
            --launcher.ini C:\NXP\S32DesignStudio\eclipse\s32ds.ini \
            -HeadlessTool DCD \
            -MCU S32S247TV \
            -SDKVersion s32sdk_s32s_rtm_100 \
            -ImportBin C:\Input\dcd_image.bin \
            -ExportC C:\Output
  • Export all DCD binaries based on a .mex file:
    eclipsec.exe -noSplash \
            -application com.nxp.swtools.framework.application \
            --launcher.ini /path/to/S32DS/installation/eclipse/s32ds.ini \
            -HeadlessTool DCD \
            -Load /path/to/mex/file \
            -ExportAll /path/where/to/save/files