DanielT / a2ltool

A tool to edit, merge and update a2l files
Apache License 2.0
46 stars 15 forks source link

Is it possible to output a2l files as specific version? #14

Closed xRowe closed 8 months ago

xRowe commented 9 months ago

Dear Developer

Does this awesome tool support to ouput a2l file as specifice version? I used below command to create a2l file from elf, but it always output a2l file in ver1.71. a2ltool --create --elffile abc.elf --characteristic-regex .*?_Cal --measurement-regex .*?_Dis --output abc.a2l

How can I output as another version?

Thanks, Rowe

DanielT commented 9 months ago

Hi, The feature to create files is rather simple, and many options cannot be set. This also includes the version. However, you should not have any issues if you just use a text editor to modify the version in the created file.

Regards, Daniel

Am 8. Dezember 2023 13:31:12 MEZ schrieb xRowe @.***>:

Dear Developer

Does this awesome tool support to ouput a2l file as specifice version? I used below command to create a2l file from elf, but it always output a2l file in ver1.71. a2ltool --create --elffile abc.elf --characteristic-regex .*?_Cal --measurement-regex .*?_Dis --output abc.a2l

How can I output as another version?

Thanks, Rowe

-- Reply to this email directly or view it on GitHub: https://github.com/DanielT/a2ltool/issues/14 You are receiving this because you are subscribed to this thread.

Message ID: @.***>

DanielT commented 9 months ago

Alternatively, you could create a mostly empty template file with any other tool you might be using. That way you would be able to set the version, module name, memory segments, etc. In this case you would then use a2ltool to add the measurements and characteristics.

xRowe commented 8 months ago

Thanks for your suggestion. A2L generated from elf is good, and I could modify the version with notpad easily.

In fact, I have a a2l in version v1.71 created by Davinci, But in my hand, the version of a2l is too high to load with the current Tool(CANape), of course it is the problem that CANape version is a bit "old". So I would tried to downgrade the version to somelike v1.4

Thank you

DanielT commented 8 months ago

The oldest A2L version you would reasonably want to use is version 1.5.1. This version was released 20 years ago! If you set the file version to 1.4, then your tools might not be able to handle it because it is too old - a2ltool for example doesn't know any version older than 1.5.