Failed to generate all binary outputs in my Simulink Arduino block code
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Whitney Hogan
le 9 Déc 2016
Commenté : Saqib Zafar
le 25 Nov 2019
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!
0 commentaires
Réponse acceptée
Hari Desanur
le 12 Déc 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.
2 commentaires
Plus de réponses (2)
JUAN JOSE MUÑOZ
le 20 Jan 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 commentaire
Saqib Zafar
le 25 Nov 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.
Ricardo Jaramillo Diaz
le 14 Fév 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
what can i do to resolv this problem?
1 commentaire
John D'Errico
le 14 Fév 2019
Please stop adding answers to multiple old questions, when all you have is another question. Ask this as a separate question.
Voir également
Catégories
En savoir plus sur Run on Target Hardware dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!