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

1 visualización (últimos 30 días)
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!

Respuesta aceptada

Hari Desanur
Hari Desanur el 12 de Dic. de 2016
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.

Más respuestas (2)

JUAN JOSE MUÑOZ
JUAN JOSE MUÑOZ el 20 de En. de 2018
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 comentario
Saqib Zafar
Saqib Zafar el 25 de Nov. de 2019
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.

Iniciar sesión para comentar.


Ricardo Jaramillo Diaz
Ricardo Jaramillo Diaz el 14 de Feb. de 2019
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 comentario
John D'Errico
John D'Errico el 14 de Feb. de 2019
Please stop adding answers to multiple old questions, when all you have is another question. Ask this as a separate question.

Iniciar sesión para comentar.

Categorías

Más información sobre Run on Target Hardware en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by