Native development platform is intended to be used for desktop OS. This platform uses built-in toolchains (preferable based on GCC), frameworks, libs from particular OS where it will be run.
For more detailed information please visit vendor site.
PlatformIO does not install automatically any toolchains
for the native development platform. It depends
on the system
GCC toolchain that must be added to the
system environment variable.
Please open the system terminal and type
gcc --version. If the
gcc command is not found, you have to install the GCC toolchain
manually depending on your operating system:
Windows - see MinGW project
Linux - open the system terminal and run the following commands:
sudo apt update sudo apt install build-essential
macOS - open the system terminal and install Xcode Command Line Tools
> pio run -t exec # extra args > pio run -t exec --program-arg "arg1" --program-arg="--option1=value1" # or short format > pio run -t exec -a "arg1" -a "--option1=value1"
Examples are listed from Native development platform repository:
; Latest stable version [env:latest_stable] platform = native board = ... ; Custom stable version [env:custom_stable] platform = email@example.com board = ...
[env:upstream_develop] platform = https://github.com/platformio/platform-native.git board = ...