a2l address replacement not working with .elf and structs

11 Ansichten (letzte 30 Tage)
Jake Gareau
Jake Gareau am 13 Dez. 2023
Beantwortet: Jake Gareau am 7 Feb. 2024
when generating an a2l file for my model and providing the symbol file (.elf), the ECU addresses for all members of every struct are listed as 0. non structs such as global variables have their addresses replaced fine.
Is this a limitation with the a2l generation or is there something I am not doing correctly?

Akzeptierte Antwort

Angelo Yeo
Angelo Yeo am 14 Dez. 2023
Bearbeitet: Angelo Yeo am 14 Dez. 2023
So, the point is your ECU_ADDRESS = 0x0000, but the ELF file does specify an address, right? It sounds like an issue that our Technical Support can help you with. Can you reach out to them and ask if they can provide a workaround?
  3 Kommentare
昕彤
昕彤 am 29 Jan. 2024
hello :
I have the same problem, how did you solve it? Can you give me some tips?
Angelo Yeo
Angelo Yeo am 29 Jan. 2024
@昕彤: It could be due to a configuration mismatch between the ELF and Simulink model, and maybe the .elf file was not generated using your Simulink model. The address file (.elf in case of Linux & .pdb in case of Windows) can be generated using Simulink model as well by setting "BuildConfiguration" to Debug and unchecking "GenCodeOnly" flag in Configuration Parameters for model. You can then proceed to use the generated address file for Address Replacement using "Generate Calibration Files" tool.
If it does not solve your issue, please reach out to Technical Support in your region with models, files and steps to reproduce your issue. It would be worth to investigate the issue with your elf files and Simulink models.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Jake Gareau
Jake Gareau am 7 Feb. 2024
I found the problem.
I was using Code composer studio to create the .ELF file which is using DWARF v4 as the default format. Changing the compiler to use version 3 resolved the issue.
https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/1220659/dwarf-3-vs-dwarf-4-for-3rd-party-tools

Kategorien

Mehr zu Simulink Coder finden Sie in Help Center und File Exchange

Produkte


Version

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by