About project build and upload

When I use vscode and platformIO build my project, the project will always be rebuild, and the same, when I upload the project, the project will be upload times by times, unless I kill the terminal.


like the picture show, when the project was build, the platformIO: Build, the build program will not stop, but complie again. And when I upload the project, having the same problem. Have anyone have this problem, and I want to know why?

It looks like you have multiple environments in your platformio.ini.
At least [env:esp32cam_ai_thinker] and [env:esp32cam-espressif_esp_eye]

If you have selected the “default” environment and press the build-button, all environments are built one after the other.

So it does stop, after all environments are built.

To prevent this, you can select a specific environment to be built in the environment switcher in the bottom bar.

1 Like

Thank you, this is the key of the problem, I’ve just realized the problem.