embeddedcoder error: "Too many input arguments" during C code generation

조회 수: 4 (최근 30일)
Andrea Verdicchio
Andrea Verdicchio 2021년 4월 29일
답변: Harsh 2025년 3월 24일
Good morning
I want generate a C-code with embedded coder, but I have this error.
I have a bloc with 26 inputs, but I do not belive that it is the problem.
Thank you for your time.
Regards,
Andrea

답변 (1개)

Harsh
Harsh 2025년 3월 24일
The "Too many input arguments" error during C code generation with Embedded Coder might be due to an underlying configuration or installation issue. Here are some steps you can try to resolve the issue:
  • Clear the MATLAB cache, restart MATLAB, and restart your computer.
  • Delete or rename your MATLAB preferences directory to allow MATLAB to regenerate it. This can solve problems caused by corrupted preferences.
  • Move your model to a simple and short directory path, such as your Desktop. Windows can be particular about path lengths and special characters.
Additionally, it would be helpful to verify the compiler information being used for code generation. You can do this in Simulink by navigating to "Settings" > "Code Generation" and checking the "Toolchain" option.
Please share your Simulink model or reproduction steps to reproduce the error for better assistance.

카테고리

Help CenterFile Exchange에서 MATLAB Coder에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by