Hello,
I am struggling to manage to have my ESP32-S3-DevKitC-1 N8R2 being recognized as a USB MIDI peripheral (or any other USB descriptor) using the adafruit_tinyusb library.
I am reaching out there as I spent quite some time on it and running out of ideas.
While I was about to give up, I tried using the arduino IDE, and it works when compiled there.
Also, things are working when using platformio and an esp32-s2 lolin mini.
But platformio+esp32s3, not working…
Debug shows the code boots but stops at end of setup in
while( !TinyUSBDevice.mounted() ) delay(1);
Which make sense as it never gets detected in device manager and stays stuck in the while loop.
I struggle to know if my json board configuration is wrong or if there is a deeper issue.
Here is my board config file:
"build": {
"arduino":{
"ldscript": "esp32s3_out.ld",
"partitions": "default_8MB.csv",
"memory_type": "qio_qspi"
},
"core": "esp32",
"extra_flags": [
"-DARDUINO_ESP32S3_DEV",
"-DBOARD_HAS_PSRAM",
"-DARDUINO_USB_MODE=1",
"-DARDUINO_RUNNING_CORE=1",
"-DARDUINO_EVENT_RUNNING_CORE=1",
],
"f_cpu": "240000000L",
"f_flash": "80000000L",
"flash_mode": "qio",
"psram_type": "qspi",
"hwids": [
[
"0x303A",
"0x1001"
]
],
"mcu": "esp32s3",
"variant": "esp32s3"
},
"connectivity": [
"wifi"
],
"debug": {
"default_tool": "esp-builtin",
"onboard_tools": [
"esp-builtin"
],
"openocd_target": "esp32s3.cfg"
},
"frameworks": [
"arduino",
"espidf"
],
"name": "Espressif ESP32-S3-DevKitC-1-N8R2",
"upload": {
"flash_size": "8MB",
"maximum_ram_size": 327680,
"maximum_size": 8388608,
"require_upload_port": true,
"speed": 460800
},
"url": "https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/hw-reference/esp32s3/user-guide-devkitc-1.html",
"vendor": "Espressif"
}
And here is my platformio.ini
[env:esp32-s3-devkitc-1-N8R2]
platform = espressif32
board = esp32-s3-devkitc-1-N8R2
framework = arduino
upload_port = COM10
monitor_port = COM10
monitor_speed = 115200
build_flags =
-DUSE_TINYUSB
lib_archive = no
lib_deps =
adafruit/Adafruit TinyUSB Library@^2.2.1
fortyseveneffects/MIDI Library@^5.0.2
Tried to switch USB_DE and CDC mode, but no matter the board descriptor won’t change
Any ideas ?