Error in Simulink model with Arduino mega....

조회 수: 5 (최근 30일)
D D
D D 2016년 10월 10일
답변: Johannes 2018년 3월 8일
Error when i try to compile Simulink with Arduino Mega....The error is..1.6.1/libraries/Servo/src/avr -o "untitled.o" "untitled.c" untitled.c: In function 'untitled_step': untitled.c:204:1: error: unable to find a register to spill in class 'POINTER_REGS' } ^ untitled.c:204:1: error: this is the insn: (insn 349 348 351 15 (set (reg:SF 138 [ D.2750 ]) (mem:SF (post_inc:HI (reg:HI 16 r16 [orig:177 ivtmp.19 ] [177])) [4 MEM[base: _184, offset: 0B]+0 S4 A8])) untitled.c:103 99 {*movsf} (expr_list:REG_INC (reg:HI 16 r16 [orig:177 ivtmp.19 ] [177]) (nil))) untitled.c:204: confused by earlier errors, bailing out gmake: * [untitled.o] Error 1
please help cant find any info!!

답변 (2개)

INFOZOU
INFOZOU 2016년 10월 16일
편집: Walter Roberson 2016년 10월 17일
  댓글 수: 2
D D
D D 2016년 10월 18일
I still have the same error.
D D
D D 2016년 10월 31일
Does anyone else have this issue?

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


Johannes
Johannes 2018년 3월 8일
I had the same problem with the Arduino Mega 2560 and the Arduino Uno, when I used the State Space Block with a number of states higher than 2. After changing the solver to ode8 (Dormand-Prince RK8(7)), it worked. Here I found this solution:

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by