Skip to content

Commit 214aa60

Browse files
authored
Readme and folder structure fixes
1 parent 923a56b commit 214aa60

19 files changed

Lines changed: 125 additions & 127 deletions

README.md

Lines changed: 75 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,75 @@
1-
# DaVinci Samples
2-
3-
Welcome to **DaVinci Samples**, an open-source repository designed to help developers understand and adopt **DaVinci Configurator Classic Version 6** workflows more easily.
4-
5-
## 📌 What is This Repository For?
6-
7-
This repository provides sample resources to help you integrate DaVinci Configurator Classic Version 6 workflows:
8-
9-
- **Ready-Set-Go-Scripts** demonstrating how DaVinci Configurator Classic Version 6 integrates into typical MICROSAR projects.
10-
- Create a new DaVinci project and link additional workspaces.
11-
- Project Import and Update
12-
- **Project-Migration**
13-
- Tool Migration (DaVinci Configurator, DaVinci Developer, vVIRTUALtarget)
14-
- BSW-Package Migration Trigger
15-
- Diagnostic Import
16-
- Store User Code Blocks
17-
- **Build-Starter** shows how to build and automate configurations using Bazel and modern build systems. You can leverage various Bazel rules depending on your build needs:
18-
- Create a new DaVinci Project or reuse an existing one
19-
- Execute EcuC-as-Code
20-
- Project Import and Update
21-
- Validate and generate the DaVinci Project
22-
23-
## 🛠 Requirements
24-
25-
Always required:
26-
27-
- Activated DaVinci Configurator Classic Version 6 License
28-
- A valid MICROSAR BSW package
29-
30-
If using scripts:
31-
32-
- DaVinci Developer Classic (Release 4.17 SP2 or newer)
33-
- DaVinci Team (Release 6.2 or newer)
34-
35-
If using pipelines (if using Bazel):
36-
37-
- Bazel by Google (see [.bazeliskrc](.bazeliskrc) for version)
38-
39-
If using EcuC as Code:
40-
41-
- EcuC-As-Code Development Kit
42-
43-
## 🚀 Getting Started
44-
45-
1. Clone the repository:
46-
47-
```bash
48-
git clone https://github.com/vectorgrp/davinci-samples.git
49-
```
50-
51-
2. Explore the samples:
52-
- Navigate to the folder that matches your use case.
53-
3. Follow the instructions in each folder’s README to get started.
54-
55-
## 📂 Repository Structure
56-
57-
```text
58-
davinci-samples/
59-
├─ build-starter/ # Bazel-based project setup example
60-
├─ project-migration/ # Project migration template as example workflow
61-
├─ ready-set-go-scripts/ # Ready-to-use scripts for quick workflow setup
62-
├─ .bazelrc # Bazel configuration file defining build options and settings
63-
├─ .editorconfig # Editor configuration for consistent coding styles across IDEs
64-
├─ .gitignore # Specifies files and directories to be ignored by Git
65-
├─ LICENSE # License information
66-
├─ MODULE.bazel # Bazel module definition for dependency management
67-
├─ MODULE.bazel.lock # Lock file for Bazel module dependencies to ensure reproducible builds
68-
├─ README.md # Main documentation for the repository
69-
└─ SECURITY.md # Security policy
70-
```
71-
72-
## 📖 Documentation
73-
74-
Check the repository folders for step-by-step guides and explanations.
75-
76-
[Learn more about DaVinci Configurator Classic Version 6.](https://help.vector.com/davinci-configurator-classic/en/current/index.html)
1+
# DaVinci Samples
2+
3+
Welcome to **DaVinci Samples**, an open-source repository designed to help developers understand and adopt **DaVinci Configurator Classic Version 6** workflows more easily.
4+
5+
## 📌 What is This Repository For?
6+
7+
This repository provides sample resources to help you integrate DaVinci Configurator Classic Version 6 workflows:
8+
9+
- **Ready-Set-Go-Scripts** demonstrating how DaVinci Configurator Classic Version 6 integrates into typical MICROSAR projects.
10+
- **davinci-workspace-setup**: Create a new DaVinci Project and link additional workspaces. Execute project import and update.
11+
- **project-migration**: Project migration template as example workflow.
12+
- **Project-Migration**
13+
- Tool Migration (DaVinci Configurator, DaVinci Developer, vVIRTUALtarget)
14+
- BSW-Package Migration Trigger
15+
- Diagnostic Import
16+
- Store User Code Blocks
17+
- **Build-Starter** shows how to build and automate configurations using Bazel and modern build systems. You can leverage various Bazel rules depending on your build needs:
18+
- Create a new DaVinci Project or reuse an existing one
19+
- Execute EcuC-as-Code
20+
- Project Import and Update
21+
- Validate and generate the DaVinci Project
22+
23+
## 🛠 Requirements
24+
25+
Always required:
26+
27+
- Activated DaVinci Configurator Classic Version 6 License
28+
- A valid MICROSAR BSW package
29+
30+
If using scripts:
31+
32+
- DaVinci Developer Classic (Release 4.17 SP2 or newer)
33+
- DaVinci Team (Release 6.2 or newer)
34+
35+
If using pipelines (if using Bazel):
36+
37+
- Bazel by Google (see [.bazeliskrc](.bazeliskrc) for version)
38+
39+
If using EcuC as Code:
40+
41+
- EcuC-As-Code Development Kit
42+
43+
## 🚀 Getting Started
44+
45+
1. Clone the repository:
46+
47+
```bash
48+
git clone https://github.com/vectorgrp/davinci-samples.git
49+
```
50+
51+
2. Explore the samples:
52+
- Navigate to the folder that matches your use case.
53+
3. Follow the instructions in each folder’s README to get started.
54+
55+
## 📂 Repository Structure
56+
57+
```text
58+
davinci-samples/
59+
├─ build-starter/ # Bazel-based project setup example
60+
├─ ready-set-go-scripts/ # Ready-to-use scripts for quick workflow setup
61+
├─ .bazelrc # Bazel configuration file defining build options and settings
62+
├─ .editorconfig # Editor configuration for consistent coding styles across IDEs
63+
├─ .gitignore # Specifies files and directories to be ignored by Git
64+
├─ LICENSE # License information
65+
├─ MODULE.bazel # Bazel module definition for dependency management
66+
├─ MODULE.bazel.lock # Lock file for Bazel module dependencies to ensure reproducible builds
67+
├─ README.md # Main documentation for the repository
68+
└─ SECURITY.md # Security policy
69+
```
70+
71+
## 📖 Documentation
72+
73+
Check the repository folders for step-by-step guides and explanations.
74+
75+
[Learn more about DaVinci Configurator Classic Version 6.](https://help.vector.com/davinci-configurator-classic/en/current/index.html)

ready-set-go-scripts/README.md

Lines changed: 2 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -3,53 +3,5 @@
33
## 📦 What Does This Folder Contain?
44

55
- **Ready-Set-Go-Scripts** demonstrating how DaVinci Configurator Classic integrates into typical MICROSAR projects.
6-
7-
- Create a new DaVinci Project and link additional workspaces
8-
- Project Import and Update
9-
10-
## 🧩 Ready-Set-Go-Script Options
11-
12-
- **DaVinci_WorkspaceSetup.bat** sets up and links DaVinci workspaces, and executes input file processing and updates.
13-
14-
This script automates the creation and setup of DaVinci projects using both DaVinci Configurator Classic and DaVinci Developer Classic.
15-
It ensures workspaces exist or creates them, links CFG6 and DEV workspaces, analyzes input files with EcuXPro derives ECU configuration, and updates the CFG6 project automatically.
16-
Note: This script is for a non-variant project only!
17-
18-
```mermaid
19-
flowchart TB
20-
subgraph B["Step 1: Store variables"]
21-
B1["Step 1.1: Ask user for tool installation paths"]
22-
B2["Step 1.2: Project specifics"]
23-
B3["Step 1.3: Tool-specific variables"]
24-
B1 --> B2 --> B3
25-
end
26-
subgraph C["Step 2: Check workspaces"]
27-
C1["Ask for CFG6 workspace"]
28-
C2["Ask for DEV workspace"]
29-
end
30-
A["Step 0: Initialize logging"] --> B
31-
B --> C
32-
C --> |"Workspaces do not exist "|D["Step 3: Create missing workspaces/projects"]
33-
C --> |"Workspaces exist"|E
34-
D --> E["Step 4: Convert and link DEV workspace to CFG6 workspace"]
35-
E --> F["Step 5: Add DEV workspace reference to General.json"]
36-
F --> G["Step 6: Analyze input files with EcuXPro"]
37-
G --> H["Step 7: Execute extractSystemDesc.bat after path update"]
38-
H --> I["Step 8: Derive ECUC from MergedECUExtract.arxml"]
39-
I --> J["Step 9: Project update"]
40-
J --> K["Step 10: Log completion"]
41-
```
42-
43-
## 🚀 Getting Started with DaVinci_WorkspaceSetup.bat
44-
45-
1. Set variables in Step 1 as needed.
46-
2. Run the script by double-clicking or executing via command line.
47-
3. Check the output (Log file: Output_Log.txt).
48-
49-
## 🪄 Tips
50-
51-
- Always verify that installation paths are correct before running the script.
52-
- Enclose paths in double quotes to handle spaces.
53-
- Use the log file (Output_Log.txt) to debug any issues.
54-
- This script assumes a basic understanding of AUTOSAR and DaVinci project structure.
55-
- This script assumes either no CFG6 and/or DEV workspaces exist beforehand OR that the existing workspaces have never been linked before
6+
- **davinci-workspace-setup**: Create a new DaVinci Project and link additional workspaces. Execute project import and update.
7+
- **project-migration**: Project migration template as example workflow.

ready-set-go-scripts/DaVinci_WorkspaceSetup.bat renamed to ready-set-go-scripts/davinci-workspace-setup/DaVinci_WorkspaceSetup.bat

File renamed without changes.
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Ready-Set-Go-Script DaVinci Workspace Setup
2+
3+
- **DaVinci_WorkspaceSetup.bat** sets up and links DaVinci workspaces, and executes input file processing and updates.
4+
5+
This script automates the creation and setup of DaVinci projects using both DaVinci Configurator Classic and DaVinci Developer Classic.
6+
It ensures workspaces exist or creates them, links CFG6 and DEV workspaces, analyzes input files with EcuXPro derives ECU configuration, and updates the CFG6 project automatically.
7+
Note: This script is for a non-variant project only!
8+
9+
```mermaid
10+
flowchart TB
11+
subgraph B["Step 1: Store variables"]
12+
B1["Step 1.1: Ask user for tool installation paths"]
13+
B2["Step 1.2: Project specifics"]
14+
B3["Step 1.3: Tool-specific variables"]
15+
B1 --> B2 --> B3
16+
end
17+
subgraph C["Step 2: Check workspaces"]
18+
C1["Ask for CFG6 workspace"]
19+
C2["Ask for DEV workspace"]
20+
end
21+
A["Step 0: Initialize logging"] --> B
22+
B --> C
23+
C --> |"Workspaces do not exist "|D["Step 3: Create missing workspaces/projects"]
24+
C --> |"Workspaces exist"|E
25+
D --> E["Step 4: Convert and link DEV workspace to CFG6 workspace"]
26+
E --> F["Step 5: Add DEV workspace reference to General.json"]
27+
F --> G["Step 6: Analyze input files with EcuXPro"]
28+
G --> H["Step 7: Execute extractSystemDesc.bat after path update"]
29+
H --> I["Step 8: Derive ECUC from MergedECUExtract.arxml"]
30+
I --> J["Step 9: Project update"]
31+
J --> K["Step 10: Log completion"]
32+
```
33+
34+
## 🚀 Getting Started with DaVinci_WorkspaceSetup.bat
35+
36+
1. Set variables in Step 1 as needed.
37+
2. Run the script by double-clicking or executing via command line.
38+
3. Check the output (Log file: Output_Log.txt).
39+
40+
## 🪄 Tips
41+
42+
- Always verify that installation paths are correct before running the script.
43+
- Enclose paths in double quotes to handle spaces.
44+
- Use the log file (Output_Log.txt) to debug any issues.
45+
- This script assumes a basic understanding of AUTOSAR and DaVinci project structure.
46+
- This script assumes either no CFG6 and/or DEV workspaces exist beforehand OR that the existing workspaces have never been linked before

project-migration/README.md renamed to ready-set-go-scripts/project-migration/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ flowchart TD
170170

171171
The BSW package migration in the GUI works the same way as it did in DvCfg5.
172172
To enable the diagnostic import afterwards, the following steps must be executed:
173-
[BSW-Package migration 1](_images/sip_migration_1.png), [BSW-Package migration 2](_images/sip_migration_2.png) and [BSW-Package migration 3](_images/sip_migration_3.png). If in the following project load an error pops up, it is recommended to check the Output\Log\ProjectLoad\ModelMergeReport.sarif file. These errors are mostly merge errors caused by AUTOSAR elements being defined in multiple files.
173+
[BSW-Package migration 1](_images/sip_migration_1.png), [BSW-Package migration 2](_images/sip_migration_2.png) and [BSW-Package migration 3](_images/sip_migration_3.png). If in the following project load an error pops up, it is recommended to check the Output\Log\ProjectLoad\ModelMergeReport.sarif file. These errors are mostly merge errors caused by AUTOSAR elements being defined in multiple files. The recommendation is to solve these conflicts manually to make sure everything is merged correct. A description on how to do this is given in the documentation: [Model Merge Behavior on Project Load](https://help.vector.com/davinci-configurator-classic/en/current/dvcfg-classic/6.2.3-SP2/configuration/projects/model-merge-on-project-load.html). In general it is also possible to solve the conflicts with the setting _"allowMergeConflicts": true_. If using this option it is still required to check the merge results to make sure all decisions were made correct.
174+
174175
After completing these steps, the BSW package migration is triggered, and the next step in the workflow can be executed.
175176

176177
> For more information, see [Migrating Project to Newer BSW Package](https://help.vector.com/davinci-configurator-classic/en/current/dvcfg-classic/6.2-SP0/migration/bsw-migration.html)

project-migration/__MasterWorkflow.ps1 renamed to ready-set-go-scripts/project-migration/__MasterWorkflow.ps1

File renamed without changes.

project-migration/_config.ps1 renamed to ready-set-go-scripts/project-migration/_config.ps1

File renamed without changes.

project-migration/_images/sip_migration_1.png renamed to ready-set-go-scripts/project-migration/_images/sip_migration_1.png

File renamed without changes.

project-migration/_images/sip_migration_2.png renamed to ready-set-go-scripts/project-migration/_images/sip_migration_2.png

File renamed without changes.

project-migration/_images/sip_migration_3.png renamed to ready-set-go-scripts/project-migration/_images/sip_migration_3.png

File renamed without changes.

0 commit comments

Comments
 (0)