Errors when generating ASAP2 file using custom ERT TLC file
조회 수: 10 (최근 30일)
이전 댓글 표시
My organization has a custom ERT build process that I didn't develop, so unfortunately I don't know the details of how it works. In previous MATLAB releases, it has correctly generated A2L files when "ASAP2 Interface" was selected in the model configuration parameters. We are working on porting this ERT build process to R2021b, and the "ASAP2 Interface" option is no longer available.
When I attempt to follow the guidance on this page:
The only option I see on the "Share" dropdown on the "C Code" tab is "Generate protected model", I don't see any option to generate an ASAP2 file.
Looking instead at this page:
If I attempt to use the command line as instructed with the command:
set_param('testmodel', 'TLCOptions', '-aGenerateASAP2=1');
When I build, I get the following error:
The call to custom_ert_make_rtw_hook, during the before_make hook generated the following error: Unrecognized method, property, or field 'DirectModelReferenceInstancesAsap2' for class 'coder.internal.HookBuildOpts'. The build process will terminate as a result.
Caused by: Unrecognized method, property, or field 'DirectModelReferenceInstancesAsap2' for class 'coder.internal.HookBuildOpts'.
Does anyone have any guidance on debugging this issue?
댓글 수: 0
답변 (1개)
Ayush
2023년 8월 16일
I understand that you want to generate the A2L file but you are getting the error as mentioned above.
As mentioned in the link shared you can generate A2L file by Going on the C Code tab, select Share > Generate Calibration Files and turn on "Generate ASAP2" or you can use "coder.asap2.export" to generate the A2L file. To learn more about "coder.asap2.export" kindly read the following document:
By looking at the error you mentioned it looks like the field "DirectModelReferenceInstancesAsap2" is missing in your code.
Thank you
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!