Simulink compilation error: Launchpad F28069M

3 views (last 30 days)
Hello,
i am having an issue while downloading the code to the mcu using simulink code generation. My matlab version is 2016b and i am using the embedded coder add-on for TI C2000 processors. Untill now everything has been working nicely, but now i've been getting the following compilation error when building the code.
if true
%
IC:/ProgramData/MATLAB/SupportPackages/R2016b/toolbox/target/shared/externalmode_daemon/include --output_file="ext_svr_c2000.obj" "C:/ProgramData/MATLAB/SupportPackages/R2016b/toolbox/target/supportpackages/tic2000/src/ext_svr_c2000.c"
"C:/ProgramData/MATLAB/SupportPackages/R2016b/toolbox/target/supportpackages/tic2000/src/ext_svr_c2000.c", line 54: fatal error: cannot open source file "multiword_types.h"
1 catastrophic error detected in the compilation of "C:/ProgramData/MATLAB/SupportPackages/R2016b/toolbox/target/supportpackages/tic2000/src/ext_svr_c2000.c".
Compilation terminated.
>> Compilation failure
gmake: *** [ext_svr_c2000.obj] Error 1
D:\temp\BuildFolder\IMU_PIDNC_ert_rtw>echo The make command returned an error of 2
The make command returned an error of 2
D:\temp\BuildFolder\IMU_PIDNC_ert_rtw>An_error_occurred_during_the_call_to_make
Der Befehl "An_error_occurred_during_the_call_to_make" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
(((((Error cannot open source file "multiword_types.h"))))))
end
What could be causing the error? I have used the same simulink model with the mcu and compiled the code without any issues. Maybe i changed something and now it cannot find the header file "multiword_types.h". Thanks in advance!
Regards, Emmanuel

Accepted Answer

Venkatesh Chilapur
Venkatesh Chilapur on 2 Jul 2018
Looks like your model is stuck in external mode configuration which happens to be a intermediate config set that is used in background when running external mode. If external mode terminates with a error then the model could be stuck in this configuration and could result in this error. Please try to switch to default config from model explorer and see if this helps.
  1 Comment
Emmanuel Santiago Iglesias
Thanks for the quick answer! it solved my issue when setting the configuration values again from a default configuration. What could be the cause of this error, in order to avoid having the same issue again? From what i know, my simulink didn't terminate the external mode with an error. I stopped the simulation normally and when i tried to run it again i had this error.

Sign in to comment.

More Answers (0)

Categories

Find more on Deployment, Integration, and Supported 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!