Simulink compilation error: Launchpad F28069M
3 次查看(过去 30 天)
显示 更早的评论
Emmanuel Santiago Iglesias
2018-7-2
评论: Emmanuel Santiago Iglesias
2018-7-2
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
0 个评论
采纳的回答
Venkatesh Chilapur
2018-7-2
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.
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!