ERROR WHILE LOADING MY SIMULATION TO THE F28035 C2000 MCU

1 Ansicht (letzte 30 Tage)
Khalid Javed
Khalid Javed am 18 Feb. 2021
Kommentiert: Khalid Javed am 22 Feb. 2021
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 Kommentare
Walter Roberson
Walter Roberson am 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 am 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.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Simulink Coder finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by