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

Software Serial clash with Margay #4

Open
ericbarefoot opened this issue Jun 28, 2022 · 1 comment
Open

Software Serial clash with Margay #4

ericbarefoot opened this issue Jun 28, 2022 · 1 comment

Comments

@ericbarefoot
Copy link

ericbarefoot commented Jun 28, 2022

With the following MWE:

#include "Margay.h"
#include "Matbotix.h"

void setup() {}
void loop() {}

I get the following compiler error:

libraries/SoftwareSerial/SoftwareSerial.cpp.o (symbol from plugin): In function `SoftwareSerial::read()':
(.text+0x0): multiple definition of `__vector_4'
libraries/Margay_Library/Margay.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2: error: ld returned 1 exit status

A quick internet suggests that this means SoftwareSerial and some part of Margay are fighting for the same timer or pin-change interrupt. I do not know enough at the moment to diagnose which resource the two libraries are trying to fight over, so I am dropping this here in case someone else will be able to identify it faster.

@ericbarefoot
Copy link
Author

Could it be possible to use Serial to communicate with the sensor instead of SoftwareSerial?

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

1 participant