ERROR WHILE LOADING MY SIMULATION TO THE F28035 C2000 MCU

1 view (last 30 days)
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 Comments
Walter Roberson
Walter Roberson on 18 Feb 2021
You might need to (re)-install the compiler, or at the very least use mex -setup to select the compiler.
Khalid Javed
Khalid Javed on 22 Feb 2021
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.

Sign in to comment.

Answers (0)

Categories

Find more on Troubleshooting in MATLAB Compiler SDK in Help Center and File Exchange

Tags

Products


Release

R2017b

Community Treasure Hunt

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

Start Hunting!