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