Why am I getting a "Code generation assertion 'inportNamesToPropsMap.find(argName) == inportNamesToPropsMap.end()' failed"?
12 ビュー (過去 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
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.
回答 (1 件)
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!
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!