Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

Adafruit Grand Central M4 Express
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Adafruit Grand Central M4 Express

by Migueliyo on Fri Apr 10, 2020 7:28 am

Hello my name is Miguel from Spain and I have a problem with the board does not appear on the board list of the arduino library. I have followed these steps (https://learn.adafruit.com/adafruit-gra ... rduino-ide) but I am not successful. I have installed the pack Arduino SAMD ( 32-bits ARM Cortex-M0+) Boards but not appear this board "Grand Central M4 Express" as it appears in the tutorial.
Attachments
11.jpg
11.jpg (166.54 KiB) Viewed 55 times
22.jpg
22.jpg (148.62 KiB) Viewed 55 times

Migueliyo
 
Posts: 5
Joined: Fri Apr 10, 2020 6:29 am

Re: Adafruit Grand Central M4 Express

by dastels on Fri Apr 10, 2020 9:17 am

Did you also install/update the Adafruit SAMD board package?

Dave

dastels
 
Posts: 3403
Joined: Tue Oct 20, 2015 3:22 pm

Re: Adafruit Grand Central M4 Express

by Migueliyo on Fri Apr 10, 2020 10:08 am

I have successfully installed the package from Arduino named "Arduino SAMD Boards" and installed version 1.8.6 which I think is the last since Arduino there is no package with the name "Adafruit SAMD board package" I need help please I have to install it on a broken 3D printer to make masks.
Attachments
33.jpg
33.jpg (157.5 KiB) Viewed 48 times

Migueliyo
 
Posts: 5
Joined: Fri Apr 10, 2020 6:29 am

Re: Adafruit Grand Central M4 Express

by dastels on Fri Apr 10, 2020 10:37 am

Instructions are in the Grand Central tutorial, specifically: https://learn.adafruit.com/adafruit-grand-central/setup.

Dave

dastels
 
Posts: 3403
Joined: Tue Oct 20, 2015 3:22 pm

Re: Adafruit Grand Central M4 Express

by Migueliyo on Fri Apr 10, 2020 11:48 am

Thank you very much :) I have managed to apply the board in arduino "Adafruit Grand Central M4 Express" corresponds to "Adafruit Feather M4 Express (SAMD51)".
Now I have a compilation error:
In file included from sketch \ Marlin.ino.cpp: 1: 0:

C: \ Users \ Miguel-iyo \ AppData \ Local \ Arduino15 \ packages \ adafruit \ hardware \ samd \ 1.5.11 \ cores \ arduino / Arduino.h: 48: 10: fatal error: sam.h: No such file or directory

  #include "sam.h"

           ^ ~~~~~~

compilation terminated.

exit status 1
Compiling error for Adafruit Feather M4 Express card (SAMD51).

I have followed these steps, but I am not doing something correctly.
https://learn.adafruit.com/adafruit-gra ... ches-to-m0

Migueliyo
 
Posts: 5
Joined: Fri Apr 10, 2020 6:29 am

Re: Adafruit Grand Central M4 Express

by dastels on Fri Apr 10, 2020 11:59 am

"GrandCentral M4 Express" and "Feather M4 Express" are two different boards, with two different MCUs (although they share the ARM Cortex-M4 core). You need to select the appropriate board.

Dave

dastels
 
Posts: 3403
Joined: Tue Oct 20, 2015 3:22 pm

Re: Adafruit Grand Central M4 Express

by Migueliyo on Fri Apr 10, 2020 12:48 pm

I have chosen Adafruit Grand Central M4 (SAMD51) accordingly.
but I have a lot of errors:
This compilation works well with the arduino mega 2560 board with a shiel ramps 1.4 this compilation belongs to a Cartesian printer (Anet A8) and works at 8 bits. I imagine it influences compilation since Adafruit Grand Central M4 Express is a 32-bit board..
Currently I am going to use Adafruit Grand Central M4 Express with the Ramps 1.6 shield is fully compatible.
It seems like a complicated project for this board there are too many errors:

ATTENTION: the U8glib library intends to run on avr, sam architecture (s) and may be incompatible with your current card which runs on architecture (s) samd.
In file included from C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/Arduino.h:66:0,

from sketch\Marlin.ino.cpp:1:

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/WVariant.h:182:40: error: 'TCC_INST_NUM' was not declared in this scope

extern const uint32_t GCLK_CLKCTRL_IDs[TCC_INST_NUM+TC_INST_NUM];



C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/WVariant.h:182:53: error: 'TC_INST_NUM' was not declared in this scope

extern const uint32_t GCLK_CLKCTRL_IDs[TCC_INST_NUM+TC_INST_NUM];



C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/WVariant.h:257:36: error: 'TCC_INST_NUM' was not declared in this scope

