Unable to build a simple project

Hello everyone, I’m still new to using platform.io and I’m having a difficult time building a simple blink program. I’ve tried uninstalling both vscode and platformio but the problem still persist. I would appreciate any help. Thank you very much.

main.cpp

#include <Arduino.h>

void setup() {
  // put your setup code here, to run once:
  pinMode(LED_BUILTIN,OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
  digitalWrite(LED_BUILTIN,HIGH);
  delay(1000);
  digitalWrite(LED_BUILTIN,LOW);
}

platformio.ini

[env:uno]

platform = atmelavr

board = uno

framework = arduino
----

Terminal

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.3.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
Compiling .pio\build\uno\FrameworkArduino\HardwareSerial3.cpp.o
*** [.pio\build\uno\src\main.cpp.o] Error 1
*** [.pio\build\uno\libFrameworkArduinoVariant.a] Error 1
*** [.pio\build\uno\FrameworkArduino\CDC.cpp.o] Error 1
*** [.pio\build\uno\FrameworkArduino\HardwareSerial.cpp.o] Error 1
*** [.pio\build\uno\FrameworkArduino\HardwareSerial0.cpp.o] Error 1
*** [.pio\build\uno\FrameworkArduino\HardwareSerial1.cpp.o] Error 1
*** [.pio\build\uno\FrameworkArduino\HardwareSerial2.cpp.o] Error 1
*** [.pio\build\uno\FrameworkArduino\HardwareSerial3.cpp.o] Error 1
====================================================================================== [FAILED] Took 0.51 seconds ======================================================================================
The terminal process "C:\Users\Charles\.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.
1 Like

Either your toolchain was corrupted or antivirus is blocking execution of it.

As a first step, please remove the C:\Users\<user>\.platformio\packages\toolchain-atmelavr folder completely, then try building again.

Hi, I disabled my firewall and deleted the toolchain-atmelavr folder and rebuilding but the error is still there.

Open a CLI and execute

C:\Users\<user>\.platformio\packages\toolchain-atmelavr\bin\avr-gcc --version

what does it output?

PS D:\Arduino Uno Blink Test> C:\Users\Charles\.platformio\packages\toolchain-atmelavr\bin\avr-gcc --version
avr-gcc.exe (GCC) 7.3.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Looking good, so at least avr-gcc does not seem corrupted.

Do you have an antivirus program active on the system beyond Windows Defender?

No, I double checked and window defender should be the only one I have on this computer

Can you copy-paste the output of the project task “Advanced → Verbose Build”?

Processing uno (platform: atmelavr; board: uno; framework: arduino)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/uno.html
PLATFORM: Atmel AVR (3.3.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
avr-g++ -o .pio\build\uno\src\main.cpp.o -c -fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++11 -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega328p -DPLATFORMIO=50101 -DARDUINO_AVR_UNO -DF_CPU=16000000L -DARDUINO_ARCH_AVR -DARDUINO=10808 -Iinclude -Isrc -IC:\Users\Charles\.platformio\packages\framework-arduino-avr\cores\arduino -IC:\Users\Charles\.platformio\packages\framework-arduino-avr\variants\standard src\main.cpp
avr-gcc-ar rc .pio\build\uno\libFrameworkArduinoVariant.a
avr-g++ -o .pio\build\uno\FrameworkArduino\CDC.cpp.o -c -fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++11 -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega328p -DPLATFORMIO=50101 -DARDUINO_AVR_UNO -DF_CPU=16000000L -DARDUINO_ARCH_AVR -DARDUINO=10808 -IC:\Users\Charles\.platformio\packages\framework-arduino-avr\cores\arduino -IC:\Users\Charles\.platformio\packages\framework-arduino-avr\variants\standard C:\Users\Charles\.platformio\packages\framework-arduino-avr\cores\arduino\CDC.cpp
avr-g++ -o .pio\build\uno\FrameworkArduino\HardwareSerial.cpp.o -c -fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++11 -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega328p -DPLATFORMIO=50101 -DARDUINO_AVR_UNO -DF_CPU=16000000L -DARDUINO_ARCH_AVR -DARDUINO=10808 -IC:\Users\Charles\.platformio\packages\framework-arduino-avr\cores\arduino -IC:\Users\Charles\.platformio\packages\framework-arduino-avr\variants\standard C:\Users\Charles\.platformio\packages\framework-arduino-avr\cores\arduino\HardwareSerial.cpp   
avr-g++ -o .pio\build\uno\FrameworkArduino\HardwareSerial0.cpp.o -c -fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++11 -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega328p -DPLATFORMIO=50101 -DARDUINO_AVR_UNO -DF_CPU=16000000L -DARDUINO_ARCH_AVR -DARDUINO=10808 -IC:\Users\Charles\.platformio\packages\framework-arduino-avr\cores\arduino -IC:\Users\Charles\.platformio\packages\framework-arduino-avr\variants\standard C:\Users\Charles\.platformio\packages\framework-arduino-avr\cores\arduino\HardwareSerial0.cpp
avr-g++ -o .pio\build\uno\FrameworkArduino\HardwareSerial1.cpp.o -c -fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++11 -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega328p -DPLATFORMIO=50101 -DARDUINO_AVR_UNO -DF_CPU=16000000L -DARDUINO_ARCH_AVR -DARDUINO=10808 -IC:\Users\Charles\.platformio\packages\framework-arduino-avr\cores\arduino -IC:\Users\Charles\.platformio\packages\framework-arduino-avr\variants\stand*** [.pio\build\uno\src\main.cpp.o] Error 1
ard C:\Users\Charles\.platformio\p*** [.pio\build\uno\libFrameworkArduinoVariant.a] Error 1
ackages\framework-arduino-avr\cores\arduino\Hard*** [.pio\build\uno\FrameworkArduino\CDC.cpp.o] Error 1
ware*** [.pio\build\uno\FrameworkArduino\HardwareSerial.cpp.o] Error 1
Seri*** [.pio\build\uno\FrameworkArduino\HardwareSerial0.cpp.o] Error 1
al1.*** [.pio\build\uno\FrameworkArduino\HardwareSerial1.cpp.o] Error 1
cpp
*** [.pio\build\uno\FrameworkArduino\HardwareSerial2.cpp.o] Error 1
avr-g++ -o .pio\build\uno\FrameworkArduino\HardwareSerial2.cpp.o -c -fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++11 -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega328p -DPLATFORMIO=50101 -DARDUINO_AVR_UNO -DF_CPU=16000000L -DARDUINO_ARCH_AVR -DARDUINO=10808 -IC:\Users\Charles\.platformio\packages\framework-arduino-avr\cores\arduino -IC:\Users\Charles\.platformio\pac*** [.pio\build\uno\FrameworkArduino\HardwareSerial3.cpp.o] Error 1
kages\framework-arduino-avr\variants\standard C:\Users\Charles\.platformio\packages\framework-arduino-avr\cores\arduino\HardwareSerial2.cpp
avr-g++ -o .pio\build\uno\FrameworkArduino\HardwareSerial3.cpp.o -c -fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++11 -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega328p -DPLATFORMIO=50101 -DARDUINO_AVR_UNO -DF_CPU=16000000L -DARDUINO_ARCH_AVR -DARDUINO=10808 -IC:\Users\Charles\.platformio\packages\framework-arduino-avr\cores\arduino -IC:\Users\Charles\.platformio\packages\framework-arduino-avr\variants\standard C:\Users\Charles\.platformio\packages\framework-arduino-avr\cores\arduino\HardwareSerial3.cpp 
============================================================================ [FAILED] Took 0.54 seconds ============================================================================
The terminal process "C:\Users\Charles\.platformio\penv\Scripts\platformio.exe 'run', '--verbose', '--environment', 'uno'" terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.

What happens when you, in the CLI, execute the two commands

C:\Users\Charles\.platformio\packages\toolchain-atmelavr\bin\avr-g++ -o .pio\build\uno\src\main.cpp.o -c -fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++11 -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega328p -DPLATFORMIO=50101 -DARDUINO_AVR_UNO -DF_CPU=16000000L -DARDUINO_ARCH_AVR -DARDUINO=10808 -Iinclude -Isrc -IC:\Users\Charles\.platformio\packages\framework-arduino-avr\cores\arduino -IC:\Users\Charles\.platformio\packages\framework-arduino-avr\variants\standard src\main.cpp
echo "last exitvalue:" $LastExitCode
PS D:\Arduino Uno Blink Test> C:\Users\Charles\.platformio\packages\toolchain-atmelavr\bin\avr-g++ -o .pio\build\uno\src\main.cpp.o -c -fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++11 
-Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega328p -DPLATFORMIO=50101 -DARDUINO_AVR_UNO -DF_CPU=16000000L -DARDUINO_ARCH_AVR -DARDUINO=10808 -Iinclude -Isrc -IC:\Users\Charles\.platformio\packages\framework-arduino-avr\cores\arduino -IC:\Users\Charles\.platformio\packages\framework-arduino-avr\variants\standard src\main.cpp
PS D:\Arduino Uno Blink Test> echo "last exitvalue:" $LastExitCode
last exitvalue:
0
PS D:\Arduino Uno Blink Test>

Funny how it works inside the shell, exit code 0 is ‘success’.

I see that PlatformIO is installed on the C: drive and the project is on D:. Does this project, when created in the standard C:\Users\<user>\Documents\PlatformIO\Projects folder also fail the same way? Is D:\ a network-mapped drive?

Remember if a new project is created, you must manually switch to it with the project environment switcher.

I was not aware of the environment switcher but when I recreated the project in the default folder it still produces the same error.

Running the two commands in the CLI:

PS C:\Users\Charles\Documents\PlatformIO\Projects\Uno Blink C Disk> C:\Users\Charles\.platformio\packages\toolchain-atmelavr\bin\avr-g++ -o .pio\build\uno\src\main.cpp.o -c -fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++11 -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega328p -DPLATFORMIO=50101 -DARDUINO_AVR_UNO -DF_CPU=16000000L -DARDUINO_ARCH_AVR -DARDUINO=10808 -Iinclude -Isrc -IC:\Users\Charles\.platformio\packages\framework-arduino-avr\cores\arduino -IC:\Users\Charles\.platformio\packages\framework-arduino-avr\variants\standard src\main.cpp
PS C:\Users\Charles\Documents\PlatformIO\Projects\Uno Blink C Disk> echo "last exitvalue:" $LastExitCode
last exitvalue:
0
PS C:\Users\Charles\Documents\PlatformIO\Projects\Uno Blink C Disk>

Advanced → Verbose Build output:

Processing uno (platform: atmelavr; board: uno; framework: arduino)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/uno.html
PLATFORM: Atmel AVR (3.3.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    
avr-g++ -o .pio\build\uno\src\main.cpp.o -c -fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++11 -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega328p -DPLATFORMIO=50101 -DARDUINO_AVR_UNO -DF_CPU=16000000L -DARDUINO_ARCH_AVR -DARDUINO=10808 -Iinclude -Isrc -IC:\Users\Charles\.platformio\packages\framework-arduino-avr\cores\arduino -IC:\Users\Charles\.platformio\packages\framework-arduino-avr\variants\standard src\main.cpp
avr-gcc-ar rc .pio\build\uno\libFrameworkArduinoVariant.a
avr-g++ -o .pio\build\uno\FrameworkArduino\CDC.cpp.o -c -fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++11 -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega328p -DPLATFORMIO=50101 -DARDUINO_AVR_UNO -DF_CPU=16000000L -DARDUINO_ARCH_AVR -DARDUINO=10808 -IC:\Users\Charles\.platformio\packages\framework-arduino-avr\cores\arduino -IC:\Users\Charles\.platformio\packages\framework-arduino-avr\variants\standard C:\Users\Charles\.platformio\packages\framework-arduino-avr\cores\arduino\CDC.cpp
avr-g++ -o .pio\build\uno\FrameworkArduino\HardwareSerial.cpp.o -c -fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++11 -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega328p -DPLATFORMIO=50101 -DARDUINO_AVR_UNO -DF_CPU=16000000L -DARDUINO_ARCH_AVR -DARDUINO=10808 -IC:\Users\Charles\.platformio\packages\framework-arduino-avr\cores\arduino -IC:\Users\Charles\.platformio\packages\framework-arduino-avr\variants\standard C:\Users\Charles\.platformio\packages\framework-arduino-avr\cores\arduino\HardwareSerial.cpp
avr-g++ -o .pio\build\uno\FrameworkArduino\HardwareSerial0.cpp.o -c -fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++11 -Os -Wall -ffunction-sections -fdata-sections -flto 
-mmcu=atmega328p -DPLATFORMIO=50101 -DARDUINO_AVR_UNO -DF_CPU=16000000L -DARDUINO_ARCH_AVR -DARDUINO=10808 -IC:\Users\Charles\.platformio\packages\framework-arduino-avr\cores\arduino -IC:\Users\Charles\.platformio\packages\framework-arduino-avr\variants\standard C:\Users\Charles\.platformio\packages\framework-arduino-avr\cores\arduino\HardwareSerial0.cpp
avr-g++ -o .pio\build\uno\FrameworkArduino\HardwareSerial1.cpp.o -c -fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++11 -Os -Wall -ffunction-sections -fdata-sections -flto 
-mmcu=atmega328p -DPLATFORMIO=50101 -DARDUINO_AVR_UNO -DF_CPU=16000000L -DARDUINO_ARCH_AVR -DARDUINO=10808 -IC:\Users\Charles\.platformio\packages\framework-arduino-avr\cores\arduino -IC:\Users\Charles\.platformio\packages\fra*** [.pio\build\uno\src\main.cpp.o] Error 1
mework-arduino-avr\variants\stan*** [.pio\build\uno\libFrameworkArduinoVariant.a] Error 1
dard C:\Users\Charles\.platformio\pack*** [.pio\build\uno\FrameworkArduino\CDC.cpp.o] Error 1
ages*** [.pio\build\uno\FrameworkArduino\HardwareSerial.cpp.o] Error 1
\fr*** [.pio\build\uno\FrameworkArduino\HardwareSerial0.cpp.o] Error 1
ame*** [.pio\build\uno\FrameworkArduino\HardwareSerial1.cpp.o] Error 1
work*** [.pio\build\uno\FrameworkArduino\HardwareSerial2.cpp.o] Error 1
-arduino-avr\cores\arduino\HardwareSerial1.cpp
avr-g++ -o .pio\build\uno\FrameworkArduino\HardwareSerial2.cpp.o -c -fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++11 -Os -Wall -ffunction-sections -fdata-sections -flto 
-mmcu=atmega328p -DPLATFORMIO=50101 -DARDUINO_AVR_UNO -DF_CPU=16000000L -DARDUINO_ARCH_AVR -DARDUINO=10808 -IC:\Users\Charles\.platformio\packages\framework-arduino-avr\cores\arduino -IC:*** [.pio\build\uno\FrameworkArduino\HardwareSerial3.cpp.o] Error 1
\Users\Charles\.platformio\packages\framework-arduino-avr\variants\standard C:\Users\Charles\.platformio\packages\framework-arduino-avr\cores\arduino\HardwareSerial2.cpp
avr-g++ -o .pio\build\uno\FrameworkArduino\HardwareSerial3.cpp.o -c -fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++11 -Os -Wall -ffunction-sections -fdata-sections -flto 
-mmcu=atmega328p -DPLATFORMIO=50101 -DARDUINO_AVR_UNO -DF_CPU=16000000L -DARDUINO_ARCH_AVR -DARDUINO=10808 -IC:\Users\Charles\.platformio\packages\framework-arduino-avr\cores\arduino -IC:\Users\Charles\.platformio\packages\framework-arduino-avr\variants\standard C:\Users\Charles\.platformio\packages\framework-arduino-avr\cores\arduino\HardwareSerial3.cpp
=============================================================================== [FAILED] Took 0.55 seconds ===============================================================================The terminal process "C:\Users\Charles\.platformio\penv\Scripts\platformio.exe 'run', '--verbose', '--environment', 'uno'" terminated with exit code: 1.

What happens in the CLI when you execute pio run?

PS C:\Users\Charles\Documents\PlatformIO\Projects\Uno Blink C Disk> pio 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.3.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
Compiling .pio\build\uno\FrameworkArduino\HardwareSerial3.cpp.o
*** [.pio\build\uno\src\main.cpp.o] Error 1
*** [.pio\build\uno\libFrameworkArduinoVariant.a] Error 1
*** [.pio\build\uno\FrameworkArduino\CDC.cpp.o] Error 1
*** [.pio\build\uno\FrameworkArduino\HardwareSerial.cpp.o] Error 1
*** [.pio\build\uno\FrameworkArduino\HardwareSerial0.cpp.o] Error 1
*** [.pio\build\uno\FrameworkArduino\HardwareSerial1.cpp.o] Error 1
*** [.pio\build\uno\FrameworkArduino\HardwareSerial2.cpp.o] Error 1
*** [.pio\build\uno\FrameworkArduino\HardwareSerial3.cpp.o] Error 1
=============================================================================== [FAILED] Took 0.50 seconds ===============================================================================PS C:\Users\Charles\Documents\PlatformIO\Projects\Uno Blink C Disk>

I really have no idea why individual compiler commands work in a CLI but not when PlatformIO invokes it. My first huch is always an interfering antivirus, but if you say there is none, then that can’t be.

Try a complete clean reinstall. First, remove the PlatformIO VSCode extension, close VSCode, remove the C:\Users\<user>\.platformio folder completely, then restart VSCode and install the PlatformIO extension.

Then try to create a new project again, but this one without spaces in the project name for safety reasons, and attempt to build it again.

Alright, I completely deleted everything platformio related and reinstalled the extension but the issue still persist. I’m not sure what the problem is either.

For reference what does pio system info output in the CLI?

Does the behavior change after you do a pio upgrade --dev?

PS C:\Users\Charles\Documents\PlatformIO\Projects\blinkyUno> pio system info
--------------------------  --------------------------------------------------------
Python                      3.9.2-final.0
System Type                 windows_amd64
Platform                    Windows-10
File System Encoding        utf-8
Locale Encoding             cp1252
PlatformIO Core Directory   C:\Users\Charles\.platformio
PlatformIO Core Executable  C:\Users\Charles\.platformio\penv\Scripts\platformio.exe
Python Executable           C:\Users\Charles\.platformio\penv\Scripts\python.exe
Global Libraries            0
Development Platforms       1
Tools & Toolchains          4
--------------------------  --------------------------------------------------------
PS C:\Users\Charles\Documents\PlatformIO\Projects\blinkyUno> pio upgrade --dev
Please wait while upgrading PlatformIO ...
PlatformIO has been successfully upgraded to 5.2.0b1
Release notes: https://docs.platformio.org/en/latest/history.html
PS C:\Users\Charles\Documents\PlatformIO\Projects\blinkyUno> pio system info
Please wait while upgrading PlatformIO...
PlatformIO has been successfully upgraded to 5.2.0b1!

*********************************************************************************************************************************************************************************************************If you like PlatformIO, please:
- follow us on Twitter to stay up-to-date on the latest project news > https://twitter.com/PlatformIO_Org
- star it on GitHub > https://github.com/platformio/platformio
- try PlatformIO IDE for embedded development > https://platformio.org/platformio-ide
*********************************************************************************************************************************************************************************************************
--------------------------  --------------------------------------------------------
PlatformIO Core             5.2.0b1
Python                      3.9.2-final.0
System Type                 windows_amd64
Platform                    Windows-10
File System Encoding        utf-8
Locale Encoding             cp1252
PlatformIO Core Directory   C:\Users\Charles\.platformio
PlatformIO Core Executable  C:\Users\Charles\.platformio\penv\Scripts\platformio.exe
Python Executable           C:\Users\Charles\.platformio\penv\Scripts\python.exe
Global Libraries            0
Development Platforms       1
Tools & Toolchains          4
--------------------------  --------------------------------------------------------
PS C:\Users\Charles\Documents\PlatformIO\Projects\blinkyUno>

That all looks correct and standard.

Please open an issue at Issues · platformio/platformio-vscode-ide · GitHub with your original error message and picture for further help by the developes – I’m out of ideas here.