PlatformIO Community

ESP32-S3 - ESP-IDF with support for platformIO?


I have a ESP32-S3 board and I would like to run an older ESP-IDF project on it using Bluedroid. At the moment I can only find the Arduino Framework in PlatformIO for the ESP32-S3 and there I can run a working example.

Is there no support for the ESP-IDF anymore for the new generation of ESP32-S3? Is there something similar? I would like anyway to change to the NimBLE Stack soon, but I prefer something like ESP-IDF over the Arduino IDE.

There is support for the S3 in the actual Platformio espressif32 release for Arduino and IDF.

I don’t understand your reply. I just tried using the Espressif ESP32-S3-DevKitC-1, and the only option is Arduino.

@mikemoy Please post your platformio.ini

There is none, I cannot create the project as the only option is Arduino.

Screenshot 2022-08-13 085827

He’s telling you that PlatformIO supports it, just that the wizard isn’t giving it as an option. i.e. there is nothing stopping you creating the project with Arduino selected as the framework, and going into the platformio.ini once it’s created and changing the framework parameter. Or just creating the platformio.ini from scratch, in a new project dir… i.e. for the ESP32-S3 devkit… (for others, look at the other ESP32S3 in the PlatformIO docs)

platform = espressif32
framework = espidf
board = esp32-s3-devkitc-1

This is obviously not ideal, but until it’s added to the wizard, at least it will get you started.

1 Like

Bildschirmfoto 2022-08-14 um 16.30.33

Thanks or the explanation, I created a new project using esp32-s3-devkitc-1 for Arduino.
Then I added the following in platformio.ini.

platform = espressif32
framework = espidf
board = esp32-s3-devkitc-1

But that does not work. Here’s the build output

Executing task: C:\Users\Jim.platformio\penv\Scripts\platformio.exe run

Processing esp32-s3-devkitc-1 (platform: espressif32; board: esp32-s3-devkitc-1; framework: espidf)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose option
CONFIGURATION: Redirecting...
PLATFORM: Espressif 32 (4.4.0) > Espressif ESP32-S3-DevKitC-1
HARDWARE: ESP32S3 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, 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)
Error: This board doesn’t support espidf framework!

  • framework-espidf @ 3.40302.0 (4.3.2)
  • tool-cmake @ 3.16.4
  • tool-esptoolpy @ 1.30300.0 (3.3.0)
  • tool-idf @ 1.0.1
  • tool-mconf @ 1.4060000.20190628 (406.0.0)
  • tool-ninja @ 1.9.0
  • toolchain-riscv32-esp @ 8.4.0+2021r2-patch3
  • toolchain-xtensa-esp32s3 @ 8.4.0+2021r2-patch3
    =============================================================================================== [FAILED] Took 0.58 seconds ===============================================================================================
  • The terminal process “C:\Users\Jim.platformio\penv\Scripts\platformio.exe ‘run’” terminated with exit code: 1.
  • Terminal will be reused by tasks, press any key to close it.

Update, turns out the problem was I needed to update the Espressif 32 platform to 5.1.0.
Now I get the option for ESP-IDF.

Thanks guys for the help.

1 Like

Please excuse my naivete here… I’m running into the exact same problem. I can’t figure out how to install ESPIDF 5.1. I saw this option (maybe?) Installing it stand-alone, but when I start up VSC/PlatformIO it shows as, I think 1.5.1 and upgrading stand-alone doesn’t seem to change that. I presume this is a completely different numbering scheme. Could you walk me through how to upgrade to 5.1 within PlatformIO as I see no obvious way to do that?

The update is not to IDF 5.1. It is the Platformio Platform espressif 32 update to 5.x
The used IDF is v4.4.2

Jason, could you please elaborate on what steps to do here? When I try to load Espressif IDF within VSC it always shows up as 1.5.1. If that’s what you are referring to, I’m not clear how to upgrade that to a newer version… If not, I don’t know what “Platformio Platform espressif 32” is referring to.

Ahh, got it… Go to PIO Home. Then click on “Platforms” (on the menu on the left side of PIO Home" then “Update” on the top of the window, then type: “Esp” and it should pull up Espressif 32, and then click Update to version 5.2. Seems to be working now.


Exactly. Great that it is working now.