Why does code generation with AUTOSAR results in a CGIR assertion?
Show older comments
I have imported an ARXML file and done "createComponentAsModel" . However, when building (Ctrl+B) the skeleton model that was created in R2017b or earlier releases, code generation results in a CGIR exception, as follows:
CGIR assertion 'T::isa((const Type*)aType)' failed in 'b:\matlab\src\cg_ir\export\include\cg_ir\type\type.hpp:501'
[ 0] 0x000000010fc0a392 bin\win64\cg_ir.dll+01024914 cg_const_create_matrix_numeric_from_double+00000114
[ 1] 0x00000001b8c4e726 bin\win64\rtwcg.dll+02615078 RTWCG::RTWBlock::CreateConst+00000118
[ 2] 0x00000001a46af903 bin\win64\libmwsimulink.dll+05437699 SLGlue::getArgumentSpecificationFromSubsys+00201555
[ 3] 0x00000001b8c846a2 bin\win64\rtwcg.dll+02836130 RTWCG::RTWCGCtx::constructCode+00001922
[ 4] 0x00000001a46af397 bin\win64\libmwsimulink.dll+05436311 SLGlue::getArgumentSpecificationFromSubsys+00200167
[ 5] 0x00000001a51320f2 bin\win64\libmwsimulink.dll+16457970 BlockSetLocation+00026514
[ 6] 0x00000001a4bcf802 bin\win64\libmwsimulink.dll+10811394 sleGetRTWBlockForSLBlock+00071938
[ 7] 0x00000001a4bc8627 bin\win64\libmwsimulink.dll+10782247 sleGetRTWBlockForSLBlock+00042791
[ 8] 0x00000001a4b94d18 bin\win64\libmwsimulink.dll+10571032 SleCompModelAPI::requestBlockReduction+00600824
[ 9] 0x00000001a4b8cd77 bin\win64\libmwsimulink.dll+10538359 SleCompModelAPI::requestBlockReduction+00568151
[ 10] 0x00000001a4c04d56 bin\win64\libmwsimulink.dll+11029846 PartitionSort::BlockPartition::getFcnCallPortGroupIndex+00115158
[ 11] 0x00000001a4c0b16a bin\win64\libmwsimulink.dll+11055466 PartitionSort::BlockPartition::getFcnCallPortGroupIndex+00140778
[ 12] 0x00000001a47f178e bin\win64\libmwsimulink.dll+06756238 SLGlue::getShowSigGenName+00100334
[ 13] 0x000000001556d42e bin\win64\pgo\m_dispatcher.dll+00119854 mdPathNotification::function_rebind_notification+00000158
[ 14] 0x000000001555a780 bin\win64\pgo\m_dispatcher.dll+00042880 Mfunction_handle::dispatch+00000688
[ 15] 0x00000000161f9899 bin\win64\pgo\m_lxe.dll+00235673
Is there any way I can work around this issue to generate code for my model?
Accepted Answer
More Answers (0)
Categories
Find more on Simulink Coder in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!