extern const void* g_apTCInstances[TCC_INST_NUM+TC_INST_NUM] ;



C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/WVariant.h:257:49: error: 'TC_INST_NUM' was not declared in this scope

extern const void* g_apTCInstances[TCC_INST_NUM+TC_INST_NUM] ;



In file included from C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\variants\grand_central_m4/variant.h:46:0,

from C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/delay.h:24,

from C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/Arduino.h:81,

from sketch\Marlin.ino.cpp:1:

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/SERCOM.h:171:16: error: expected ')' before '*' token

SERCOM(Sercom* s) ;



In file included from C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\variants\grand_central_m4/variant.h:46:0,

from C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/delay.h:24,

from C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/Arduino.h:81,

from sketch\Marlin.ino.cpp:1:

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/SERCOM.h:254:3: error: 'Sercom' does not name a type; did you mean 'Stream'?

Sercom* sercom;



Stream

In file included from C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/USBAPI.h:37:0,

from C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/Arduino.h:158,

from sketch\Marlin.ino.cpp:1:

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:175:2: error: 'UsbDevice' does not name a type

UsbDevice &usb;



C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:178:34: error: 'UsbDeviceDescriptor' does not name a type; did you mean 'DeviceDescriptor'?

__attribute__((__aligned__(4))) UsbDeviceDescriptor EP[USB_EPT_NUM];



DeviceDescriptor

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In constructor 'USBDevice_SAMD21G18x::USBDevice_SAMD21G18x()':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:32:27: error: class 'USBDevice_SAMD21G18x' does not have any field named 'usb'

