Error while uploading Simulink model to an external arduino mega 2560 hardware

조회 수: 2 (최근 30일)
When I tried to generate code and upload it on my arduino mega 2560 hardware, I got following error: "### Failed to generate all binary outputs" The detailed error message is with the file attached to this question. Please help me to solve this problem.
  댓글 수: 11
Birdman
Birdman 2018년 1월 6일
I could not look yet, I will look in following hours.

댓글을 달려면 로그인하십시오.

채택된 답변

Birdman
Birdman 2018년 1월 8일
Hi Omkar,
Firstly, as far as I know, there are many limitations about generating code from a Simscape Block. When I looked into help documentation, I found out this:
Furthermore, it might be good for you to refer to the following links:
Now, when I generated C code from your model, I encountered with a code of more than 1000 lines(exactly 1096 lines). It is relatively lots of code for a simple model. Also, the static file generated for the model, which is simscape target specific file, contains more than 3000 lines of code.
Also, if you read the links, you will see the related stuff for those situations. I believe you can redo the part you did with Simscape Blocks with Simulink blocks from different libraries. Please consider this approach and let me know the results.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Hardware-in-the-Loop Simulation with Simulink Real-Time에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by