Failed to generate all binary outputs in my Simulink Arduino block code

조회 수: 3 (최근 30일)
Towards the bottom of the diagnostic viewer output this is what shows up
second_try.c: In function 'second_try_step':
second_try.c:292:1: error: unable to find a register to spill in class 'POINTER_REGS'
}
^
second_try.c:292:1: error: this is the insn:
(insn 670 669 672 43 (set (reg:SF 183 [ D.2969 ])
(mem:SF (post_inc:HI (reg:HI 16 r16 [orig:229 ivtmp.20 ] [229])) [4 MEM[base: _277, offset: 0B]+0 S4 A8])) second_try.c:111 99 {*movsf}
(expr_list:REG_INC (reg:HI 16 r16 [orig:229 ivtmp.20 ] [229])
(nil)))
second_try.c:292: confused by earlier errors, bailing out
gmake: *** [second_try.o] Error 1
### Creating HTML report file second_try_codegen_rpt.html
Error(s) encountered while building "second_try":
### Failed to generate all binary outputs.
I am not very good with coding (even though I know this is not real coding) but reading fail reports and fixing through them has never been my strong suit. If I could get help that would be great!

채택된 답변

Hari Desanur
Hari Desanur 2016년 12월 12일
Try to build your Simulink model by using one of the following solvers instead of the default "ode3 (Bogacki-Shampine)" solver -
1. ode8 (Dormand-Prince RK8(7))
2. ode5 (Dormand-Prince)
3. ode2 (Heun)
4. ode1 (Euler)
This should fix the issue. You can change the solver by opening the Configuration Parameters (Ctrl+E) and then changing the 'Solver' under the 'Solver options' menu.

추가 답변 (2개)

JUAN JOSE MUÑOZ
JUAN JOSE MUÑOZ 2018년 1월 20일
change the path of my file because the previous one had folders with space, my new route was: c: / desktop / test / archivosimulink, and it worked, thank you, I think that if you want to leave your route you should remove all the spaces to the folders the route
  댓글 수: 1
Saqib Zafar
Saqib Zafar 2019년 11월 25일
Hy, I tried to solve this issue using Your method but it still generetes the same error. Can U suggest me another method to solve that error.

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


Ricardo Jaramillo Diaz
Ricardo Jaramillo Diaz 2019년 2월 14일
good evening,
i have the trouble:
C:/PROGRA~1/MATLAB/R2017b/toolbox/physmod/simscape/engine/sli/c/win64/ssc_sli_51dbd3b5.c:1341:1: error: total size of local objects too large gmake: *** [ssc_sli_51dbd3b5.o] Error 1 C:\Users\Ricardo Jaramillo\Desktop\test\archivossimulink\untitled_ert_rtw>echo The make command returned an error of 2 The make command returned an error of 2 C:\Users\Ricardo Jaramillo\Desktop\test\archivossimulink\untitled_ert_rtw>An_error_occurred_during_the_call_to_make "An_error_occurred_during_the_call_to_make" no se reconoce como un comando interno o externo, programa o archivo por lotes ejecutable. ### Creating HTML report file untitled_codegen_rpt.html
### Build procedure for model: 'untitled' aborted due to an error.
Error(s) encountered while building "untitled": ### Failed to generate all binary outputs. and my circuit is
Captura de pantalla (170).png
what can i do to resolv this problem?
  댓글 수: 1
John D'Errico
John D'Errico 2019년 2월 14일
Please stop adding answers to multiple old questions, when all you have is another question. Ask this as a separate question.

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

카테고리

Help CenterFile Exchange에서 MATLAB Support Package for Arduino Hardware에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by