Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflict with SoftwareSerial.h #59

Open
aitck opened this issue May 14, 2023 · 2 comments
Open

Conflict with SoftwareSerial.h #59

aitck opened this issue May 14, 2023 · 2 comments

Comments

@aitck
Copy link

aitck commented May 14, 2023

Compiling .pio\build\uno\src\PinChangeInterrupt_Led.ino.cpp.o
Linking .pio\build\uno\firmware.elf
SoftwareSerial.cpp.o (symbol from plugin): In function SoftwareSerial::read()': (.text+0x0): multiple definition of __vector_3'
.pio\build\uno\src\PinChangeInterrupt0.cpp.o (symbol from plugin):(.text+0x0): first defined here
SoftwareSerial.cpp.o (symbol from plugin): In function SoftwareSerial::read()': (.text+0x0): multiple definition of __vector_4'
.pio\build\uno\src\PinChangeInterrupt1.cpp.o (symbol from plugin):(.text+0x0): first defined here
SoftwareSerial.cpp.o (symbol from plugin): In function SoftwareSerial::read()': (.text+0x0): multiple definition of __vector_5'
.pio\build\uno\src\PinChangeInterrupt2.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\uno\firmware.elf] Error 1

@zaindroid
Copy link

Did you find solution for this?

@Jediweirdo
Copy link

Jediweirdo commented Nov 19, 2024

@zaindroid
To update you guys on this, apparently SoftwareSerial uses delays in its interrrupts (which is a pretty bad coding practice), which makes it incompatible with most Interrupt-Based Libraries, like this one. You can read more about it here, but the TL;DR of all this is to stop using SoftwareSerial and try using its counterpart AltSoftSerial if you aren't using all of your Arduino's timers. If you are... I guess you're kinda cooked :p

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants