Borrar filtros
Borrar filtros

Is there help with developing a Matlab designed software/Simulink model to flash/program an ECU (MPC5534) with a .a2l and .s19 (build products from RTW/coder)

9 visualizaciones (últimos 30 días)
I am trying to find anything on creating a software/model to flash a controller (ECU).

Respuesta aceptada

Ayush Anand
Ayush Anand el 4 de Sept. de 2023
Hi Darren,
I understand you are trying to find some information on how to create a software/model to flash a controller (ECU).
Here are a few general steps you could follow to achieve the same:
  1. Import the .a2l file: The .a2l file contains the description of the ECU's memory map, variables, and calibration parameters. You can use MATLAB's ASAM XIL API or a third-party ASAM MCD-2MC library to import and parse the .a2l file. This will allow you to access the variables and calibration parameters defined in the file.
  2. Generate code from Simulink model: Develop a Simulink model that represents the behavior and functionality you want to program into the ECU. Configure the Simulink model to generate code suitable for your target hardware (MPC5534). Use Simulink Coder or MATLAB Coder to generate C code from the Simulink model.
  3. Integrate the generated code with the ECU: Incorporate the generated C code into the existing ECU software framework. This may involve integrating the code with existing software modules, drivers, or operating systems running on the ECU.
  4. Flash/program the ECU with the .s19 file: The .s19 file contains the binary image of the compiled code that needs to be flashed onto the ECU. Use appropriate flashing tools or protocols supported by the MPC5534 ECU to program the ECU with the .s19 file. This process may involve connecting to the ECU via a communication interface (e.g., CAN, JTAG) and using specific flashing software or programming algorithms.
  5. Calibrate the ECU using the imported variables: Once the ECU is flashed with the new code, you can use the imported variables and calibration parameters from the .a2l file to configure and calibrate the ECU. MATLAB provides tools like MCD System, CANape, or INCA that can interface with the ECU and perform calibration tasks using the imported variables and parameters.
You can refer to the following page for more information on ECU software simulation:
I hope this helps!

Más respuestas (0)

Categorías

Más información sobre Code Generation en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by