Command Line execution - Peripherals Tool

This section describes the Command Line Interface (CLI) commands supported by the Peripherals Tool.

Table 1. Commands supported in Peripherals Tool
Command name Definition and parameters Description Restriction Example
Enable tool -Enable

Enables the tool if it is disabled in the current configuration

​Requires -HeadlessTool Peripherals -HeadlessTool Peripherals -Enable

Import C files

-ImportC

Imports .c files into configuration

Importing is done after loading mex and before generating outputs

Requires -HeadlessTool Peripherals -HeadlessTool Peripherals -ImportC C:/imports/file1.c C:/imports/file2.c

​​Export all generated files

(to simplify all exports commands to one command)

​​-ExportAll

​Exports generated files (with source code etc.)

The code will be regenerated before export

Includes -ExportSrc, -ExportHTML and in framework -ExportMEX

Argument is expected to be a folder

​Requires ​​-HeadlessTool​ Peripherals -HeadlessTool​ Peripherals ​-ExportAll C:/exports/generated
​​Export Source fil​es ​-ExportSrc​

Exports generated source files

The code will be regenerated before export

Argument is expected to be a folder

​Requires ​​-HeadlessTool​ Peripherals ​​​-HeadlessTool​ Peripherals -ExportSrc C:/exports/src​
Export HTML report file -ExportHTML

Exports generated html report file

The code will be regenerated before export

Argument is expected to be a folder

Requires -HeadlessTool Peripherals -HeadlessTool Peripherals -ExportHTML C:/exports/html
Examples:
  • Generate code and export configuration in .mex file and HTML format:
    eclipsec.exe -noSplash \
            -application com.nxp.swtools.framework.application \
            --launcher.ini /path/to/S32CT/installation/tools.ini \
            -HeadlessTool Peripherals \
            -MCU /processor/name \
            -SDKVersion /sdk/version/name \
            -ExportMEX /path/where/to/export/file \
            -ExportHTML /path/where/to/export/file

    OR

    eclipsec.exe -noSplash \
            -application com.nxp.swtools.framework.application \
            --launcher.ini C:\NXP\S32ConfigTools\tools.ini \
            -HeadlessTool Peripherals \
            -MCU S32S247TV \
            -SDKVersion s32sdk_s32s_rtm_100 \
            -ExportMEX C:\Output \
            -ExportHTML C:\Output
  • Import configuration from existing .mex file and generate code:
    eclipsec.exe -noSplash \
            -application com.nxp.swtools.framework.application \
            --launcher.ini /path/to/S32CT/installation/tools.ini \
            -HeadlessTool Peripherals \
            -Load /path/to/mex/file \
            -ExportSrc /path/where/to/export/generated/files