Does ESP32-S2 support MIDIUSB lib ?

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Fanch
 
Posts: 1
Joined: Tue Jun 15, 2021 7:38 am

Does ESP32-S2 support MIDIUSB lib ?

Post by Fanch »

I am currently working on a midi controller project for which I initially used an ATMEGA 32U4 for its native usb property (required by the "MIDIUSB" lib).
I was quickly confronted with a problem of insufficient memory which pushed me to find a microcontroller with similar properties and with more memory.
I bought the "Adafruit Metro ESP32-S2 Express" board because according to my research the ESP32-S2 is native usb.

When I try to upload my code I get the following error message:

Code: Select all

WARNING: The MIDIUSB library claims to be executable on the avr, sam, samd architecture(s) and may be incompatible with your current board which runs on esp32.
In file included from sketch/MyProject.h:32,
                 from sketch/MyProject2.h:51,
                 from sketch/MyProject3.h:25,
                 from [PATH]/MyProject/MyProject.ino:25:
[PATH]/MIDIUSB.h:18:2: error: #error MIDIUSB can only be used with an USB MCU.
 #error MIDIUSB can only be used with an USB MCU.
  ^~~~~
In file included from sketch/MyProject.h:32,
                 from sketch/MyProject2.h:51,
                 from sketch/MyProject3.h:25,
                 from 
PATH]/MIDIUSB.h:78:2: error: #error "Unsupported architecture"
 #error "Unsupported architecture"
  ^~~~~
exit status 1
Compilation error for Adafruit Metro ESP32-S2" board
Do you know if there is a possibility to use this library (MIDIUSB) with ESP32-S2 or if there is another similar library that is compatible?

Thanks

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: Does ESP32-S2 support MIDIUSB lib ?

Post by mikeysklar »

Based on this closed github issue it looks as though you have some options in terms of other libraries, but not the MIDIUSB one you were trying to use.

https://github.com/espressif/arduino-esp32/issues/4108

https://github.com/chegewara/EspTinyUSB
https://github.com/lathoub/Arduino-AppleMIDI-Library

Locked
Please be positive and constructive with your questions and comments.

Return to “Microcontrollers”