Main Content

rtw.asap2SetAddress

Set ECU address in A2L file

Description

rtw.asap2SetAddress(ASAP2File, InfoFile) updates the ASAP2File by replacing placeholder ECU addresses with actual ECU addresses extracted from the InfoFile.

example

rtw.asap2SetAddress(ASAP2File, InfoFile, UseSymTab) updates ASAP2File by replacing placeholder ECU addresses with actual ECU addresses extracted from the symbol file only when the Executable and Linkable Format (.elf) file has a non supported format.

example

Examples

collapse all

Update the ASAP2 (A2L) file by adding address fields from the Executable and Linkable Format (.elf) file.

% uses ELF file to update ECU addresses
rtw.asap2SetAddress('model.a2l','model.elf')

Update the ASAP2 (A2L) file by replacing ECU address fields from the Debugging With Attributed Record Format (.dwarf) file.

% uses DWARF file to update ECU addresses
rtw.asap2SetAddress('model.a2l','model.dwarf')

Update the ASAP2 (A2L) file by replacing ECU address fields from the Program database (.pdb) file.

% uses PDB file to update ECU addresses
rtw.asap2SetAddress('model.a2l','model.pdb')

Update the ASAP2 (A2L) file by replacing ECU address fields from the symbol table instead of from the debug information table. You can use UseSymTab only when the information file is in the .elf format.

% uses ELF file to update ECU addresses
rtw.asap2SetAddress('model.a2l','model.elf','UseSymTab')

Input Arguments

collapse all

Name of the A2L file in which the ECU address needs to be updated.

Example: 'model.a2l','myapp.a2l'

Name of the information file that provides ECU address.

Example: 'model.elf','myapp.dwarf','testbench.pdb'

Use this argument when the information file has a non supported format. The function then reads the ECU addresses from the symbol table instead of from the debug information table.

Version History

Introduced in R2012a