Why do I get an error while parsing custom code for my Simulink model?

조회 수: 26 (최근 30일)
David Tong
David Tong 2022년 5월 5일
편집: Vincent Massart 2023년 1월 18일
Hi there,
I am trying to run a simulink model in which some C caller blocks are used ( external custom c code). The Model is legacy model but I am trying to run it on Matlab 2021b
The C comoiler is MinGW64 Compiler (C)
I already updated the model advisor befoer I try to RUN the model. I received the follwoing error:
Error while parsing custom code for model 'mymodel'. Fix the errors in your custom code or disable 'Import custom code' if your custom code has incompatibilities.
Caused by:
Component:Simulink | Category:Block diagram error
Advice and input very welcome, thanks!
  댓글 수: 6
David Balbuena
David Balbuena 2022년 5월 12일
It could be an issue with the code parser. Are you able to share your code? I'd recommend contacting technical support, just in case this is a bug: https://www.mathworks.com/support/contact_us.html
Vincent Massart
Vincent Massart 2023년 1월 18일
편집: Vincent Massart 2023년 1월 18일
We have a very similar problem with R2018b and C Caller
all work on my colleague machine and not anymore on mine....
In line 12 of c:\xxxxxxxxxx\xxxxxxxxxxxxxxxxxxxx\xxxx_fpga_raw_convert.h, expected a ";": | typedef struct __attribute__ ((packed)) function_name {

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

답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by