[SOLVED] Can I build/upload for a single board in a project with several defined?

I have a platform.ini with several projects. At the moment I only want to build/deploy to one of the boards and not all because it takes so long. Is there a way to do this without putting everything in its own project?

Yes, there is.
Just run the command
pio run -e "environment_you_want_to_build_for"
It will trigger the build only for the board you specify above

Also, take a look at env_default option.

Perfect, both suggestions are good. That let’s me run for any desired board but also lets me setup defaults. Thanks @Krishna_Chaitanya and @ivankravets.

1 Like