-
Notifications
You must be signed in to change notification settings - Fork 12
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
multiple definition of `SERCOM4_Handler' #8
Comments
It looks like MKR WiFi 1010 uses sercom4 and sercom5. The sercom to use is selected by macros in LXSAMD21DMX.h. There are a number of pre-defined options. I just added an option for MKR 1010 that selects sercom2, pins 3 & 4. You can select other of the pre-defined options by uncommenting line 500 and changing the value of use_optional_sercom_macros. The variations are defined in lines 504-631. There are comments explaining the various options including what sercom/pins combination they use. |
Thanks for the quick response, this is really helpful! |
I am also having this issue, Have followed your instructions however I am using a MKR 1500 NB. I chose macro 4 I am unsure of what to uncomment at line 500. This is what is at line 500 for me...
I commented out these
However this is not working. |
In the current version, the line to uncomment is 532. It looks like this: You change the '3' to the macro you wish to use. I, too, am having this problem using a XIAO (which should allow me to access SERCOM4 on pins 6&7. I can't figure out what the conflict is, but if anyone has any good ideas, they'd be much appreciated. |
Just to follow up, I did figure out how to use SERCOM4 (pins 6 & 7) on the XIAO. There were two steps. First was to create a new optional macro, as such:
And then I had to comment out (or delete) the following lines in the XIAO's variant.cpp:
|
This is exaxtly what is required when a board definition has a sercom handler for Serial1 that is defined, for example:
for the library to work. Which might not be quickly obvious because of the library's use of macros which let you target different sercoms. See the header file |
I just installed this library and tried to get one of the examples to work. Unfortunately I get this error when trying to compile for the MKR WiFi 1010. Is there any way to resolve this?
The text was updated successfully, but these errors were encountered: