Error while using "Generate S-function" for Simulink subsystem for targeted hardware (Rasberry Pi)
Afficher commentaires plus anciens
I am trying to "generate s function" for the subsystem (right click -> c/c++ Code --> Generate S-function ) of a simulink model implemented for rasberry pi. The hardware board (Configuration parameter --> Hardware implementation) is set to 'rasberry pi'. For some reasons (mainly for rasberry pi) I could not able to generate a s-function of the subsystems. The following error pops up.
"No supported compiler detected. A compiler is required by some simulation modes and the build process. Install a supported compiler. For options, see https://www.mathworks.com/support/compilers. After installing a supported compiler, restart MATLAB"
I already have installed the compilers and it is also visible when I type "mex -setup".
"MEX configured to use 'MinGW64 Compiler (C)' for C language compilation"
Can someone help me with this problem?
Réponses (1)
Benjamin Thompson
le 16 Fév 2022
Modifié(e) : Benjamin Thompson
le 16 Fév 2022
1 vote
MinGW64 is a compiler for Windows 64-bit code generation. Does "mex -setup" offer a compiler for for Rasberry Pi? There is probably some kind of MATLAB-friendly board support package for Rasberry Pi that you need to install or you have not configured MATLAB to be able to find it. I am not familiar with targeting embedded boards. Maybe you need to be using a System Target File for Rasberry Pi in your model Code Generation settings?
This documentation link may be helpful:
1 commentaire
Rishi Ramkannan
le 19 Fév 2022
Catégories
En savoir plus sur Embedded Coder dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!