Import Files to Your DaVinci Project

Learn how to convert your system description to an ECU Extract in a DaVinci Configurator-compatible format and import it in your project.

If no system description or ECU Extract is available, skip this step and continue Create ECU Configuration.

Allowed Input File Formats

Table 1. Allowed Input Files Formats in EcuXPro
Format Name

arxml

AUTOSAR XML Format

dbc

Database CAN

ldf

LIN Description File

fibex

Field Bus Exchange Format

vsde

Vector System Description Extension

An invariant ECU extract contains no variation points. It is already fully resolved, meaning all configuration decisions have been applied and the extract represents a specific, fixed ECU setup.

Unlike variant ECU extracts, an invariant extract does not require an EVS. It can be used directly with EcuC Derive, as it already reflects a complete and unambiguous configuration.

To generate an invariant ECU extract follow the steps below to create the extract correctly.

  1. Navigate into installation path of the DaVinci Configurator Classic into the folder EcuXPro. By adding all files and the output folder which shall contain the generated ECU Extract to be generated later, you will be provided as a result of this command a suggestion of commands. If legacy files are input as well, then you need to install the Legacy Converter tool, or you will have to provide its path using the option -c. Depending on the shell type you want, you must specify the output format you want, using the option --output-format. Currently, you can choose between shell_cmd (for Windows Command Line) and shell_bash (for Linux Shell Bash). Setting a value for the option save-script will save the generated commands into a script file instead of printing them to the console." Below is an example command structure:

    Analyze Command
    ecuxpro analyze -f <file1>,<file2...> -o="/Path/To/Generated/Ecu/Extract" -c="/Path/To/Legacy/Converter" --output-format=shell_cmd --save-script="/Path/To/Save/ScriptFile.bat"
    1. The result of this command will be a script file containing a set of ready-to-run commands that you can use to generate your ECU extract. Before running the script, you might need to set some variables in the script file, especially the ECU Instance Names.

    2. If you haven’t provided the option --save-script, then you have to copy suggested ready-to-run commands in the console output to generate an ECU Extract out of your input files.

      This may look like this:

      Ready-to-use Commands
      ecuxpro merge -i="D:\DEV\Workspaces\VectorDemo\Input\OEMInput\Preprocessing\EthernetCluster.arxml" -i="D:\DEV\Workspaces\VectorDemo\Input\OEMInput\Preprocessing\DiagnosticData.arxml" -i="D:\DEV\Workspaces\VectorDemo\Input\OEMInput\Preprocessing\MyECU_LdCom_PW_Transformer.arxml" D:\DEV\Workspaces\MyProject\InvariantMerged.arxml

      In this case, paste the ready-to-use commands from the console into your terminal or build task script and execute it to generate your ECU extract.

  2. In both cases, the result is a generated ECU Extract which is now available in the specified output folder.

Import ECU Extract in Your DaVinci Project

The DaVinci Configurator Classic works on ECU Configuration therfore the ECU Extract must be derived to an ECU Configuration. The BSW context is used to derive and pre configurations will be set.

If no ECU extract available continue with Configure Davinci Project.

  1. Navigate into DaVinci Configurator installation.

  2. Execute command derive-ecuc. Add path of project file, your BSW and the ECU extract which shall be derived.

    # dvcfg-b project derive-ecuc -p="/Path/To/Your/Project" -b="/Path/To/Your/BSW" ecu-extract
  3. The command line will display a successful after ECU is derived. In your /Output/Config/EcuConfig an ecuc.Initial.arxml and in /Output/Config/EcuExtract an EcuExtract.arxml will be created.

  4. For applying all changes and fixing model inconsistency after deriving an ECU extract it is recommended to update your project. Execute project update for your created and enriched project.

    # dvcfg-b project update -p="/Path/To/Your/Project" -b="/Path/To/Your/BSW" -acr

    The ECU configuration will now be updated, automatic correction of unresolved or inconsistent references will be resolved, RTE configuration changes and input file changes.

Activate BSW Modules

During the project update several BSW modules are derived depending on the configuration provided by ECU Extract. Not all required BSW modules can be derived out of the input files so to get a working BSW stack other modules have to be activated and have to be actvated manually.

  1. Open the DaVinci Configurator Classic CLI in your terminal and run the following command to activate all modules.

    # dvcfg-b project activate-rec-modules -p="/Path/To/DaVinci/Project" -b="/Path/To/BSW/Package"