Error while parsing custom code: import problems in C caller block for generated Autosar C code

I would like to import some generated Autosar code into my model to simulate with the other model (MBD) using the C caller block. I was fixing the include issues step-by-step and at the end came across with the problem that Matlab asks me to fix the code itself due to some detected problems (see below):
Error while parsing custom code. Fix the errors in your custom code or disable 'Import custom code' if your custom code has incompatibilities.
Caused by:
Component:Simulink | Category:Model error
I have a feeling that the Matlab cannot resolve the complexity of the Autosar C code structure and ask me to correct the "extern FUNC(void, CtApVehCtrl_CODE);" as a separate function declaration although this is not the case. The "FUNC(void, CtApVehCtrl_CODE)" belongs to the Run_CtApVehCtrl_Init(void) function declaration.
This "FUNC" macro is defined by the Autosar for its function declaration.
I would highly appreciate the input in which direction I should be searching for the mistake or how to fix this problem.
Regards,
Renat.

답변 (0개)

카테고리

도움말 센터File Exchange에서 AUTOSAR Blockset에 대해 자세히 알아보기

제품

질문:

2020년 5월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by