0

IR Dump does not compile for Adafruit Feather M0 Basic
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

IR Dump does not compile for Adafruit Feather M0 Basic

by dqj999 on Mon Jul 26, 2021 7:32 am

I loaded the example "dump.ino" from the Adafruit library C:\Users\xxx\Documents\Arduino\libraries\IRLib2

On trying to load it I got these errors:

In file included from C:\Users\dqj99\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.7.3\cores\arduino/USB/PluggableUSB.h:23,
from C:\Users\dqj99\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.7.3\libraries\HID/HID.h:24,
from C:\Program Files (x86)\Arduino\libraries\Keyboard\src/Keyboard.h:25,
from C:\Users\dqj99\Documents\Arduino\libraries\IRLibProtocols/IRLib_P12_CYKM.h:88,
from C:\Users\dqj99\Documents\Arduino\libraries\IRLib2/IRLibAll.h:35,
from C:\Users\dqj99\Documents\Arduino\dump\dump.ino:9:
C:\Users\dqj99\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.7.3\cores\arduino/USB/USBAPI.h:189:16: error: conflicting declaration 'Serial_ Serial'
189 | extern Serial_ Serial;
| ^~~~~~
In file included from C:\Users\dqj99\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.7.3\cores\arduino/Arduino.h:154,
from sketch\dump.ino.cpp:1:
C:\Users\dqj99\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.7.3/libraries/Adafruit_TinyUSB_Arduino/src/arduino/Adafruit_USBD_CDC.h:88:26: note: previous declaration as 'Adafruit_USBD_CDC Serial'
88 | extern Adafruit_USBD_CDC Serial;


How do I fix this please? It appears to be a clash with Serial output.

Derek

dqj999
 
Posts: 2
Joined: Mon Jul 26, 2021 7:23 am

Re: IR Dump does not compile for Adafruit Feather M0 Basic

by mikeysklar on Mon Jul 26, 2021 9:45 pm

Hi Derek,

It looks like an issue has been opened with the IRLib2 repo on github.

https://github.com/cyborg5/IRLib2/issues/28

The proposed temporary work around is to add:

Code: Select all | TOGGLE FULL SIZE
#define Serial SERIAL_PORT_USBVIRTUAL


to IRLibDecodeBase.cpp file

mikeysklar
 
Posts: 5567
Joined: Mon Aug 01, 2016 8:10 pm

Re: IR Dump does not compile for Adafruit Feather M0 Basic

by dqj999 on Wed Jul 28, 2021 1:35 pm

Thanks for that, I will check that out
.

Derek

dqj999
 
Posts: 2
Joined: Mon Jul 26, 2021 7:23 am

Please be positive and constructive with your questions and comments.