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.
Replies
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