ESP32-S2-DevKitM-1R - sdk configuration

agvse0
Posts: 1
Joined: Sat Feb 05, 2022 9:52 am

ESP32-S2-DevKitM-1R - sdk configuration

Postby agvse0 » Sat Feb 05, 2022 10:20 am

Hey everyone, been trying to solve this one for the past 3 days to no avail so I'm gonna try and see if anyone here has any ideas. This happens in both the Arduino IDE as well as platformio. I have managed to get the basics to work(serial monitoring, controlling GPIO and whatnot) with the following platformio.ini configuration:

Code: Select all

[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
board_build.mcu = esp32s2
monitor_speed = 115200
board_build.flash_mode = qio
platform_packages = 
	toolchain-atmelavr @ ~2.70300.0
	framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32#2.0.0-alpha1
	platformio/tool-esptoolpy @ ~1.30100
lib_deps = 
	plerup/EspSoftwareSerial@^6.15.2 
	adafruit/Adafruit TinyUSB Library@^1.9.2
I've set the following constants:

Code: Select all

CONFIG_BT_ENABLED=y
CONFIG_BT_CLASSIC_ENABLED=y
CONFIG_BT_SPP_ENABLED=y
And this is what the code looks like

Code: Select all

#include <Arduino.h>
#include "BluetoothSerial.h"

void setup() {}

void loop() {}
Yet I get the following error, basically some header files are missing. I've been trying endlessly to figure out how to get around it but no luck:

Code: Select all

> Executing task in folder GpasteBoard: platformio run <

**********************************************************************************************************************************************************************************************************************
Obsolete PIO Core v5.2.4 is used (previous was 5.2.5a6)
Please remove multiple PIO Cores from a system:
https://docs.platformio.org/page/faq.html#multiple-platformio-cores-in-a-system
**********************************************************************************************************************************************************************************************************************
Processing esp32dev (platform: espressif32; board: esp32dev; framework: arduino)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (3.5.0) > Espressif ESP32 Dev Module
HARDWARE: ESP32S2 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES: 
 - framework-arduinoespressif32 0.0.0+sha.5d9b98c 
 - tool-esptoolpy 1.30100.210531 (3.1.0) 
 - toolchain-atmelavr 2.70300.201015 (7.3.0) 
 - toolchain-riscv-esp 1.80400.0 (8.4.0) 
 - toolchain-xtensa32s2 1.80400.210211 (8.4.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 58 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <EspSoftwareSerial> 6.15.2
|-- <Adafruit TinyUSB Library> 1.9.2
|-- <BluetoothSerial> 1.0
Building in release mode
Compiling .pio/build/esp32dev/src/main.cpp.o
Generating partitions .pio/build/esp32dev/partitions.bin
Compiling .pio/build/esp32dev/libf78/EspSoftwareSerial/SoftwareSerial.cpp.o
In file included from src/main.cpp:2:
/home/alexander/.platformio/packages/framework-arduinoespressif32@src-efeb2afd83d7cdd487b923a2b02854a3/libraries/BluetoothSerial/src/BluetoothSerial.h:24:10: fatal error: esp_gap_bt_api.h: No such file or directory

************************************************************************
* Looking for esp_gap_bt_api.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:esp_gap_bt_api.h"
* Web  > https://platformio.org/lib/search?query=header:esp_gap_bt_api.h
*
************************************************************************

 #include <esp_gap_bt_api.h>
          ^~~~~~~~~~~~~~~~~~
compilation terminated.
Compiling .pio/build/esp32dev/lib5b6/Adafruit TinyUSB Library/arduino/Adafruit_TinyUSB_API.cpp.o
Compiling .pio/build/esp32dev/lib5b6/Adafruit TinyUSB Library/arduino/Adafruit_USBD_CDC.cpp.o
Compiling .pio/build/esp32dev/lib5b6/Adafruit TinyUSB Library/arduino/Adafruit_USBD_Device.cpp.o
Compiling .pio/build/esp32dev/lib5b6/Adafruit TinyUSB Library/arduino/hid/Adafruit_USBD_HID.cpp.o
Compiling .pio/build/esp32dev/lib5b6/Adafruit TinyUSB Library/arduino/midi/Adafruit_USBD_MIDI.cpp.o
Compiling .pio/build/esp32dev/lib5b6/Adafruit TinyUSB Library/arduino/msc/Adafruit_USBD_MSC.cpp.o
Compiling .pio/build/esp32dev/lib5b6/Adafruit TinyUSB Library/arduino/ports/esp32/Adafruit_TinyUSB_esp32.cpp.o
Compiling .pio/build/esp32dev/lib5b6/Adafruit TinyUSB Library/arduino/ports/nrf/Adafruit_TinyUSB_nrf.cpp.o
Compiling .pio/build/esp32dev/lib5b6/Adafruit TinyUSB Library/arduino/ports/rp2040/Adafruit_TinyUSB_rp2040.cpp.o
Compiling .pio/build/esp32dev/lib5b6/Adafruit TinyUSB Library/arduino/ports/samd/Adafruit_TinyUSB_samd.cpp.o
Compiling .pio/build/esp32dev/lib5b6/Adafruit TinyUSB Library/arduino/webusb/Adafruit_USBD_WebUSB.cpp.o
Compiling .pio/build/esp32dev/lib5b6/Adafruit TinyUSB Library/class/audio/audio_device.c.o
Compiling .pio/build/esp32dev/lib5b6/Adafruit TinyUSB Library/class/bth/bth_device.c.o
Compiling .pio/build/esp32dev/lib5b6/Adafruit TinyUSB Library/class/cdc/cdc_device.c.o
Compiling .pio/build/esp32dev/lib5b6/Adafruit TinyUSB Library/class/dfu/dfu_device.c.o
Compiling .pio/build/esp32dev/lib5b6/Adafruit TinyUSB Library/class/dfu/dfu_rt_device.c.o
Compiling .pio/build/esp32dev/lib5b6/Adafruit TinyUSB Library/class/hid/hid_device.c.o
Compiling .pio/build/esp32dev/lib5b6/Adafruit TinyUSB Library/class/midi/midi_device.c.o
Compiling .pio/build/esp32dev/lib5b6/Adafruit TinyUSB Library/class/msc/msc_device.c.o
Compiling .pio/build/esp32dev/lib5b6/Adafruit TinyUSB Library/class/net/ecm_rndis_device.c.o
Compiling .pio/build/esp32dev/lib5b6/Adafruit TinyUSB Library/class/net/ncm_device.c.o
*** [.pio/build/esp32dev/src/main.cpp.o] Error 1
============================================================================================= [FAILED] Took 2.97 seconds =============================================================================================
The terminal process "platformio 'run'" terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.
Any ideas?

Who is online

Users browsing this forum: No registered users and 71 guests