Error while using "Generate S-function" for Simulink subsystem for targeted hardware (Rasberry Pi)

8 ビュー (過去 30 日間)
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?

回答 (1 件)

Benjamin Thompson
Benjamin Thompson 2022 年 2 月 16 日
編集済み: Benjamin Thompson 2022 年 2 月 16 日
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 件のコメント
Rishi Ramkannan
Rishi Ramkannan 2022 年 2 月 19 日
Hi. Thank you so much. I will have a look at the documentation about the support of MinGW64 for Rasberry Pi.

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by