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

[email protected] won't compile [email protected] #69

Closed
deladriere opened this issue Jul 14, 2019 · 3 comments
Closed

[email protected] won't compile [email protected] #69

deladriere opened this issue Jul 14, 2019 · 3 comments
Assignees

Comments

@deladriere
Copy link

deladriere commented Jul 14, 2019

It works fine with [email protected]
here is my Platformio.ini

[env:adafruit_feather_m0]
platform = [email protected]
board = adafruit_feather_m0
framework = arduino

lib_deps =
  [email protected]
  [email protected]

It gives many errors

.platformio/packages/framework-arduinosam/cores/adafruit/USB/USBAPI.h:118:23: error: conflicting declaration 'USBDeviceClass USBDevice'
.platformio/packages/framework-arduinosam/cores/adafruit/USB/USBAPI.h:189:16: error: conflicting declaration 'Serial_ Serial'
.platformio/packages/framework-arduinosam/cores/adafruit/USB/USBAPI.h:118:23: error: conflicting declaration 'USBDeviceClass USBDevice'
@smplman
Copy link

smplman commented Jul 27, 2019

@deladriere I ran into this issue with my SparkFun SamD21 Mini. I had to go into the library files mentioned in the errors and update references to Serial to be SerialUSB. This is because the default serial on most Arduinos is Serial and on the SamD21 it is SerialUSB for usb serial. I haven't been able to find a good work around besides editing the library manually.

@valeros
Copy link
Member

valeros commented Sep 2, 2019

Hi @deladriere ! Thanks for reporting the issue. Please try the latest platform from the development branch:

[env:adafruit_feather_m0]
platform = https://github.com/platformio/platform-atmelsam.git
board = adafruit_feather_m0
framework = arduino

lib_deps =
  [email protected]
  [email protected]

@deladriere
Copy link
Author

hi @valeros
this version
platform = https://github.com/platformio/platform-atmelsam.git
is working fine !
thanks a lot

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