USBDevice_SAMD21G18x() : usb(USB->DEVICE) {



C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:32:31: error: 'USB' was not declared in this scope

USBDevice_SAMD21G18x() : usb(USB->DEVICE) {



C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::enable()':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:44:3: error: 'usb' was not declared in this scope

usb.CTRLA.bit.ENABLE = 1;



C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:46:29: error: 'USB_SYNCBUSY_ENABLE' was not declared in this scope

while( usb.SYNCBUSY.reg & USB_SYNCBUSY_ENABLE ); //wait for sync



C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::disable()':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:50:3: error: 'usb' was not declared in this scope

usb.CTRLA.bit.ENABLE = 0;



C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:52:29: error: 'USB_SYNCBUSY_ENABLE' was not declared in this scope

while( usb.SYNCBUSY.reg & USB_SYNCBUSY_ENABLE ); //wait for sync



C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::setUSBDeviceMode()':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:57:35: error: 'usb' was not declared in this scope

inline void setUSBDeviceMode() { usb.CTRLA.bit.MODE = USB_CTRLA_MODE_DEVICE_Val; }



C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:57:56: error: 'USB_CTRLA_MODE_DEVICE_Val' was not declared in this scope

inline void setUSBDeviceMode() { usb.CTRLA.bit.MODE = USB_CTRLA_MODE_DEVICE_Val; }



C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::setUSBHostMode()':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:58:35: error: 'usb' was not declared in this scope

inline void setUSBHostMode() { usb.CTRLA.bit.MODE = USB_CTRLA_MODE_HOST_Val; }



C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:58:56: error: 'USB_CTRLA_MODE_HOST_Val' was not declared in this scope

inline void setUSBHostMode() { usb.CTRLA.bit.MODE = USB_CTRLA_MODE_HOST_Val; }



C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::runInStandby()':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:60:33: error: 'usb' was not declared in this scope

inline void runInStandby() { usb.CTRLA.bit.RUNSTDBY = 1; }



C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::noRunInStandby()':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:61:33: error: 'usb' was not declared in this scope

inline void noRunInStandby() { usb.CTRLA.bit.RUNSTDBY = 0; }



C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::wakeupHost()':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:62:33: error: 'usb' was not declared in this scope

inline void wakeupHost() { usb.CTRLB.bit.UPRSM = 1; }



C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::setFullSpeed()':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:65:37: error: 'usb' was not declared in this scope

inline void setFullSpeed() { usb.CTRLB.bit.SPDCONF = USB_DEVICE_CTRLB_SPDCONF_FS_Val; }



C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:65:61: error: 'USB_DEVICE_CTRLB_SPDCONF_FS_Val' was not declared in this scope

inline void setFullSpeed() { usb.CTRLB.bit.SPDCONF = USB_DEVICE_CTRLB_SPDCONF_FS_Val; }



C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::setLowSpeed()':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:66:37: error: 'usb' was not declared in this scope

inline void setLowSpeed() { usb.CTRLB.bit.SPDCONF = USB_DEVICE_CTRLB_SPDCONF_LS_Val; }



C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:66:61: error: 'USB_DEVICE_CTRLB_SPDCONF_LS_Val' was not declared in this scope

inline void setLowSpeed() { usb.CTRLB.bit.SPDCONF = USB_DEVICE_CTRLB_SPDCONF_LS_Val; }



C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::setHiSpeed()':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:67:37: error: 'usb' was not declared in this scope

inline void setHiSpeed() { usb.CTRLB.bit.SPDCONF = USB_DEVICE_CTRLB_SPDCONF_HS_Val; }



C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:67:61: error: 'USB_DEVICE_CTRLB_SPDCONF_HS_Val' was not declared in this scope

inline void setHiSpeed() { usb.CTRLB.bit.SPDCONF = USB_DEVICE_CTRLB_SPDCONF_HS_Val; }



C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::setHiSpeedTestMode()':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:68:37: error: 'usb' was not declared in this scope

inline void setHiSpeedTestMode() { usb.CTRLB.bit.SPDCONF = USB_DEVICE_CTRLB_SPDCONF_HSTM_Val; }



C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:68:61: error: 'USB_DEVICE_CTRLB_SPDCONF_HSTM_Val' was not declared in this scope

inline void setHiSpeedTestMode() { usb.CTRLB.bit.SPDCONF = USB_DEVICE_CTRLB_SPDCONF_HSTM_Val; }



C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:68:61: note: suggested alternative: 'USB_DEVICE_CLASS_STORAGE'

inline void setHiSpeedTestMode() { usb.CTRLB.bit.SPDCONF = USB_DEVICE_CTRLB_SPDCONF_HSTM_Val; }



USB_DEVICE_CLASS_STORAGE

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::attach()':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:71:25: error: 'usb' was not declared in this scope

inline void attach() { usb.CTRLB.bit.DETACH = 0; }



C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::detach()':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:72:25: error: 'usb' was not declared in this scope

inline void detach() { usb.CTRLB.bit.DETACH = 1; }



C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'bool USBDevice_SAMD21G18x::isEndOfResetInterrupt()':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:75:54: error: 'usb' was not declared in this scope

inline bool isEndOfResetInterrupt() { return usb.INTFLAG.bit.EORST; }



C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::ackEndOfResetInterrupt()':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:76:47: error: 'usb' was not declared in this scope

inline void ackEndOfResetInterrupt() { usb.INTFLAG.reg = USB_DEVICE_INTFLAG_EORST; }



C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:76:65: error: 'USB_DEVICE_INTFLAG_EORST' was not declared in this scope

inline void ackEndOfResetInterrupt() { usb.INTFLAG.reg = USB_DEVICE_INTFLAG_EORST; }



C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:76:65: note: suggested alternative: 'USB_DEVICE_QUALIFIER'

inline void ackEndOfResetInterrupt() { usb.INTFLAG.reg = USB_DEVICE_INTFLAG_EORST; }



USB_DEVICE_QUALIFIER

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::enableEndOfResetInterrupt()':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:77:47: error: 'usb' was not declared in this scope

inline void enableEndOfResetInterrupt() { usb.INTENSET.bit.EORST = 1; }

^~~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::disableEndOfResetInterrupt()':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:78:47: error: 'usb' was not declared in this scope

inline void disableEndOfResetInterrupt() { usb.INTENCLR.bit.EORST = 1; }

^~~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'bool USBDevice_SAMD21G18x::isStartOfFrameInterrupt()':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:80:54: error: 'usb' was not declared in this scope

inline bool isStartOfFrameInterrupt() { return usb.INTFLAG.bit.SOF; }



C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::ackStartOfFrameInterrupt()':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:81:47: error: 'usb' was not declared in this scope

inline void ackStartOfFrameInterrupt() { usb.INTFLAG.reg = USB_DEVICE_INTFLAG_SOF; }



C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:81:65: error: 'USB_DEVICE_INTFLAG_SOF' was not declared in this scope

inline void ackStartOfFrameInterrupt() { usb.INTFLAG.reg = USB_DEVICE_INTFLAG_SOF; }



C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:81:65: note: suggested alternative: 'USB_DEVICE_QUALIFIER'

inline void ackStartOfFrameInterrupt() { usb.INTFLAG.reg = USB_DEVICE_INTFLAG_SOF; }



USB_DEVICE_QUALIFIER

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::enableStartOfFrameInterrupt()':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:82:47: error: 'usb' was not declared in this scope

inline void enableStartOfFrameInterrupt() { usb.INTENSET.bit.SOF = 1; }

^~~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::disableStartOfFrameInterrupt()':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:83:47: error: 'usb' was not declared in this scope

inline void disableStartOfFrameInterrupt() { usb.INTENCLR.bit.SOF = 1; }

^~~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::setAddress(uint32_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:86:44: error: 'usb' was not declared in this scope

inline void setAddress(uint32_t addr) { usb.DADD.bit.DADD = addr; usb.DADD.bit.ADDEN = 1; }

^~~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::unsetAddress()':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:87:44: error: 'usb' was not declared in this scope

inline void unsetAddress() { usb.DADD.bit.DADD = 0; usb.DADD.bit.ADDEN = 0; }

^~~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'uint16_t USBDevice_SAMD21G18x::frameNumber()':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:90:41: error: 'usb' was not declared in this scope

inline uint16_t frameNumber() { return usb.FNUM.bit.FNUM; }

^~~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank0SetType(ep_t, uint8_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:99:54: error: 'usb' was not declared in this scope

inline void epBank0SetType(ep_t ep, uint8_t type) { usb.DeviceEndpoint[ep].EPCFG.bit.EPTYPE0 = type; }

^~~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank1SetType(ep_t, uint8_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:100:54: error: 'usb' was not declared in this scope

inline void epBank1SetType(ep_t ep, uint8_t type) { usb.DeviceEndpoint[ep].EPCFG.bit.EPTYPE1 = type; }

^~~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'uint16_t USBDevice_SAMD21G18x::epInterruptSummary()':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:103:48: error: 'usb' was not declared in this scope

inline uint16_t epInterruptSummary() { return usb.EPINTSMRY.reg; }

^~~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'bool USBDevice_SAMD21G18x::epBank0IsSetupReceived(ep_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:105:59: error: 'usb' was not declared in this scope

inline bool epBank0IsSetupReceived(ep_t ep) { return usb.DeviceEndpoint[ep].EPINTFLAG.bit.RXSTP; }

^~~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'bool USBDevice_SAMD21G18x::epBank0IsStalled(ep_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:106:59: error: 'usb' was not declared in this scope

inline bool epBank0IsStalled(ep_t ep) { return usb.DeviceEndpoint[ep].EPINTFLAG.bit.STALL0; }

^~~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'bool USBDevice_SAMD21G18x::epBank1IsStalled(ep_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:107:59: error: 'usb' was not declared in this scope

inline bool epBank1IsStalled(ep_t ep) { return usb.DeviceEndpoint[ep].EPINTFLAG.bit.STALL1; }

^~~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'bool USBDevice_SAMD21G18x::epBank0IsTransferComplete(ep_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:108:59: error: 'usb' was not declared in this scope

inline bool epBank0IsTransferComplete(ep_t ep) { return usb.DeviceEndpoint[ep].EPINTFLAG.bit.TRCPT0; }

^~~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'bool USBDevice_SAMD21G18x::epBank1IsTransferComplete(ep_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:109:59: error: 'usb' was not declared in this scope

inline bool epBank1IsTransferComplete(ep_t ep) { return usb.DeviceEndpoint[ep].EPINTFLAG.bit.TRCPT1; }

^~~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank0AckSetupReceived(ep_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:111:52: error: 'usb' was not declared in this scope

inline void epBank0AckSetupReceived(ep_t ep) { usb.DeviceEndpoint[ep].EPINTFLAG.reg = USB_DEVICE_EPINTFLAG_RXSTP; }

^~~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:111:91: error: 'USB_DEVICE_EPINTFLAG_RXSTP' was not declared in this scope

inline void epBank0AckSetupReceived(ep_t ep) { usb.DeviceEndpoint[ep].EPINTFLAG.reg = USB_DEVICE_EPINTFLAG_RXSTP; }



C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:111:91: note: suggested alternative: 'USB_DEVICE_QUALIFIER'

inline void epBank0AckSetupReceived(ep_t ep) { usb.DeviceEndpoint[ep].EPINTFLAG.reg = USB_DEVICE_EPINTFLAG_RXSTP; }



USB_DEVICE_QUALIFIER

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank0AckStalled(ep_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:112:52: error: 'usb' was not declared in this scope

inline void epBank0AckStalled(ep_t ep) { usb.DeviceEndpoint[ep].EPINTFLAG.reg = USB_DEVICE_EPINTFLAG_STALL(1); }

^~~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:112:91: error: 'USB_DEVICE_EPINTFLAG_STALL' was not declared in this scope

inline void epBank0AckStalled(ep_t ep) { usb.DeviceEndpoint[ep].EPINTFLAG.reg = USB_DEVICE_EPINTFLAG_STALL(1); }



C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:112:91: note: suggested alternative: 'USB_DEVICE_CLASS_STORAGE'

inline void epBank0AckStalled(ep_t ep) { usb.DeviceEndpoint[ep].EPINTFLAG.reg = USB_DEVICE_EPINTFLAG_STALL(1); }

^~~~~~~~~~~~~~~~~~~~~~~~~~

USB_DEVICE_CLASS_STORAGE

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank1AckStalled(ep_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:113:52: error: 'usb' was not declared in this scope

inline void epBank1AckStalled(ep_t ep) { usb.DeviceEndpoint[ep].EPINTFLAG.reg = USB_DEVICE_EPINTFLAG_STALL(2); }

^~~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:113:91: error: 'USB_DEVICE_EPINTFLAG_STALL' was not declared in this scope

inline void epBank1AckStalled(ep_t ep) { usb.DeviceEndpoint[ep].EPINTFLAG.reg = USB_DEVICE_EPINTFLAG_STALL(2); }

^~~~~~~~~~~~~~~~~~~~~~~~~~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:113:91: note: suggested alternative: 'USB_DEVICE_CLASS_STORAGE'

inline void epBank1AckStalled(ep_t ep) { usb.DeviceEndpoint[ep].EPINTFLAG.reg = USB_DEVICE_EPINTFLAG_STALL(2); }

^~~~~~~~~~~~~~~~~~~~~~~~~~

USB_DEVICE_CLASS_STORAGE

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank0AckTransferComplete(ep_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:114:52: error: 'usb' was not declared in this scope

inline void epBank0AckTransferComplete(ep_t ep) { usb.DeviceEndpoint[ep].EPINTFLAG.reg = USB_DEVICE_EPINTFLAG_TRCPT(1); }

^~~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:114:91: error: 'USB_DEVICE_EPINTFLAG_TRCPT' was not declared in this scope

inline void epBank0AckTransferComplete(ep_t ep) { usb.DeviceEndpoint[ep].EPINTFLAG.reg = USB_DEVICE_EPINTFLAG_TRCPT(1); }

^~~~~~~~~~~~~~~~~~~~~~~~~~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:114:91: note: suggested alternative: 'USB_DEVICE_DESCRIPTOR_TYPE'

inline void epBank0AckTransferComplete(ep_t ep) { usb.DeviceEndpoint[ep].EPINTFLAG.reg = USB_DEVICE_EPINTFLAG_TRCPT(1); }

^~~~~~~~~~~~~~~~~~~~~~~~~~

USB_DEVICE_DESCRIPTOR_TYPE

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank1AckTransferComplete(ep_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:115:52: error: 'usb' was not declared in this scope

inline void epBank1AckTransferComplete(ep_t ep) { usb.DeviceEndpoint[ep].EPINTFLAG.reg = USB_DEVICE_EPINTFLAG_TRCPT(2); }

^~~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:115:91: error: 'USB_DEVICE_EPINTFLAG_TRCPT' was not declared in this scope

inline void epBank1AckTransferComplete(ep_t ep) { usb.DeviceEndpoint[ep].EPINTFLAG.reg = USB_DEVICE_EPINTFLAG_TRCPT(2); }

^~~~~~~~~~~~~~~~~~~~~~~~~~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:115:91: note: suggested alternative: 'USB_DEVICE_DESCRIPTOR_TYPE'

inline void epBank1AckTransferComplete(ep_t ep) { usb.DeviceEndpoint[ep].EPINTFLAG.reg = USB_DEVICE_EPINTFLAG_TRCPT(2); }

^~~~~~~~~~~~~~~~~~~~~~~~~~

USB_DEVICE_DESCRIPTOR_TYPE

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank0EnableSetupReceived(ep_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:117:55: error: 'usb' was not declared in this scope

inline void epBank0EnableSetupReceived(ep_t ep) { usb.DeviceEndpoint[ep].EPINTENSET.bit.RXSTP = 1; }

^~~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank0EnableStalled(ep_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:118:55: error: 'usb' was not declared in this scope

inline void epBank0EnableStalled(ep_t ep) { usb.DeviceEndpoint[ep].EPINTENSET.bit.STALL0 = 1; }

^~~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank1EnableStalled(ep_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:119:55: error: 'usb' was not declared in this scope

inline void epBank1EnableStalled(ep_t ep) { usb.DeviceEndpoint[ep].EPINTENSET.bit.STALL1 = 1; }

^~~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank0EnableTransferComplete(ep_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:120:55: error: 'usb' was not declared in this scope

inline void epBank0EnableTransferComplete(ep_t ep) { usb.DeviceEndpoint[ep].EPINTENSET.bit.TRCPT0 = 1; }

^~~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank1EnableTransferComplete(ep_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:121:55: error: 'usb' was not declared in this scope

inline void epBank1EnableTransferComplete(ep_t ep) { usb.DeviceEndpoint[ep].EPINTENSET.bit.TRCPT1 = 1; }

^~~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank0DisableSetupReceived(ep_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:123:56: error: 'usb' was not declared in this scope

inline void epBank0DisableSetupReceived(ep_t ep) { usb.DeviceEndpoint[ep].EPINTENCLR.bit.RXSTP = 1; }

^~~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank0DisableStalled(ep_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:124:56: error: 'usb' was not declared in this scope

inline void epBank0DisableStalled(ep_t ep) { usb.DeviceEndpoint[ep].EPINTENCLR.bit.STALL0 = 1; }

^~~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank1DisableStalled(ep_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:125:56: error: 'usb' was not declared in this scope

inline void epBank1DisableStalled(ep_t ep) { usb.DeviceEndpoint[ep].EPINTENCLR.bit.STALL1 = 1; }

^~~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank0DisableTransferComplete(ep_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:126:56: error: 'usb' was not declared in this scope

inline void epBank0DisableTransferComplete(ep_t ep) { usb.DeviceEndpoint[ep].EPINTENCLR.bit.TRCPT0 = 1; }

^~~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank1DisableTransferComplete(ep_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:127:56: error: 'usb' was not declared in this scope

inline void epBank1DisableTransferComplete(ep_t ep) { usb.DeviceEndpoint[ep].EPINTENCLR.bit.TRCPT1 = 1; }

^~~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'bool USBDevice_SAMD21G18x::epBank0IsReady(ep_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:130:50: error: 'usb' was not declared in this scope

inline bool epBank0IsReady(ep_t ep) { return usb.DeviceEndpoint[ep].EPSTATUS.bit.BK0RDY; }

^~~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'bool USBDevice_SAMD21G18x::epBank1IsReady(ep_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:131:50: error: 'usb' was not declared in this scope

inline bool epBank1IsReady(ep_t ep) { return usb.DeviceEndpoint[ep].EPSTATUS.bit.BK1RDY; }

^~~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank0SetReady(ep_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:132:43: error: 'usb' was not declared in this scope

inline void epBank0SetReady(ep_t ep) { usb.DeviceEndpoint[ep].EPSTATUSSET.bit.BK0RDY = 1; }

^~~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank1SetReady(ep_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:133:43: error: 'usb' was not declared in this scope

inline void epBank1SetReady(ep_t ep) { usb.DeviceEndpoint[ep].EPSTATUSSET.bit.BK1RDY = 1; }

^~~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank0ResetReady(ep_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:134:43: error: 'usb' was not declared in this scope

inline void epBank0ResetReady(ep_t ep) { usb.DeviceEndpoint[ep].EPSTATUSCLR.bit.BK0RDY = 1; }

^~~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank1ResetReady(ep_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:135:43: error: 'usb' was not declared in this scope

inline void epBank1ResetReady(ep_t ep) { usb.DeviceEndpoint[ep].EPSTATUSCLR.bit.BK1RDY = 1; }

^~~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank0SetStallReq(ep_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:137:46: error: 'usb' was not declared in this scope

inline void epBank0SetStallReq(ep_t ep) { usb.DeviceEndpoint[ep].EPSTATUSSET.bit.STALLRQ0 = 1; }

^~~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank1SetStallReq(ep_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:138:46: error: 'usb' was not declared in this scope

inline void epBank1SetStallReq(ep_t ep) { usb.DeviceEndpoint[ep].EPSTATUSSET.bit.STALLRQ1 = 1; }

^~~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank0ResetStallReq(ep_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:139:46: error: 'usb' was not declared in this scope

inline void epBank0ResetStallReq(ep_t ep) { usb.DeviceEndpoint[ep].EPSTATUSCLR.bit.STALLRQ0 = 1; }

^~~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank1ResetStallReq(ep_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:140:46: error: 'usb' was not declared in this scope

inline void epBank1ResetStallReq(ep_t ep) { usb.DeviceEndpoint[ep].EPSTATUSCLR.bit.STALLRQ1 = 1; }

^~~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'uint16_t USBDevice_SAMD21G18x::epBank0ByteCount(ep_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:143:53: error: 'EP' was not declared in this scope

inline uint16_t epBank0ByteCount(ep_t ep) { return EP[ep].DeviceDescBank[0].PCKSIZE.bit.BYTE_COUNT; }

^~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:143:53: note: suggested alternative: 'EP0'

inline uint16_t epBank0ByteCount(ep_t ep) { return EP[ep].DeviceDescBank[0].PCKSIZE.bit.BYTE_COUNT; }

^~

EP0

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'uint16_t USBDevice_SAMD21G18x::epBank1ByteCount(ep_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:144:53: error: 'EP' was not declared in this scope

inline uint16_t epBank1ByteCount(ep_t ep) { return EP[ep].DeviceDescBank[1].PCKSIZE.bit.BYTE_COUNT; }

^~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:144:53: note: suggested alternative: 'EP0'

inline uint16_t epBank1ByteCount(ep_t ep) { return EP[ep].DeviceDescBank[1].PCKSIZE.bit.BYTE_COUNT; }

^~

EP0

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank0SetByteCount(ep_t, uint16_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:145:58: error: 'EP' was not declared in this scope

inline void epBank0SetByteCount(ep_t ep, uint16_t bc) { EP[ep].DeviceDescBank[0].PCKSIZE.bit.BYTE_COUNT = bc; }

^~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:145:58: note: suggested alternative: 'EP0'

inline void epBank0SetByteCount(ep_t ep, uint16_t bc) { EP[ep].DeviceDescBank[0].PCKSIZE.bit.BYTE_COUNT = bc; }

^~

EP0

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank1SetByteCount(ep_t, uint16_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:146:58: error: 'EP' was not declared in this scope

inline void epBank1SetByteCount(ep_t ep, uint16_t bc) { EP[ep].DeviceDescBank[1].PCKSIZE.bit.BYTE_COUNT = bc; }

^~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:146:58: note: suggested alternative: 'EP0'

inline void epBank1SetByteCount(ep_t ep, uint16_t bc) { EP[ep].DeviceDescBank[1].PCKSIZE.bit.BYTE_COUNT = bc; }

^~

EP0

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank0SetMultiPacketSize(ep_t, uint16_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:147:63: error: 'EP' was not declared in this scope

inline void epBank0SetMultiPacketSize(ep_t ep, uint16_t s) { EP[ep].DeviceDescBank[0].PCKSIZE.bit.MULTI_PACKET_SIZE = s; }

^~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:147:63: note: suggested alternative: 'EP0'

inline void epBank0SetMultiPacketSize(ep_t ep, uint16_t s) { EP[ep].DeviceDescBank[0].PCKSIZE.bit.MULTI_PACKET_SIZE = s; }

^~

EP0

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank1SetMultiPacketSize(ep_t, uint16_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:148:63: error: 'EP' was not declared in this scope

inline void epBank1SetMultiPacketSize(ep_t ep, uint16_t s) { EP[ep].DeviceDescBank[1].PCKSIZE.bit.MULTI_PACKET_SIZE = s; }

^~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:148:63: note: suggested alternative: 'EP0'

inline void epBank1SetMultiPacketSize(ep_t ep, uint16_t s) { EP[ep].DeviceDescBank[1].PCKSIZE.bit.MULTI_PACKET_SIZE = s; }

^~

EP0

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank0SetAddress(ep_t, void*)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:150:55: error: 'EP' was not declared in this scope

inline void epBank0SetAddress(ep_t ep, void *addr) { EP[ep].DeviceDescBank[0].ADDR.reg = (uint32_t)addr; }

^~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:150:55: note: suggested alternative: 'EP0'

inline void epBank0SetAddress(ep_t ep, void *addr) { EP[ep].DeviceDescBank[0].ADDR.reg = (uint32_t)addr; }

^~

EP0

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank1SetAddress(ep_t, void*)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:151:55: error: 'EP' was not declared in this scope

inline void epBank1SetAddress(ep_t ep, void *addr) { EP[ep].DeviceDescBank[1].ADDR.reg = (uint32_t)addr; }

^~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:151:55: note: suggested alternative: 'EP0'

inline void epBank1SetAddress(ep_t ep, void *addr) { EP[ep].DeviceDescBank[1].ADDR.reg = (uint32_t)addr; }

^~

EP0

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank0SetSize(ep_t, uint16_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:152:55: error: 'EP' was not declared in this scope

inline void epBank0SetSize(ep_t ep, uint16_t size) { EP[ep].DeviceDescBank[0].PCKSIZE.bit.SIZE = EP_PCKSIZE_SIZE(size); }

^~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:152:55: note: suggested alternative: 'EP0'

inline void epBank0SetSize(ep_t ep, uint16_t size) { EP[ep].DeviceDescBank[0].PCKSIZE.bit.SIZE = EP_PCKSIZE_SIZE(size); }

^~

EP0

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank1SetSize(ep_t, uint16_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:153:55: error: 'EP' was not declared in this scope

inline void epBank1SetSize(ep_t ep, uint16_t size) { EP[ep].DeviceDescBank[1].PCKSIZE.bit.SIZE = EP_PCKSIZE_SIZE(size); }

^~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:153:55: note: suggested alternative: 'EP0'

inline void epBank1SetSize(ep_t ep, uint16_t size) { EP[ep].DeviceDescBank[1].PCKSIZE.bit.SIZE = EP_PCKSIZE_SIZE(size); }

^~

EP0

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank0DisableAutoZLP(ep_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:168:47: error: 'EP' was not declared in this scope

inline void epBank0DisableAutoZLP(ep_t ep) { EP[ep].DeviceDescBank[0].PCKSIZE.bit.AUTO_ZLP = 0; }

^~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:168:47: note: suggested alternative: 'EP0'

inline void epBank0DisableAutoZLP(ep_t ep) { EP[ep].DeviceDescBank[0].PCKSIZE.bit.AUTO_ZLP = 0; }

^~

EP0

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank1DisableAutoZLP(ep_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:169:47: error: 'EP' was not declared in this scope

inline void epBank1DisableAutoZLP(ep_t ep) { EP[ep].DeviceDescBank[1].PCKSIZE.bit.AUTO_ZLP = 0; }

^~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:169:47: note: suggested alternative: 'EP0'

inline void epBank1DisableAutoZLP(ep_t ep) { EP[ep].DeviceDescBank[1].PCKSIZE.bit.AUTO_ZLP = 0; }

^~

EP0

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank0EnableAutoZLP(ep_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:170:47: error: 'EP' was not declared in this scope

inline void epBank0EnableAutoZLP(ep_t ep) { EP[ep].DeviceDescBank[0].PCKSIZE.bit.AUTO_ZLP = 1; }

^~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:170:47: note: suggested alternative: 'EP0'

inline void epBank0EnableAutoZLP(ep_t ep) { EP[ep].DeviceDescBank[0].PCKSIZE.bit.AUTO_ZLP = 1; }

^~

EP0

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank1EnableAutoZLP(ep_t)':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:171:47: error: 'EP' was not declared in this scope

inline void epBank1EnableAutoZLP(ep_t ep) { EP[ep].DeviceDescBank[1].PCKSIZE.bit.AUTO_ZLP = 1; }

^~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:171:47: note: suggested alternative: 'EP0'

inline void epBank1EnableAutoZLP(ep_t ep) { EP[ep].DeviceDescBank[1].PCKSIZE.bit.AUTO_ZLP = 1; }

^~

EP0

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In constructor '__Guard::__Guard()':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:188:22: error: '__get_PRIMASK' was not declared in this scope

__Guard() : primask(__get_PRIMASK()), loops(1) {

^~~~~~~~~~~~~

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:188:22: note: suggested alternative: '__PRIMAX'

__Guard() : primask(__get_PRIMASK()), loops(1) {

^~~~~~~~~~~~~

__PRIMAX

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:189:3: error: '__disable_irq' was not declared in this scope

__disable_irq();


C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:189:3: note: suggested alternative: 'uhd_disable_sof'

__disable_irq();


uhd_disable_sof

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h: In destructor '__Guard::~__Guard()':

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:193:4: error: '__enable_irq' was not declared in this scope

__enable_irq();


C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:193:4: note: suggested alternative: '_rename_r'

__enable_irq();

_rename_r

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/SAMD21_USBDevice.h:195:4: error: '__ISB' was not declared in this scope

__ISB();

^~~~~

In file included from C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/USB_host.h:23:0,

from C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/Arduino.h:159,

from sketch\Marlin.ino.cpp:1:

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/samd21_host.h: At global scope:

C:\Users\Miguel-iyo\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.11\cores\arduino/USB/samd21_host.h:26:49: error: 'UsbHostDescriptor' does not name a type; did you mean 'CDC_GetDescriptor'?

extern __attribute__((__aligned__(4))) volatile UsbHostDescriptor usb_pipe_table[USB_EPT_NUM];

^~~~~~~~~~~~~~~~~

CDC_GetDescriptor

exit status 1
Error compilando para la tarjeta Adafruit Grand Central M4 (SAMD51).

Migueliyo
 
Posts: 5
Joined: Fri Apr 10, 2020 6:29 am

Re: Adafruit Grand Central M4 Express

by dastels on Fri Apr 10, 2020 3:31 pm

This is the crucial bit:

ATTENTION: the U8glib library intends to run on avr, sam architecture (s) and may be incompatible with your current card which runs on architecture (s) samd.


Skimming over the errors you're getting just confirms it. They primarily relate to low level hardware details, which are going to be significantly different between the AVR and SAMD architectures. It will no doubt take some work and knowledge of the two architectures to rewrite.

The alternative is to either find software that's compatible with the SAMD51 or get an Arduino Mega2560.

Dave

dastels
 
Posts: 3403
Joined: Tue Oct 20, 2015 3:22 pm

Re: Adafruit Grand Central M4 Express

by Migueliyo on Fri Apr 10, 2020 5:12 pm

thanks you for your time and information, I think it better...thanks dave ;)

Migueliyo
 
Posts: 5
Joined: Fri Apr 10, 2020 6:29 am

Please be positive and constructive with your questions and comments.