ERROR WHILE LOADING MY SIMULATION TO THE F28035 C2000 MCU

조회 수: 2 (최근 30일)
Khalid Javed
Khalid Javed 2021년 2월 18일
댓글: Khalid Javed 2021년 2월 22일
I am trying to load my simulations directly from Matlab to the F28035 C2000 MCU, but when I click on the build button then it does generates the code but gives the following error.
32 errors detected in the compilation of "C:/Program Files/Matlab/ResearchR2017b/toolbox/physmod/simscape/engine/sli/c/win64/ssc_sli_89d0f30a.c". >> Compilation failure gmake: *** [ssc_sli_89d0f30a.obj] Error 1 C:\Users\kjaved\AppData\Local\Temp\Test2singleboostsimulationwopowerguislx_ert_rtw>echo The make command returned an error of 2 The make command returned an error of 2 C:\Users\kjaved\AppData\Local\Temp\Test2singleboostsimulationwopowerguislx_ert_rtw>An_error_occurred_during_the_call_to_make 'An_error_occurred_during_the_call_to_make' is not recognized as an internal or external command, operable program or batch file. ### Creating HTML report file Test2singleboostsimulationwopowerguislx_codegen_rpt.html
### Build procedure for model: 'Test2singleboostsimulationwopowerguislx' aborted due to an error.
Error(s) encountered while building "Test2singleboostsimulationwopowerguislx": ### Failed to generate all binary outputs.
Any suggettions how to get rid of it? I am using matlab R2017b.
Thanks.
Regards
  댓글 수: 2
Walter Roberson
Walter Roberson 2021년 2월 18일
You might need to (re)-install the compiler, or at the very least use mex -setup to select the compiler.
Khalid Javed
Khalid Javed 2021년 2월 22일
Thanks for your help.
I used the command mex -setup in MATLAB and it prompts the following message.
>> mex -setup
MEX configured to use 'MinGW64 Compiler (C)' for C language compilation.
Warning: The MATLAB C and Fortran API has changed to support MATLAB
variables with more than 2^32-1 elements. You will be required
to update your code to utilize the new API.
You can find more information about this at:
http://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html.
To choose a different language, select one from the following:
mex -setup C++
mex -setup FORTRAN
As I also follow the link but it is asking me to update my code but I am using my simulations directly.
The attached file contains my simulink .slx file.
How can I deal with this situation?
Thanks.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

태그

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by