NewSoftSerial and AP 2.7.1

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.

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Developer
    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.
  • 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?
  • 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
  • PS examples for NewSoftSerial compiles without any problems...
This reply was deleted.

Activity