I'm working on a project that involves both serial communication and GSM transmission. I'm using the SoftwareSerial library for RS232 communication, and GSM (SMS) transmission:
- TX and RX for RS232 : Arduino Uno D3 and D4 pins
- TX and RX for GSM module : Arduino Uno D7 and D8 pins
The project requires also the use of the EnableInterrupt library to enable interrupt in Arduino's analog pins, meaning that I DON'T USE EnableInterrupt for all of the Arduino's digital pins including D3, D4, D7 and D8.
However when running the program that includes the two libraries, this long error message shows up :
libraries\SoftwareSerial\SoftwareSerial.cpp.o (symbol from plugin): In function `SoftwareSerial::read()':
(.text+0x0): multiple definition of `__vector_3'
sketch\sketch_jun14a.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\SoftwareSerial\SoftwareSerial.cpp.o (symbol from plugin): In function `SoftwareSerial::read()':
(.text+0x0): multiple definition of `__vector_5'
sketch\sketch_jun14a.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\SoftwareSerial\SoftwareSerial.cpp.o (symbol from plugin): In function `SoftwareSerial::read()':
(.text+0x0): multiple definition of `__vector_4'
sketch\sketch_jun14a.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
exit status 1
Erreur de compilation pour la carte Arduino/Genuino Uno
Clearly, there is a conflict between the two libraries, Is there any solution to remove this conflict and run the two libraries together ?
Thanks in advance !