Greetings! With problems on how to set up the development environment for ESP32-P4 using platformIO,I would like to seek your guidance or suggestions . Thank you

Dear Engineers,
I hope you are well. I am currently facing some difficulties. I would appreciate it if you could offer some guidance or suggestions regarding how to use platformIO to set up the development environment for esp32-p4. Thank you very much.

Currently, the official Espressif32 platform by PlatformIO does not support ESP32-P4 boards (source).

However, the popular third-party platform pioarduino/platform-espressif32 does support the ESP32-P4, with both ESP-IDF and Arduino as available frameworks.

Per their board folder, it supports the boards

  • esp32-p4-evboard (“Espressif ESP32-P4 Function EV Board”, 16MB Flash)
  • esp32-p4 (“Espressif ESP32-P4 generic”, 4MB Flash)

To create a project, just create an arbitrary project (E.g., Arduino Uno, Framework Arduino) and overwrite the platformio.ini with

[env:esp32-p4]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip
board = esp32-p4
framework = arduino

After saving the file, and some time in which it downloads the files, you should be able to compile and upload for an ESP32-P4 perfectly fine.

Thank you for your reply. Now my problem has been successfully resolved.

1 Like

In the future, does PlatformIO have plans to start supporting ESP32-P4? I think the number of people using ESP32-P4 will be larger than that of several previous ESP32 models, because it has more resources and better performance. However, the official IDF is quite difficult to use.

I’m a volunteer and not speaking for this project, but maxgerhardt is a volunteer (much, much more committed than most) and is also not really capable of speaking for this project. He gave you a very diplomatic (and correct and useful and helpful) answer. The questioner confirmed success with that answer.

PlatformIO does not support any new Espressif hardware.

The volunteer-maintained fork of PlatformIO called PIOArduino DOES support new hardware, including ESP32-P4 (and C6, C5, H4, and such as they come), and it works fine.

If you need modern Espressif support, you should use projects that support modern Espressif parts. PIOArduino is one. PlatformIO is not. Read the room. :slight_smile: