A tool to edit, merge and update a2l files
a2ltool binaries are available on the releases page. You can get pre-built binaries for Windows (x64) and Linux (x64) there.
For any other platform you can compile a2ltool using cargo build --release.
Refer to the manual for a detailed description of the features and options of a2ltool.
The following examples show how to use a2ltool for common use cases:
a2ltool file1.a2l --merge file2.a2l --output merged.a2l
a2ltool file1.a2l --merge file2.a2l --merge file3.a2l --merge file4.a2l --output merged.a2l
a2ltool file1.a2l --merge-includes --output flat.a2l
a2ltool input.a2l --elffile input.elf --update --output updated.a2l
a2ltool input.a2l --elffile input.elf --update --update-mode PRESERVE --output updated.a2l
a2ltool input.a2l --elffile input.elf --update ADDRESSES --update-mode STRICT --output updated.a2l
a2ltool --create --elffile input.elf --characteristic my_var --output newfile.a2l
a2ltool --create --elffile input.elf --measurement-regex ".*name_pattern\d\d+*" --output newfile.a2l
a2ltool --create --elffile input.elf --measurement-range 0x1000 0x3000 --output newfile.a2l
a2ltool input.a2l --a2lversion 1.5.1 --output downgraded.a2l
a2ltool input.a2l --check --strict
Assume that the file a2ltool.rsp exists and contains valid arguments for a2ltool.
a2ltool @a2ltool.rsp
A2L files describe measurement variables and tunable parameters of an embedded device (typically, an automotive ECU).
The consumer of the A2L file typically allows online calibration over a protocol such as XCP and/or offline tuning by generating flashable parameter sets. Several commercial tools are available for this purpose.
The A2L file format is specified by ASAM and is formally called ASAM MCD-2 MC.
a2ltool is dual-licensed under the MIT and Apache2 licenses.
$ claude mcp add a2ltool \
-- python -m otcore.mcp_server <graph>