Error while using "Generate S-function" for Simulink subsystem for targeted hardware (Rasberry Pi)
8 views (last 30 days)
Show older comments
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?
0 Comments
Answers (1)
Benjamin Thompson
on 16 Feb 2022
Edited: Benjamin Thompson
on 16 Feb 2022
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:
See Also
Categories
Find more on MATLAB Support for MinGW-w64 C/C++ Compiler in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!