Wokwi Cannot Find firmware.bin in PlatformIO (VS Code)

Hi everyone,

I’m using PlatformIO within VS Code to develop for ESP32, and my project compiles successfully. The firmware.bin file is generated in:

.pio\build\esp32doit-devkit-v1\firmware.bin

However, when I try to run the simulation in Wokwi, I always get the following error:

Wokwi: firmware binary .pio\build\esp32doit-devkit-v1\firmware.bin not found in workspace

Even though the firmware.bin file is actually there, Wokwi still cannot find it.

Has anyone encountered this issue before? Any ideas on how to fix it?

Thanks in advance!

Even though this question concerns Wokwi and not PlatformIO, I would like to try to help you.

Create a subdirectory “wokwi” in your project.
Create a file “wokwi.toml” and a “diagram.json” in this directory
The content of “wokwi.toml" should look like this :

[wokwi]
version = 1
firmware = '../.pio/build/esp32doit-devkit-v1/firmware.bin'
elf = '../.pio/build/esp32doit-devkit-v1/firmware.elf'
gdbServerPort=3333

Note the relative path from the wokwi.toml to the firmware.bin.

For further help regarding Wokwi, please contact wokwi support.

Thank you very much for your suppoet.

Thank you very much for your suppoet.