Effacer les filtres
Effacer les filtres

Build process failing with model referencing

9 vues (au cours des 30 derniers jours)
Nagaraju Subramaniam
Nagaraju Subramaniam le 25 Juil 2023
The call to cn_make_rtw_hook, during the after_make hook generated the following error:
ASAP2 pathc process failed to execute the following system command:
"C:\PROGRA~1\VECTOR~1.11\rtw\bin\canoe\VBUILD~1\VBUILD~1.EXE" -T "options.ini" -I Modelname.a2l -O D:\path\Modelname.a2l -A
"D:\path\Modelname.pdb"
Result: <ERROR> input file 'Modelname.a2l' not found
Hello team,
I am trying to generate a2l with model referencing method. I am receiving the above error in first instance. When i tried to rebuild the model, i am receiving the error mentioned below. This happens only when i build a model which is referenced to another model. I am using cn.tlc for code generation and model contains CANOE blocks. Kindly help me with solution. Let me know if more information required. Thank you
The build process will terminate as a result.
Caused by: ASAP2 pathc process failed to execute the following system command:
"C:\PROGRA~1\VECTOR~1.11\rtw\bin\canoe\VBUILD~1\VBUILD~1.EXE" -T "options.ini" -I Modelname.a2l -O D:\path\Modelname.a2l -A
"D:\path\Modelname.pdb"
Result:
Reading ASAP2 file
Solving references<ERROR> group 'Modelname': reference to undefined group 'mr_grp2link_Namemodel_Model_InstanceData'
Reading map file
writing ASAP2 fileTables count: 8

Réponses (1)

Debadipto
Debadipto le 1 Août 2023
Hi Nagaraju,
The error message suggests that the input file 'Modelname.a2l' is not found during the code generation process. This can happen if the file is missing or if the path to the file is incorrect. Here are a few steps you can take to troubleshoot and resolve the issue:
  1. Verify the existence of 'Modelname.a2l': Check if the file 'Modelname.a2l' exists in the specified location. Ensure that the file name and path are correct.
  2. Check the CANOE configuration: Make sure that the CANOE configuration is properly set up and that the necessary files, including 'Modelname.a2l', are included in the project. Double-check the configuration settings to ensure that the correct file paths are specified.
  3. Verify the code generation settings: Check the code generation settings in your development environment, especially the settings related to CANOE and the generation of the ASAP2 file ('Modelname.a2l'). Ensure that the necessary options and paths are correctly configured.
  4. Check the MATLAB path: Ensure that the MATLAB path includes all the required folders and files for code generation. Verify that the necessary CANOE-related files and toolboxes are accessible.
If the issue persists, reach out to the MathWorks support team for further assistance.
Regards,
Debadipto Biswas
  1 commentaire
Nagaraju Subramaniam
Nagaraju Subramaniam le 1 Août 2023
Hello Debadipto,
Thank you for the response.
The aim is to generate the a2l for a model. So there is no existing a2l file which has to be added in the path. GenerateASAP2 is enabled to generate a2l for the model which is being built.
As suggested in your answer, i have checked all the settings related to CANOE and code generation setttings and it seems to be correct.
The a2l generation error is happening only when i try to generate for a "referenced model".
Regards,
Nagaraju Subramaniam

Connectez-vous pour commenter.

Catégories

En savoir plus sur Simulink Coder dans Help Center et File Exchange

Produits


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by