Simulink code generation error in: rtwcg_modu​le_reuse_b​uffer_inse​rtion.cpp

4 ビュー (過去 30 日間)
Jannik
Jannik 2023 年 7 月 4 日
コメント済み: Jannik 2023 年 8 月 16 日
Hello Community,
while generating C-Code from Simulink R2019b, I get the following error:
Code generation assertion 'index != -1' failed in 'b:\matlab\src\rtwcg\rtwcg_utils\rtwcg_module_reuse_buffer_insertion.cpp:354'.
Is there any idea what this message means, or, what I can do to avoid this error?
Thanks in advance

採用された回答

Sourabh
Sourabh 2023 年 8 月 16 日
Hey Jannik,
This might be caused by some issue with internal optimization.
A simple workaround for you is to go to "Configuration parameters > Code Generation > Optimization", check "Specify custom optimizations" and turn off 'in-place bus assignment reuse', which is documented below:
This should not cause significant effect in the efficiency of your model and generated code.
Hope this helps!
  1 件のコメント
Jannik
Jannik 2023 年 8 月 16 日
Hi Sourabh,
you are absolutly correct, this is the way to handle the error. Thanks for your time and thanks for sharing the solution with the community.
With best regards,
Jannik

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulink Coder についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by