Command line execution

This section describes the Command Line Interface (CLI) commands supported by the desktop application.

S32 Config tools can be executed on command line with these parameters: tools.exe -noSplash -application com.nxp.swtools.framework.application [tools commands].

Notes regarding command line execution:

Command example:

-HeadlessTool Clocks -MCU S32S247TV -SDKVersion amp_sdk1_0 -ExportSrc C:/exports/src -HeadlessTool Pins -MCU S32S247TV -SDKVersion amp_sdk1_0 -ExportSrc C:/exports/src -HeadlessTool Peripherals -MCU S32S247TV -SDKVersion amp_sdk1_0 -ExportSrc C:/exports/src

The following commands are supported in the framework:

Table 1. Commands supported in the framework
​​Command name Definition and parameters Description Restriction ​​Example
​Force language ​​-nl {lang}

​Force set language

{lang} is in ISO-639-1​ standard

​Removal of the '.nxp' folder from home directory is recommended, as some text might be cached

Only 'zh' and 'en' are supported

-nl zh
​​Show console ​​-consoleLog ​Log output is also sent to Java’s System.out (typically back to the command shell if any) None  
​​Select MCU ​​-MCU ​MCU to be selected by framewor​k ​Requires –SDKversion command -MCU ​S32S247TV
​Select SDK version ​-SDKversion ​Version of the MCU to be selected by framework ​Requires ​​-MCU command ​-SDKversion amp_sdk1_0
​Select part number ​-​PartNum ​​Select specific package of the MCU ​Requires -MCU and -SDKversion commands ​-PartNum S32S247TV
​​​Configuration name ​​​-ConfigName ​Name of newly created configuration - used in export ​​Name is used when new configuration is created by -MCU and -SDKversion commands ​​-ConfigName "MyConfig"
​​Select tool ​-HeadlessTool ​Select a tool that should be run in headless mode ​None ​-HeadlessTool Clocks
​Load configuration ​-Load ​​Load existing configuration from (*.mex) file ​None ​​-Load C:/conf/conf.mex
​​Export Mex​ ​-ExportMEX​ ​Export .mex configuration file after tools run

Argument is expected as a folder name​

​None ​​-MCU xxx -SDKversion xxx​ ​​-ExportMEX C:/exports/my_config_folder
​​Export all generated files ​-ExportAll ​​Export generated files (with source code and so on. Code is regenerated before export

Includes -ExportSrc and in framework -ExportMEX​Argument is expected as a folder name.

Argument is expected as a folder name​

​​Requires -HeadlessTool command ​​-HeadlessTool Pins ​-ExportAll C:/exports/generated​
Create new configuration by importing toolchain project ​-ImportProject {path}

Creates new configuration by importing toolchain project

Parameter is path to the root of the toolchain project

​Requires -HeadlessTool command ​-HeadlessTool Pins -ImportProject c:\test\myproject
​​Specify SDK path ​​​-SDKpath {path} ​​Specify absolute path to the root directory of the SDK package. ​​@since v3.0 -SDKpath ​​C:\NXP\S32DS.2019\S32DS\S32SDK_S32V23x_EAR_0.8.1