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

1 回表示 (過去 30 日間)
Whitney Hogan
Whitney Hogan 2016 年 12 月 9 日
コメント済み: Saqib Zafar 2019 年 11 月 25 日
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 件のコメント
Robert
Robert 2017 年 1 月 15 日
This did not solve the issue any ideas?
sobhan toulabi
sobhan toulabi 2018 年 11 月 29 日
thanks, you saved me.

サインインしてコメントする。

その他の回答 (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 Center および File ExchangeRun on Target Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by