No isr on attitiny while using softwareserial

Hello to all, I’m trying to use interrupt on ATtiny85 and the softwareserial. But when I compile i get this error

libraries\SoftwareSerial\SoftwareSerial.cpp.o (symbol from plugin): In function `SoftwareSerial::read()':

(.text+0x0): multiple definition of `__vector_2'

sketch\sketch_oct30a.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here

collect2.exe: error: ld returned 1 exit status

Più di una libreria trovata per "SoftwareSerial.h"
Usata: C:\Program
exit status 1
Errore durante la compilazione per la scheda ATtiny25/45/85.

I’ve tried to change the ISR condition from ISR(PCINT0_vect) to ISR(INT0_vect), but nothing happened now it’s compile but don’t do what is wrote in the ISR function.

#include <avr/io.h>
#include <util/delay.h>
#include <avr/interrupt.h>
#include <SoftwareSerial.h>
#define RX_PIN 0
#define TX_PIN 1
SoftwareSerial mySerial(RX_PIN, TX_PIN);
int countR=0;
int l00p=0;
void setup() {
    GIMSK = (1 << INT0); //Enable Pin Change Interrupts
    PCMSK = (1 << PCINT0);


void loop() {
  mySerial.print("Stato pulsante "); 
  mySerial.println("qui ci dovrebbe essere l'interrupt");


This is the code that I used for test. Some advice? Or Help are appreciated

Software serial may not work properly if you are using other interrupts, or it will interfere with those interrupts.


Can't do this from inside any interrupt, because interrupts are turned off.

I suggest that you study this tutorial on interrupts.

multiple definition of `__vector_2'swSerial is using that interrupt vector. it is saying you can't use it twice.


multiple definition of `__vector_2'swSerial is using that interrupt vector. it is saying you can't use it twice.

I've already known that a way to fix? Or how to use together?

Well looking at this
there is only 1 routine that can be called in case of a pin-change interrupt and Software Serial is using it, for reception i presume. Now to verify this having a look in the ATtiny85 softwareSerial.h & .cpp would be a good idea. You might be able to modify them (under a different name) and either remove the whole reception section (which should include the ISR) or add a line within the ISR in it that refers to a different function in which you can do what you want.