Command Line execution - Pins Tool

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

Table 1. Commands supported in Pins
Command name ​​Definition and parameters Description Restriction Example
​Enable tool ​-Enable ​Enables the tool if it is disabled in the current configuration ​Requires -HeadlessTool Pins ​-HeadlessTool Pins -Enable
​Import C files ​​-ImportC

​​Imports .c files into configuration

Importing is done after loading mex and before generating outputs

Requires ​​-HeadlessTool Pins ​​​-HeadlessTool Pins ​​-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.)

Code will be regenerated before export

Includes -ExportSrc,-ExportCSV, -ExportHTML and in framework -ExportMEX

Argument is expected as a folder name​

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

​Exports generated source files.

The code will be regenerated before export

Argument is expected as a folder name​

​Requires ​​-HeadlessTool​ Pins ​​​-HeadlessTool Pins ​​-ExportSrc C:/exports/src
​​Export CSV file ​​-ExportCSV

​Exports generated csv file.

The code will be regenerated before export

Argument is expected as a folder name​

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

​Exports generated html report file.

The code will be regenerated before export

Argument is expected as a folder name​

​Requires ​​-HeadlessTool​ Pins ​​-HeadlessTool Pins ​-ExportHTML C:/exports/html
​Export registers ​-ExportRegisters

​Exports registers tab into folder.

The code will be regenerated before export​

Argument is expected as a folder name​

​Requires ​​-HeadlessTool​ Pins ​​-HeadlessTool Pins ​-ExportRegisters C:/exports/regs
Examples:
  • Import configuration from C file and export full list of registers:
    eclipsec.exe -noSplash \
            -application com.nxp.swtools.framework.application \
            --launcher.ini /path/to/S32CT/installation/tools.ini \
            -HeadlessTool Pins \
            -MCU /processor/name \
            -SDKVersion /sdk/version/name \
            -ImportC /path/to/C/file \
            -ExportRegisters /path/to/file/where/to/export/registers

    OR

    eclipsec.exe -noSplash \
            -application com.nxp.swtools.framework.application \
            --launcher.ini C:\NXP\S32ConfigTools\tools.ini \
            -HeadlessTool Pins \
            -MCU S32S247TV \
            -SDKVersion s32sdk_s32s_rtm_100 \
            -ImportC C:\Input\pin_mux.c \
            -ExportRegisters 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 Pins \
            -Load /path/to/mex/file \
            -ExportSrc /path/where/to/save/generated/files