Marlin compiling error using vscode

I have been trying to compile marlin, for a SKR V1.4 turbo in vscode. While doing this I’ve ran into an error code:

Processing LPC1769 (platform:; board: nxp_lpc1769; framework: arduino)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------Platform Manager: nxplpc-arduino-lpc176x @ 0.1.3 is already installed
Error: Unknown development platform 'PackageItem <path=C:\Users\Name.platformio\platforms\nxplpc-arduino-lpc176x metadata=PackageMetaData <type=platform name=nxplpc-arduino-lpc176x version=0.1.3 spec={‘owner’: None, ‘id’: None, ‘name’: ‘pio-nxplpc-arduino-lpc176x’, ‘requirements’: None, ‘url’: '’}’
The terminal process “C:\Users\Name.platformio\penv\Scripts\pio.exe ‘run’” terminated with exit code: 1.

I have been trying pretty much everything that I could find on the internet.
The Marlin that I am using is the latest bugfix.

Are you using the latest PlatformIO version? See “Upgrade PlatformIO core” here.

I believe I am. The version that I am using is v2.2.1 and Core 5.1.0

Yes, 5.1.0 is the latest stable.

I can’t reproduce the error you’ve having. I’m using git clone to get GitHub - MarlinFirmware/Marlin at bugfix-2.0.x in the branch bugfix-2.0.x, then grab the (I hope correct) config files from and select board = LPC1769 in the platformio.ini and compilation just starts.

C:\Users\Max\Documents\Marlin>pio run
Processing LPC1769 (platform:; board: nxp_lpc1769; framework: arduino)
Platform Manager: Installing
Platform Manager: nxplpc-arduino-lpc176x @ 0.1.3 has been installed!
The platform '' has been successfully installed!
The rest of the packages will be installed later depending on your build environment.
Tool Manager: Installing framework-arduino-lpc176x @ ^0.2.6
Tool Manager: framework-arduino-lpc176x @ 0.2.6 has been installed!
Verbose mode can be enabled via `-v, --verbose` option
PLATFORM: NXP Arduino LPC176x (0.1.3) > NXP LPC1769
HARDWARE: LPC1769 120MHz, 31.97KB RAM, 464KB Flash
DEBUG: Current (cmsis-dap) On-board (cmsis-dap) External (blackmagic, jlink)
 - framework-arduino-lpc176x 0.2.6
 - toolchain-gccarmnoneeabi 1.90301.200702 (9.3.1)
Converting Marlin.ino
LDF: Library Dependency Finder ->
LDF Modes: Finder ~ off, Compatibility ~ strict
Library Manager: Installing TMCStepper @ ~0.7.1
Library Manager: TMCStepper @ 0.7.1 has been installed!
Library Manager: Installing U8glib-HAL @ ~0.4.1
Library Manager: Warning! More than one package has been found by U8glib-HAL @ ~0.4.1 requirements:
 - marlinfirmware/U8glib-HAL @ 0.4.3
 - thinkyhead/U8glib-HAL @ 0.4.3
Library Manager: Please specify detailed REQUIREMENTS using package owner and version (showed above) to avoid name conflicts
Library Manager: U8glib-HAL @ 0.4.3 has been installed!
Found 6 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <Servo> 1.0.0
|-- <TMCStepper> 0.7.1
|-- <U8glib-HAL> 0.4.3
Building in release mode
error:Command 'cmd /C dir G:\' returned non-zero exit status 1.
error:Command 'cmd /C dir H:\' returned non-zero exit status 1.
error:Command 'cmd /C dir I:\' returned non-zero exit status 1.

Unable to find destination disk (Autodetect Error)
Please select it in platformio.ini using the upload_port keyword ( or copy the firmware (.pio/build/LPC1769/firmware.bin) manually to the appropriate disk

Compiling .pio\build\LPC1769\src\src\HAL\LPC1768\DebugMonitor.cpp.o
Compiling .pio\build\LPC1769\src\src\HAL\LPC1768\HAL.cpp.o
Indexing .pio\build\LPC1769\libFrameworkArduino.a
Linking .pio\build\LPC1769\firmware.elf
Building .pio\build\LPC1769\firmware.bin
Checking size .pio\build\LPC1769\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [====      ]  43.9% (used 14372 bytes from 32736 bytes)
Flash: [====      ]  38.0% (used 180656 bytes from 475136 bytes)
============================================= [SUCCESS] Took 42.36 seconds =============================================

Environment    Status    Duration
-------------  --------  ------------
LPC1769        SUCCESS   00:00:42.365
============================================= 1 succeeded in 00:00:42.365 =============================================

are you absolutely sure you’re using the latest bugfix version from their git? (

On a second thought, try and remove this folder and retry?

Yes this worked! It compiled it without any trouble!
Thank you very much!