Command-line execution - Clocks Tool
This section describes the Command Line Interface (CLI) commands supported by
the Clocks 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 Clocks | -HeadlessTool Clocks -Enable |
| Import C files | -ImportC | Imports .c files into the configuration (disables other tools when importing into an empty configuration). |
Requires -HeadlessTool Clocks | -HeadlessTool Clocks -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 the source code and all the available export
objects). The code is regenerated before the export.Includes -ExportSrc and in
framework -ExportMEX The argument is expected to be a folder. |
Requires -HeadlessTool Clocks | -HeadlessTool Clocks -ExportAll C:/exports/generated |
| Export Source files | -ExportSrc |
Exports generated source files. The code is regenerated before the export. The argument is expected to be a folder. |
Requires -HeadlessTool Clocks | -HeadlessTool Clocks -ExportSrc C:/exports/src |
| Export HTML report file | -ExportHTML |
Exports generated HTML report file. The code is regenerated before the export. The argument is expected to be a folder. |
Requires -HeadlessTool Clocks | -HeadlessTool Clocks -ExportHTML C:/exports/html |
| Export registers | -ExportRegisters | Export registers tab into folder.Code is regenerated before the export.The argument is expected to be a folder. | Requires -HeadlessTool Clocks | -HeadlessTool Clocks -ExportRegisters C:/exports/regs |
Examples:
- Import configuration from
specified file and save it in HTML
:
eclipsec.exe -noSplash \-application com.nxp.swtools.framework.application \--launcher.ini /path/to/S32DS/installation/eclipse/s32ds.ini \-HeadlessTool Clocks \-MCU /processor/name \-SDKVersion /sdk/version/name \-ImportC /path/to/C/file \-ExportHTML /path/where/to/save/fileOR
eclipsec.exe -noSplash \-application com.nxp.swtools.framework.application \--launcher.ini C:\NXP\S32DesignStudio\eclipse\s32ds.ini \-HeadlessTool Clocks \-MCU S32S247TV \-SDKVersion s32sdk_s32s_rtm_100 \-ImportC C:\Input\file.c \-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/S32DS/installation/eclipse/s32ds.ini \-HeadlessTool Clocks \-Load /path/to/mex/file \-ExportSrc /path/where/to/save/generated/files