Hi there,
I am a new to PlatformIO and seem to have fallen at the first hurdle. I installed the PlatformIO for VSCode as instructed here: PlatformIO IDE for VSCode — PlatformIO latest documentation but I cannot seem to get it to build any code.
This is the terminal output when I try and build:
Executing task in folder ArduinoTest: platformio run
Processing uno (platform: atmelavr; board: uno; framework: arduino)
-------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/uno.html
PLATFORM: Atmel AVR (3.4.0) > Arduino Uno
HARDWARE: ATMEGA328P 16MHz, 2KB RAM, 31.50KB Flash
DEBUG: Current (avr-stub) On-board (avr-stub, simavr)
PACKAGES:
- framework-arduino-avr 5.1.0
- toolchain-atmelavr 1.70300.191015 (7.3.0)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 5 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Compiling .pio/build/uno/src/main.cpp.o
Archiving .pio/build/uno/libFrameworkArduinoVariant.a
Compiling .pio/build/uno/FrameworkArduino/CDC.cpp.o
Compiling .pio/build/uno/FrameworkArduino/HardwareSerial.cpp.o
Compiling .pio/build/uno/FrameworkArduino/HardwareSerial0.cpp.o
Compiling .pio/build/uno/FrameworkArduino/HardwareSerial1.cpp.o
Compiling .pio/build/uno/FrameworkArduino/HardwareSerial2.cpp.o
*** [.pio/build/uno/libFrameworkArduinoVariant.a] sh: No such file or directory
*** [.pio/build/uno/src/main.cpp.o] sh: No such file or directory
*** [.pio/build/uno/FrameworkArduino/CDC.cpp.o] sh: No such file or directory
*** [.pio/build/uno/FrameworkArduino/HardwareSerial.cpp.o] sh: No such file or directory
*** [.pio/build/uno/FrameworkArduino/HardwareSerial0.cpp.o] sh: No such file or directory
*** [.pio/build/uno/FrameworkArduino/HardwareSerial1.cpp.o] sh: No such file or directory
*** [.pio/build/uno/FrameworkArduino/HardwareSerial2.cpp.o] sh: No such file or directory
Compiling .pio/build/uno/FrameworkArduino/HardwareSerial3.cpp.o
*** [.pio/build/uno/FrameworkArduino/HardwareSerial3.cpp.o] sh: No such file or directory
======================================================================== [FAILED] Took 0.79 seconds ========================================================================
The terminal process "platformio 'run'" terminated with exit code: 1.
Terminal will be reused by tasks, press any key to close it.
This directory is completely empty and my understanding is the it is supposed to be populated automatically on build.
My current diagnosis is with the env (I assume this is python). When I run a PlatformIO terminal and use the command which python3
, the output is /usr/local/opt/python@3.9/bin/python3
. Should this be a platformIO python environment? Using the command echo $PATH
shows that /.platformio/penv/bin
, /.platformio/penv
, and /.platformio/python3/bin
are all on the python path.
I am using PlatformIO 1.3.3, with the most up to date VSCode on macOS Catalina. I have tried reinstalling PlatformIO and VSCode, as well as deleting all sorts of directories and getting them to regenerate on build but to no avail. I am just trying to build a simple blink code for an esp32 (az-delivery-devkit-v4) but haven’t had any luck compiling for any board (even arduino uno as shown above).