adafruit / Adafruit_Arcada

Arduino library for gaming
Other
82 stars 22 forks source link

CLUE Not compatible #41

Closed karelv closed 3 years ago

karelv commented 3 years ago

Hello, I tried to compile the simpletest example for the CLUE. I know there is code of conduct; but this clearly does not compile for the CLUE board.

I got this error:

Arduino: 1.8.15 (Windows 10), Board: "Adafruit CLUE, 0.3.2 SoftDevice s140 6.1.1, Level 0 (Release)"

WARNING: library Adafruit_WavePlayer_Library claims to run on samd architecture(s) and may be incompatible with your current board which runs on nrf52 architecture(s).

C:\Users\kva\Documents\Arduino\libraries\Adafruit_Arcada_Library\Adafruit_Arcada_USBMSD.cpp:8:26: error: cannot declare variable 'usb_msc' to be of abstract type 'Adafruit_USBD_MSC'

    8 | static Adafruit_USBD_MSC usb_msc;

      |                          ^~~~~~~

In file included from C:\Users\kva\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src/Adafruit_TinyUSB.h:42,

                 from C:\Users\kva\Documents\Arduino\libraries\Adafruit_Arcada_Library/arcadatype.h:11,

                 from C:\Users\kva\Documents\Arduino\libraries\Adafruit_Arcada_Library/Boards/Adafruit_Arcada_Clue.h:21,

                 from C:\Users\kva\Documents\Arduino\libraries\Adafruit_Arcada_Library/Adafruit_Arcada.h:21,

                 from C:\Users\kva\Documents\Arduino\libraries\Adafruit_Arcada_Library\Adafruit_Arcada_USBMSD.cpp:1:

