Hi all,
I'm trying to use hardware serial interrupt with ISR macro on a Arduino mega 2560. I have got the following error message during compile
core.a(HardwareSerial.cpp.o): In function __vector_25':* *C:\arduino-1.0\hardware\arduino\cores\arduino/HardwareSerial.cpp:102: multiple definition of
__vector_25'
HardSerial.cpp.o:C:\Users\MONPC~1\AppData\Local\Temp\build7790499637850564338.tmp/HardSerial.cpp:5: first defined here
ISR(USART_RX_vect)
{
Serial.print("-");
}
void setup() {
Serial.begin(9600);
Serial.println("Init OK");
}
void loop(){
}
I don't understand this message and don't know what to do with.
Both Arduino V1.0 and V1.0.1 do the same. If i replace USART0_RX_vect by ADC_vect compilation is OK.
Thank you