Generate A2L Files
During generation, the ARXML to A2L Converter (McDataConverter) from your MICROSAR delivery creates A2L files with the measurement and calibration data of the BSW modules and the SWCs.
You control the conversion with settings in file <project-folder>/Settings/General.json.
A2L Settings in General.json
The A2L settings are located in the miscellaneous object.
The output folder for the generated A2L files is located in the folders object.
"folders": {
"mcData": "../Output/Source/McData"
},
"miscellaneous": {
"a2lGenerator": {
"a2lMasterFile": "../Config/McData/Master.a2l"
},
"amdGenerateDebugData": false
}
Relative paths are relative to the location of General.json.
| JSON key | Type | Description |
|---|---|---|
|
String |
Output folder for the generated A2L files. |
|
Object |
Configuration of the ARXML to A2L Converter. The ARXML to A2L Converter step is only available if this object is set. |
|
String |
Path to the A2L master file that the McDataConverter uses. If no master file is set, the generation shows a warning. |
|
String |
Additional command-line options that DaVinci Configurator passes to the McDataConverter. See Additional Parameters for the McDataConverter. |
|
Boolean |
Set to |
Additional Parameters for the McDataConverter
DaVinci Configurator calls the McDataConverter with a fixed set of options and appends the value of a2lGeneratorAddParams to the command line.
Separate options with spaces.
Enclose values that contain spaces in quotation marks.
"miscellaneous": {
"a2lGenerator": {
"a2lMasterFile": "../Config/McData/Master.a2l",
"a2lGeneratorAddParams": "-cmdi -rgh"
}
}
DaVinci Configurator always sets the following options.
Do not add them to a2lGeneratorAddParams.
-
-b: base name of the generated A2L files -
-o: output directory, fromfolders.mcData -
-s: folder of the SIP license file -
-a: McSupportData file -
-m: A2L master file, froma2lMasterFile -
-sdi: shorten display identifiers -
-w: workflow option for the interaction with the generator proxy -
-f: write the output file even if its content has not changed. By default, the McDataConverter only updates the output file if the content changes. DaVinci Configurator does not pass-fif conditional file writing is enabled.
You can add the following options. The descriptions are from the command-line help of McDataConverter version 1.02.18.
| Option | Description |
|---|---|
|
A2L version of the output.
Values: |
|
Path to the XCP checksum. |
|
Symbol for the RAM buffer.
Any string is allowed.
Default: |
|
Creates groups in the new style.
Without this option, the McDataConverter uses the legacy style and creates one group for each BSW module.
For the RTE, these groups can be deeply nested.
The new style requires |
|
Creates structures. |
|
Creates ROM symbols for the InitRAM emulation method. |
|
Creates display identifiers if none are configured. |
|
Uses the ShortNameFragment to create display identifiers.
Values: |
|
Selects the source tag for verbal table literals.
Values: |
|
Condenses overly deep group hierarchies. |
|
Forces the generation of multi-dimensional arrays. Available as of McDataConverter version 1.2.10. |
|
Displays information-level output. |
|
Displays verbose output. |
To show all options of your McDataConverter version, run DVMcDataConverter.exe --help in folder <SIP>/Misc/McDataConv/Application of your MICROSAR delivery.
On Linux, the converter is in folder <SIP>/Misc/McDataConv/ApplicationLinux.