C code won't compile for C caller but will run in other blocks

1 vue (au cours des 30 derniers jours)
Matthew Gingerich
Matthew Gingerich le 10 Mai 2019
I have some custom C code that gets added to a Simulink program and then programmed into a TI C2000 processor using Embedded Coder. Last week I created a C caller block that calls my C function and it worked fine. This week when I try to run the program with the C caller I get the error "No such file or directory" for many important header files. Adding the directories of these header files to the include paths just produced more errors. However, I can still run my C function by calling it from the Startup Initialization block. This indicates that the C code is fine, and the headers are fine-- It's only the C function caller that doesn't understand my code. I didn't change any settings since I had the C function caller working last week so I don't understand why it would stop working. Can anyone help me figure this out?

Réponses (1)

Venkatesh Chilapur
Venkatesh Chilapur le 13 Mai 2019
Hi Matthew,
Please try contacting MathWorks support at:
Regards,
Venkatesh C

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by