Simulink code generation: A2L file generation and update A2L address through elf file

tags: Simulink  matlab  autosar  

Table of contents

Problem introduction

A2L file generation

Update the address of A2L through elf

Summarize


Problem introduction

During the development process, ASW needs to generate A2L files and update the calibration and observation addresses in the A2L files to facilitate XCP calibration. There are many tools on the market that can be configured to generate A2L files, but they are all paid software. Here, Matlab provides the generation function of A2L and update the A2L calibration and observation addresses based on elf. The reason why you use elf files instead of Map files isThis is mainly because the Map file does not support address updates of structure variables.

A2L file generation

Click Model settings->Interface->ASAP2 interface

The generated calibration quantities are as follows, the address is an empty address

Update the address of A2L through elf

Enter the command in the command window: rtw.asap2SetAddress( 'Task_100us.a2l' , 'Project.elf' ) 

The first parameter is the target A2L file name, and the second parameter is the elf file name generated by compilation with ASW integrated code

After executing the update command:

 

Summarize

The above is the method of generating A2L through Matlab and the method of updating A2L addresses. It is recommended to use elf here because it supports structures. You only need to integrate the generated A2L and other A2Ls together.

Intelligent Recommendation

A2L file analysis based on CAN bus (2)

Articles directory Foreword Version ASAP2_Version A2ML_Version Project HEADER VERSION PROJECT_NO Module A2ML Protocol_Layer DAQ DAQ_LIST EVENT PAG CAN_Parameters Summarize Foreword In the previous art...

A2L file analysis based on CAN bus (3)

Articles directory Foreword MOD_COMMON MOD_PAR XCP data Common_parameters definition If_data defines XCP PROTOCOL_LAYER DAQ EVENT XCP_ON_CAN CAN_Parameters Summarize Foreword In the second A2L file an...

Simulink code generation: custom cgt file

This article studies the cgt file used in Simulink code generation, and configures the file to generate custom code. Write catalog title here 1 Problem introduction 2 cgt file 2.1 Configure cgt file i...

Simulink code generation: Generate an ASAP2 file

This paper studies the method of generating A2L files through Simulink, and some of them. Article catalog 1 ASAP2 file 2 Generate a calibration, observed A2L file 2.1 Modeling Process 2.2 Configuratio...

Fill in the A2L file required for XCP calibration by .map file

First of all, you have to have a template. After opening the Python script, it is automatically filled in the corresponding position of the A2L file. It is currently only filling in the Mesurement are...

More Recommendation

Simulink code generation 2020a

First build a simple model Set it up Shortcut key ctrl+B, compile The code generated at this time: useful: Parameter modification Parameter configuration The position of the following pictures has cha...

Simulink code generation

Model -based design concept Design -based design (Design Based On Model) can be referred to as MBD, using software such as MATLAB as a platform, allowing engineers to analyze, algorithm research, mode...

Simulink code generation (four) call external C code through Stateflow

This article describes the method of calling external C code by calling external C code through Stateflow. Article Directory 1 Problem introduction 2 The process of calling external C code 2.1 Prepare...

Simulink code generation: integrate C functions through Legacy Code Tool

This article briefly describes how to use Legacy Code Tool to integrate external C functions into Simulink models through a routine. Article Directory 1 Problem introduction 2 Compiler installation 3 ...

Code generation MANIFEST.MF file

When I was querying how to package a java project into a jar package, many articles mentioned the MANIFEST.MF file, but for how to generate this file, I only said handwriting, handwriting, and handwri...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top