ESP32 Dev Module — Build Fails with “CreateProcess: No such file or directory”

Hello,
I’m working on an ESP32 Dev Module project in PlatformIO (VS Code). This is my main project code, not a test project, and the build consistently fails with the following error:

Details:

  • Board: esp32dev

  • Framework: Arduino

  • PlatformIO version: latest (clean reinstall)

  • Toolchain: toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5

  • OS: Windows 11

  • I already checked PATH, deleted/reinstalled the toolchain, and cleared .platformio\.cache.

Despite this, the error persists. PlatformIO seems to locate the toolchain, but Windows cannot launch it.

Please show the content of your platformio.ini

1 Like

this is my platformio.ini

[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino

PlatformIO on Windows 11 fails to compile ESP32 projects with CreateProcess: No such file or directory, even though the toolchain exists and runs manually. All standard fixes (reinstall, PATH, permissions, shell, environment reset) have been attempted without success.
thanks for responding.

Do you have some antivirus installed?

Is the path to your project very long?

Does your project path have special characters (non-ASCII, non-english ones)?