(I apologize if this question has been answered here already - the search on this forum is failing)
I'm successfully using the espressif arduino-esp32 library in the Arduino IDE, to create a MIDI controller that supports MIDI over both USB and BLE, and I want to move from the Arduino IDE to platformio + VSCode.
I've been able to get the BLE side of things to build using Arduino BLE MIDI libraries that aren't part of the espressif library, but I can't seem to get the USB library from arduino-esp32 to build in platformio in VSCode. The build is mostly successful, but it fails to find definitions for a few constants and functions while building the library's USB library.
I know the arduino-esp32 library officially only supports the Arduino IDE, but I'm hoping there's some way to configure platformio to use this library.
Thank you!
- Chris
Can I use the espressif arduino-esp32 library in platformio?
-
- Posts: 916
- Joined: Mon Jul 22, 2019 3:20 pm
Re: Can I use the espressif arduino-esp32 library in platformio?
The official platformio group has stopped supporting esp32 at version 2.0. To compile with the v3 code (aka IDF 5.x), modify your platformio.ini with
If you browse to the releases page, you can always see what the latest version is there.
Code: Select all
platform = https://github.com/pioarduino/platform-espressif32/releases/download/53.03.11/platform-espressif32.zip
Re: Can I use the espressif arduino-esp32 library in platformio?
Thank you for the suggestion. I changed the platform line as you suggested and I now get the following error on build:
(I'm using the Adafruit ESP32-S3 board with no PSRAM).
My platformio.ini:
I did some more reading and found that there's a VSCode plugin for pioarduino IDE, which I installed. I created a new, empty PIO project and I get the same error on build.
I'm relatively new to PlatformIO and have been successful so far using it to build for ESP32 with the Arduino framework.
Code: Select all
*** [.pio/build/adafruit_qtpy_esp32s3_nopsram/partitions.bin] Source `partitions-8MB-tinyuf2.csv' not found, needed by target `.pio/build/adafruit_qtpy_esp32s3_nopsram/partitions.bin'.
My platformio.ini:
Code: Select all
[env:adafruit_qtpy_esp32s3_nopsram]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/53.03.11/platform-espressif32.zip
;espressif32
board = adafruit_qtpy_esp32s3_nopsram
framework = arduino
I'm relatively new to PlatformIO and have been successful so far using it to build for ESP32 with the Arduino framework.
-
- Posts: 916
- Joined: Mon Jul 22, 2019 3:20 pm
Re: Can I use the espressif arduino-esp32 library in platformio?
It looks like the partition file name has changed, so that board definition is no longer valid. I'd recommend you override the partition file with the correct file
Who is online
Users browsing this forum: No registered users and 54 guests