Failed to generate all binary outputs in my Simulink Arduino block code
1 view (last 30 days)
Show older comments
Whitney Hogan
on 9 Dec 2016
Commented: Saqib Zafar
on 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 Comments
Accepted Answer
Hari Desanur
on 12 Dec 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 Comments
More Answers (2)
JUAN JOSE MUÑOZ
on 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 Comment
Saqib Zafar
on 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
on 14 Feb 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 Comment
John D'Errico
on 14 Feb 2019
Please stop adding answers to multiple old questions, when all you have is another question. Ask this as a separate question.
See Also
Categories
Find more on Run on Target Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!