A2lPrep

From OpenMBD
Jump to: navigation, search

Introduction

A2lPrep is a commandline tool for preparing ASAP2 .a2l files from a C++ language target project. The .a2l file created by A2lPrep can then be loaded into HANtune for calibration. ASAP2 is a data definition standard to use for data measurement, calibration, and diagnostic systems. HANtune uses ASAP2 files for displaying parameters and signals.


A2lPrep Overview.png

A2lPrep can be used to convert manually written C-source files with special comments together with the corresponding .map (produced by compilation) into an ASAP2 .a2l file. This ASAP2 file contains all the relevant data (addresses, calculation rules, display format) show on the HANtune screen. The special comments are necessary to specify the constants (parameters) and variables (signals) to be used in HANtune. They can be specified manually within your source files.

No extra code-generation tools are needed to perform this operation. When you have your project prepared for communication with HANtune, you only need to compile your source code. Then the output .map file from the compiler, together with your C sources will be input for A2lPrep.

Basic Operation

A2lPrep is a command line tool. You need to provide the input files and output file on the command line.

A2lPrep BasicOperation.png

Enter on commandline any combination of:

- Desired source files (*.c or *.h). Multiple files are allowed.
- Corresponding address file (*.sym or *.map)
- Output ASAP2 file (*.a2l). Existing file with the same name will be overwritten.

The extension is leading. Only the above extensions (upper- or lower-case) are allowed.