Problem deploying simulink program to Lego EV3 block. -> fatal error: xcp_common.h: No such file or directory

5 views (last 30 days)
We have a simulink program working with our EV3 Robot if we use Monitor & Tune to download the program and run it.
But we have the competition next saturday and we cannot deploy the program to the EV3, using Build, Deploy and Start button.
With Monitor & Tune everything works fine, but the program is not stored in the LEgo EV3 brick, so we have to dowload each time we need to run the program, and we cannot do that in the competition.
We need to deploy the program to the ev3, but we get this error when building the program
C:/PROGRA~1/Matlab/R2021a/toolbox/coder/xcp/src/target/slave/platform/default/xcp_platform_default.c:12: fatal error: xcp_common.h: No such file or directory compilation terminated. C:/PROGRA~1/Matlab/R2021a/toolbox/coder/rtiostream/src/rtiostreamtcpip/rtiostream_tcpip.c:32: fatal error: rtiostream.h: No such file or directory compilation terminated. gmake: *** [rtiostream_tcpip.o] Error 1 gmake: *** Waiting for unfinished jobs.... gmake: *** [xcp_platform_default.o] Error 1
Any help will be apreciated.
  1 Comment
Julio Zurbitu Aldama
Julio Zurbitu Aldama on 11 Sep 2021
Edited: Julio Zurbitu Aldama on 11 Sep 2021
I have been investigating, and the problems seems to be related to include paths...
If i copy the *.h files that the compiler doesn't find, to the folder where the *.c file are. It works....
I have moved 3 or 4 "*.h" files and it works.
I post here, in case it is helpfull for somebody, or if it gives any clue to find a better solution

Sign in to comment.

Answers (0)

Categories

Find more on LEGO MINDSTORMS EV3 Hardware 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!