필터 지우기
필터 지우기

Why am I getting a "Code generation assertion 'inportNam​esToPropsM​ap.find(ar​gName) == inportName​sToPropsMa​p.end()' failed"?

조회 수: 19 (최근 30일)
Hi all,
I am trying to generate C++ code for a Simulink model using the Embedded Coder. The model is able to compile and run in Matlab R2021b, but when I generate the code I get the following error:
Code generation assertion 'inportNamesToPropsMap.find(argName) == inportNamesToPropsMap.end()' failed in 'B:\matlab\src\slcg_buffer_reuse\analysis\reusable_csc_utils.cpp:2027'
I am not sure what the error could relate to.
  댓글 수: 2
Benjamin Thompson
Benjamin Thompson 2022년 3월 16일
Can you copy your model, then remove as much as possible while still having this error happen? If the error goes away, it may help you solve your problem. If not, perhaps the simpler model can be posted here for the Community to help.
German Rodriguez
German Rodriguez 2022년 3월 16일
I attach the model here
The model in question is SupervisorFSM_RX.slx. To be able to use the model you must first run update_dictionary.m, and have all the other files in the matlab path.
If you compile (for example by pressing Update Model) it works, but when using the Embedded Coder you should get the error.

댓글을 달려면 로그인하십시오.

답변 (1개)

Kausthub
Kausthub 2023년 10월 5일
편집: Kausthub 2023년 10월 5일
Hi German Rodriguez,
I understand that you are facing an error while generating code using Embedded Coder for a Simulink model.
Code generation assertion 'inportNamesToPropsMap.find(argName) == inportNamesToPropsMap.end()' failed in 'B:\matlab\src\slcg_buffer_reuse\analysis\reusable_csc_utils.cpp:2027'
The error could be because of potential conflicting usages of identifier 'arg_Input': a global identifier from 'C++ class interface', and a global identifier from 'C++ class interface'.
This conflict may be resolved by either increasing the maximum identifier length on the Identifiers pane of the Configuration Parameters dialog box or by changing the name of the conflicting identifier.
Hope this helps and solves your error!

카테고리

Help CenterFile Exchange에서 Deployment, Integration, and Supported Hardware에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by