C:\Users\kva\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src/arduino/msc/Adafruit_USBD_MSC.h:30:7: note:   because the following virtual functions are pure within 'Adafruit_USBD_MSC':

   30 | class Adafruit_USBD_MSC : public Adafruit_USBD_Interface {

      |       ^~~~~~~~~~~~~~~~~

In file included from C:\Users\kva\AppData\Local\Arduino15\packages\adafruit\hardware\nrf52\0.21.0\cores\nRF5/TinyUSB/Adafruit_TinyUSB_ArduinoCore/Adafruit_TinyUSB_Core.h:35,

                 from C:\Users\kva\AppData\Local\Arduino15\packages\adafruit\hardware\nrf52\0.21.0\cores\nRF5/Arduino.h:72,

                 from C:\Users\kva\Documents\Arduino\libraries\Adafruit_Arcada_Library/Adafruit_Arcada.h:1,

                 from C:\Users\kva\Documents\Arduino\libraries\Adafruit_Arcada_Library\Adafruit_Arcada_USBMSD.cpp:1:

C:\Users\kva\AppData\Local\Arduino15\packages\adafruit\hardware\nrf52\0.21.0\cores\nRF5/TinyUSB/Adafruit_TinyUSB_ArduinoCore/Adafruit_USBD_Device.h:33:22: note:    'virtual uint16_t Adafruit_USBD_Interface::getDescriptor(uint8_t, uint8_t*, uint16_t)'

   33 |     virtual uint16_t getDescriptor(uint8_t itfnum, uint8_t* buf, uint16_t bufsize) = 0;

      |                      ^~~~~~~~~~~~~

exit status 1

Error compiling for board Adafruit CLUE.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
karelv commented 3 years ago

The verbose compilation was extremely long... If you need the details, it can be found here (split into 3 parts) https://0bin.net/paste/i3EtYixF#5UlMRmhx1SagFf6TWIyZZg8FJV7893w24LdSHIznims https://0bin.net/paste/5LAavBVL#DCD4F8FNw8oCxqePYelWLUAzC1Fz18yH5L9dIepUmM9 https://0bin.net/paste/5mqAmsof#sl7r+QZFKVbpZgu-4YR+r0nRkHMOR5VJjsVADmRQ5lA

karelv commented 3 years ago

When I want to start my own project, I need to have this one working. At least this is my understanding.

I tried to compile the 'clue_test' and the 'graphicstest' example, both give similar compile errors.

karelv commented 3 years ago

Any help is very well appreciated!

hathach commented 3 years ago

Can you try to update the tinyusb library to 1.0.0 or 1.0.1 if there is one installed in your library

karelv commented 3 years ago

Originally V1.0.1 was installed. I tried to downgrade to V1.0.0 as well.

Just to be sure, we are talking about this one: image yes?

Both versions have same results.

karelv commented 3 years ago

Here is my version list:

$ find | grep library.properties$ | xargs -i grep version -H {}  | sed -e "s|/library.properties||"
./Adafruit_ADT7410_Library:version=1.2.0
./Adafruit_ADXL343:version=1.3.0
./Adafruit_AHRS:version=2.2.4
./Adafruit_APDS9960_Library:version=1.1.5
./Adafruit_Arcada_Library:version=2.5.1
./Adafruit_BluefruitLE_nRF51:version=1.10.0
./Adafruit_BME280_Library:version=2.1.4
./Adafruit_BMP085_Unified:version=1.1.0
./Adafruit_BMP280_Library:version=2.3.0
./Adafruit_BusIO:version=1.7.3
./Adafruit_DPS310:version=1.1.1
./Adafruit_EPD:version=4.4.0
./Adafruit_FreeTouch_Library:version=1.1.1
./Adafruit_FXAS21002C:version=1.4.0
./Adafruit_FXOS8700:version=1.5.0
./Adafruit_GFX_Library:version=1.10.7
./Adafruit_GPS_Library:version=1.5.4
./Adafruit_HTS221:version=0.1.1
./Adafruit_HX8357_Library:version=1.1.10
./Adafruit_ICM20X:version=2.0.3
./Adafruit_ILI9341:version=1.5.8
./Adafruit_ImageReader_Library:version=2.6.1
./Adafruit_LED_Backpack_Library:version=1.1.9
./Adafruit_LIS2MDL:version=2.1.3
./Adafruit_LIS3DH:version=1.2.2
./Adafruit_LIS3MDL:version=1.0.7
./Adafruit_LPS2X:version=2.0.1
./Adafruit_LSM303DLHC:version=1.0.4
./Adafruit_LSM303_Accel:version=1.1.4
./Adafruit_LSM6DS:version=4.2.0
./Adafruit_LSM9DS0_Library:version=2.0.2
./Adafruit_LSM9DS1_Library:version=2.0.2
./Adafruit_MPU6050:version=2.0.5
./Adafruit_MSA301:version=1.0.9
./Adafruit_NeoPixel:version=1.8.1
./Adafruit_PixelDust:version=1.1.0
./Adafruit_seesaw_Library:version=1.4.3
./Adafruit_Sensor_Calibration:version=1.1.3
./Adafruit_Sensor_Lab:version=0.4.2
./Adafruit_SHT31_Library:version=2.0.0
./Adafruit_SleepyDog_Library:version=1.4.0
./Adafruit_SPIFlash:version=3.4.2
./Adafruit_SSD1306:version=2.4.5
./Adafruit_SSD1331_OLED_Driver_Library_for_Arduino:version=1.2.0
./Adafruit_SSD1351_library:version=1.2.7
./Adafruit_ST7735_and_ST7789_Library:version=1.7.3
./Adafruit_STMPE610:version=1.1.3
./Adafruit_TinyUSB_Library:version=1.0.1
./Adafruit_TouchScreen:version=1.1.1
./Adafruit_Unified_Sensor:version=1.1.4
./Adafruit_WavePlayer_Library:version=1.0.3
./Adafruit_ZeroTimer_Library:version=2.2.2
./Adafruit_Zero_DMA_Library:version=1.0.8
./Adafruit_Zero_FFT_Library:version=1.0.4
./Adafruit_Zero_PDM_Library:version=1.2.0
./ArduinoJson:version=6.18.0
./Audio_-_Adafruit_Fork:version=1.3.1
./CircularBuffer:version=1.3.3
./MIDI_Library:version=5.0.2
./RTClib:version=1.13.0
./SdFat_-_Adafruit_Fork:version=1.2.3
./Servo:version=1.1.8
./TinyWireM:version=1.1.0
./WaveHC:version=1.0.3
karelv commented 3 years ago

Just in order to see if the graphicstest is compilable for another board, I tried with 'Adafruit M4 Metro', but this totally does not work. What should I try next?

hathach commented 3 years ago

please update the bsp for nrf to 0.22.0

karelv commented 3 years ago

image

I could upload it as well! Thanks for your support @hathach

hathach commented 3 years ago

I am glad it works out for you