Yello,

I've tried to use a NewSoftSeial library (from here http://arduiniana.org/libraries/newsoftserial/) for communication to addition device.
Then I changed a source code I have a strange error:
-----------------------------------------------------------
o: In function `__vector_5':
c:\tmp\build8505613515326416746.tmp/ArduPilot_2_7_beta3.cpp:2665: multiple definition of `__vector_5'

c:\tmp\build8505613515326416746.tmp\NewSoftSerial\NewSoftSerial.cpp.o:C:\_ArduIMU\arduino-0018\arduino-0018\libraries\NewSoftSerial/NewSoftSerial.cpp:330: first defined here

o: In function `__vector_3':
c:\tmp\build8505613515326416746.tmp/ArduPilot_2_7_beta3.cpp:2690: multiple definition of `__vector_3'

c:\tmp\build8505613515326416746.tmp\NewSoftSerial\NewSoftSerial.cpp.o:C:\_ArduIMU\arduino-0018\arduino-0018\libraries\NewSoftSerial/NewSoftSerial.cpp:316: first defined here
-------------------------------------------------------------
What does it mean `__vector_5' and `__vector_3'???

Modified code for ArduPilot_2_7.pde:

#include <avr/io.h>
#include <avr/eeprom.h>
#include <math.h>
#include <NewSoftSerial.h>
#include "defines.h"
....

Thanx for any advices.

Views: 125

Reply to This

Replies to This Discussion

PS examples for NewSoftSerial compiles without any problems...
Hi Recmaster--

I think that the _vector* symbols probably refer to the interrupt vectors that NewSoftSerial harnesses to perform RX. My guess is that somewhere else in your code someone is trying to use pin change interrupts. Is that possibly true?

Mikal Hart
If i use the library for ardupilot board(not mega) can use the xbee transmit data and GPS at the same time?? there are only 1 serial port? which board you use?
I'm afraid all of the timers are in use on the 328. You would need to rewrite the entire radio.pde file to use 1 timer instead of 3. This is possible.
#Jason thanx for your comment.

Could you please make more details what timers do you mean and how it possible to merge (3 to 1)?

RSS

Contests

Season Two of the Trust Time Trial (T3) Contest has now begun. The third round was a reliablilty/aerial photography round for both planes and copters, which is now closed. Stay tuned for the next round, beginning soon.

A list of all T3 contests is here

 

© 2012   Created by Chris Anderson.

Badges  |  Report an Issue  |  Terms of Service