Closed cecio closed 1 year ago
I think I found the way out:
I tried to use arduino-pico instead of the Arduino MBED OS rp2040 3.5.1
.
It looks you can not install it on Arduino IDE 2.0.3
(no install button), but if you install it with Arduino IDE 1.8.19
, then you can use it in the newer version.
Then compilation works.
Thanks, I'm going to close this.
Operating System
Linux
Arduino IDE version
Arduino 2.0.3
Board
Raspberry Pi Pico
ArduinoCore version
Arduino MBED OS rp2040 3.5.1
TinyUSB Library version
1.17.0
Sketch (attached txt file)
esample/MassStorage/msc_ramdisk
What happened ?
Compilation fails with the following error:
Adafruit_TinyUSB_rp2040.cpp: In function 'void TinyUSB_Port_InitDevice(uint8_t)': /home/cesare/Arduino/libraries/Adafruit_TinyUSB_Library/src/arduino/ports/rp2040/Adafruit_TinyUSB_rp2040.cpp:108:26: error: 'PICO_SHARED_IRQ_HANDLER_LOWEST_ORDER_PRIORITY' was not declared in this scope PICO_SHARED_IRQ_HANDLER_LOWEST_ORDER_PRIORITY); ^
~~~~~~~~~~~~ /Adafruit_TinyUSB_rp2040.cpp:108:26: note: suggested alternative: 'PICO_SHARED_IRQ_HANDLER_DEFAULT_ORDER_PRIORITY' PICO_SHARED_IRQ_HANDLER_LOWEST_ORDER_PRIORITY); ^~~~~~~~~~~~~ PICO_SHARED_IRQ_HANDLER_DEFAULT_ORDER_PRIORITYexit status 1
How to reproduce ?
Open msc_ramdisk sample and try to compile.
The error is not dropped with earlier TinyUSB versions (like 1.14.4). I think the error has something to do with the pico-sdk used by the latest version of TinyUSB and Arduino MBED OS 3.5.1 (latest version). I don't know if it make sense to have some conditional compiling (as it already happens for some version) or wait for a new version of MBED OS.
Thanks.
Debug Log
No response
Screenshots
No response