Hi, how to generate ASAP2 file for simulink protected model? I know we can generate ASAP2 for referenced model

2 visualizaciones (últimos 30 días)
Hi, how to generate ASAP2 file for simulink protected model? I know we can generate ASAP2 for referenced model

Respuestas (4)

Abhijeet Bhopte
Abhijeet Bhopte el 15 de En. de 2020
Hi Timothy,
A2L for the protected model is generated in the shared utilities folder (inside the main folder for the generated code).
Thanks
Abhijeet
  1 comentario
Timothy Light
Timothy Light el 15 de En. de 2020
Hi Abhijeet,
I have tested code generation with a wrapper model that contains a model reference to a protected model. The resulting A2L file only includes entities from the wrapper model, no items can be found for the protected model. My conclusion is that once a model is protected, no A2L access is provided for calibrating Simulink.Parameter objects.

Iniciar sesión para comentar.


Abhijeet Bhopte
Abhijeet Bhopte el 15 de En. de 2020
Hi Timothy,
Define your parameters and signals as "ExportedGlobal". They will be visible in A2L generated for protected model. A2L for the protected model can be found in slprj --> ert --> protectectedmodelname
Thanks
Abhijeet
  1 comentario
Timothy Light
Timothy Light el 15 de En. de 2020
Hi Abhijeet,
I have been using ExportedGlobal as the storage class, however my target is Simulink Real-Time (slrt). Perhaps things work differently with an Embedded Coder target.

Iniciar sesión para comentar.


Abhijeet Bhopte
Abhijeet Bhopte el 15 de En. de 2020
Yes. I used Embedded Coder.

Ganesh Regoti
Ganesh Regoti el 30 de Abr. de 2020
Hello,
I assume that you have a protected model and it is being referenced from top model
To generate a2l file for ert target for protected models in it
  1. Define your parameters and signals as “ExportedGlobal”.
  2. Run the application
  3. A2L for the protected model can be found in slprj => ert => protectedmodelname
To generate a2l file for SLRT target
  1. Define the parameters and signals as “Exported Global” which is mandatory.
  2. Check the option => Configuration params -> Code Generation -> Simulink RealTime Options -> Generate INCA/CANape extensions for the top and protected models
  3. Build the top model.
  4. Composed a2l file will be generated with topmodelname.
Hope this helps!
  1 comentario
Moritz Heber
Moritz Heber el 24 de Mzo. de 2022
Hello,
I'm looking for this setting in Matlab 2021b. I would like to generate code for our Speedgoat Simulink Realtime Target and manipulate Signals with CANape. For this purpose i found the following video tutorial: https://de.mathworks.com/videos/model-based-calibration-testing-and-ecu-bypassing-with-xcp-using-simulink-real-time-and-speedgoat-target-hardware-1538149940399.html
Unfortunaltly im unable to find the setting to enable the INCA/CANape extension which should generate an additional hex file, which is nessesary to use memory segmentation in these tools.

Iniciar sesión para comentar.

Categorías

Más información sobre Deployment, Integration, and Supported Hardware en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by