Hi, how to generate ASAP2 file for simulink protected model? I know we can generate ASAP2 for referenced model
2 次查看(过去 30 天)
显示 更早的评论
Hi, how to generate ASAP2 file for simulink protected model? I know we can generate ASAP2 for referenced model
1 个评论
Timothy Light
2020-1-15
编辑:Timothy Light
2020-1-15
I am also seeking an answer to this question (2017b).
回答(4 个)
Abhijeet Bhopte
2020-1-15
1 个评论
Timothy Light
2020-1-15
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.
Abhijeet Bhopte
2020-1-15
1 个评论
Timothy Light
2020-1-15
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.
Ganesh Regoti
2020-4-30
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
- Define your parameters and signals as “ExportedGlobal”.
- Run the application
- A2L for the protected model can be found in slprj => ert => protectedmodelname
To generate a2l file for SLRT target
- Define the parameters and signals as “Exported Global” which is mandatory.
- Check the option => Configuration params -> Code Generation -> Simulink RealTime Options -> Generate INCA/CANape extensions for the top and protected models
- Build the top model.
- Composed a2l file will be generated with topmodelname.
Hope this helps!
1 个评论
Moritz Heber
2022-3-24
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Deployment, Integration, and Supported Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!