Create ECU Configuration

Creating an ECU configuration is the foundation of any DaVinci Project. It defines the structure and behavior of the ECU and prepares it for integration with the MICROSAR Classic Basic Software. Whether you’re setting up communication services, memory management, or diagnostic capabilities, the ECU configuration acts as the central blueprint for your system.

Add Modules to Your ECU Configuration

Modules are essential for building your ECU configuration. They define system functionality like communication, diagnostics, or memory, and determine which parts of the BSW Package are included. Adding modules also sets up interfaces and ensures all dependencies are ready for validation and code generation.

  1. Open the DaVinci Configurator Classic CLI in your terminal and run the following command to add modules to your DaVinci Project:

    # dvcfg-b import module -p="/Path/To/DaVinci/Project" -b="/Path/To/BSW/Package" <module-file>

    Specify the path to your DaVinci Project and the BSW Package folder, then provide the module file you want to import.

  2. Once the module is added, it will be imported into your DaVinci Project. The console will display the following status messages:

    Importing                     STARTED
    Importing                     SUCCESSFUL
    Saving Model                  STARTED
    Saving Model                  SUCCESSFUL

Add Container to a Module

A container is a logical block within a module that holds configuration parameters or nested sub-containers. It often reflects an AUTOSAR configuration structure. Follow the steps to add a container for a module:

  1. Open the DaVinci Configurator Classic.

    A Startpage will automatically open. This page provides an overview of available options and settings to begin your configuration.

  2. Click the + in Recent Projects, then select your DaVinci Project and the BSW Package. Click Open to start project load.

  3. Open the Basic Editor to view your ECU configuration.

  4. Right-click a module and select Add Container from the menu.

A container is added to your model. You can now specify its parameters.

Adding More Input Files

If the input files are not ECU extracts, convert them with the Ecu Extract Producer first before proceeding.

  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 appling all changes and fixing model inconsistancy after deriving an ECU extract it is recommanded to update your project. Execute project update for your creted 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.