Create Your First DaVinci Project
In this section, you’ll learn how to create a new project from scratch.
Create DaVinci Project
To get started, you can create a new DaVinci Project using several available methods.
For a minimal setup without predefined configurations, use the DaVinci Configurator extension in Visual Studio Code to create a simple project quickly and efficiently.
-
Create a project folder on your disc.
-
Open your project folder in VS Code.
-
With right click in your project folder explorer the menu will be open and select New DaVinci Project.
-
Select a BSW package for your project and click Select.
-
Give your project a name and click Create.
-
You will see that the project with .dvjson file-extension will be created.
Edit BSW Specifications
Once a project has been created using the appropriate BSW package, it is important to set the BSW-specific parameters in the project settings files to prevent potential errors.
There might be some project-specific parameters that cannot be automatically added to your project settings, as multiple valid values may exist depending on your project. To ensure a correct initial ECU configuration, manually add your MultiDriverModules and their corresponding Cluster Modules to the comControllerMappings section.
-
Open your project in VS Code application.
-
Navigate to /Settings and open /Settings/Ifp.json project setting file. You will see this in your file:
{ "$schema": "../Output/Schema/Ifp.settings.schema.json" } -
With the installed DaVinci Configurator Extension you can now add BSW specific parameters by auto-complition Ctrl+Space. Add MultiDriverModules and Cluster Modules in comControllerMappings. This may look like this:
{ "$schema": "../Output/Schema/Ifp.settings.schema.json", "moduleDefinitionMappings": [ { "moduleConfigName": "TcpIp", "moduleDefinitionPath": "/MICROSAR/TcpIp" }, { "moduleConfigName": "Fee", "moduleDefinitionPath": "/MICROSAR/Fee" }, { "moduleConfigName": "Nvm", "moduleDefinitionPath": "/MICROSAR/Nvm" } ], "comControllerMappings": [ { "clusterPath": "/Topology/Cluster/ETHCluster", "moduleDefinitionPath": "/MICROSAR/Eth_Canoeemu/Eth" }, { "clusterPath": "/Cluster/CAN", "moduleDefinitionPath": "/MICROSAR/Can_CanoeemuCanoe/Can" } ] } -
Save your changes by Ctrl+S to apply these modifications in the Ifp.json project setting file.