Compiling issue skr 2 marlin

Hello There,

Anyone that can help me with the below issue, I just can’t get the marlin build correct.

> Executing task: platformio run <

Processing BIGTREE_SKR_2 (platform: ststm32@~12.1; board: marlin_STM32F407VGT6_CCM; framework: arduino)
------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/marlin_STM32F407VGT6_CCM.html
PLATFORM: ST STM32 (12.1.1) > STM32F407VG (128k RAM, 64k CCM RAM, 1024k Flash
HARDWARE: STM32F407VGT6 168MHz, 128KB RAM, 1MB Flash
DEBUG: Current (stlink) External (jlink, stlink)
PACKAGES: 
 - framework-arduinoststm32 0.0.0 
 - framework-cmsis 2.50501.200527 (5.5.1) 
 - toolchain-gccarmnoneeabi 1.90201.191206 (9.2.1)
Converting Marlin.ino
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Library Manager: Installing TMCStepper @ ~0.7.1
Library Manager: TMCStepper @ 0.7.3 has been installed!
Found 13 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <TMCStepper> 0.7.3
|   |-- <SPI> 1.0
|   |-- <SoftwareSerial> 1.0
|-- <Adafruit NeoPixel> 1.8.7
|-- <U8glib-HAL> 0.5.1
|   |-- <Wire> 1.0
|   |-- <SPI> 1.0
|-- <SPI> 1.0
|-- <Servo> 1.1.2
|-- <EEPROM> 2.0.1
|-- <SoftwareSerial> 1.0
|-- <IWatchdog> 1.0.0
|-- <Wire> 1.0
Building in release mode
Compiling .pio/build/BIGTREE_SKR_2/FrameworkArduinoVariant/PeripheralPins.c.o
Compiling .pio/build/BIGTREE_SKR_2/FrameworkArduinoVariant/variant.cpp.o
Compiling .pio/build/BIGTREE_SKR_2/FrameworkArduino/HardwareSerial.cpp.o
Compiling .pio/build/BIGTREE_SKR_2/FrameworkArduino/HardwareTimer.cpp.o
Assembler messages:
Fatal error: can't create .pio/build/BIGTREE_SKR_2/FrameworkArduinoVariant/PeripheralPins.c.o: No such file or directory
Assembler messages:
Fatal error: can't create .pio/build/BIGTREE_SKR_2/FrameworkArduinoVariant/variant.cpp.o: No such file or directory
*** [.pio/build/BIGTREE_SKR_2/FrameworkArduinoVariant/PeripheralPins.c.o] Error 1
*** [.pio/build/BIGTREE_SKR_2/FrameworkArduinoVariant/variant.cpp.o] Error 1
Assembler messages:
Fatal error: can't create .pio/build/BIGTREE_SKR_2/FrameworkArduino/HardwareSerial.cpp.o: No such file or directory
*** [.pio/build/BIGTREE_SKR_2/FrameworkArduino/HardwareSerial.cpp.o] Error 1
Assembler messages:
Fatal error: can't create .pio/build/BIGTREE_SKR_2/FrameworkArduino/HardwareTimer.cpp.o: No such file or directory
*** [.pio/build/BIGTREE_SKR_2/FrameworkArduino/HardwareTimer.cpp.o] Error 1
================================================================ [FAILED] Took 8.40 seconds ================================================================

Environment    Status    Duration
-------------  --------  ------------
BIGTREE_SKR_2  FAILED    00:00:08.403
========================================================== 1 failed, 0 succeeded in 00:00:08.403 ==========================================================
The terminal process "platformio 'run'" terminated with exit code: 1.

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

What Marlin release did you download? Please post the URL.

Did you also download the config files and extract them to the correct place?

Please post your platformio.ini that your build is using please.

When posting code, or compilation output, please wrap it in three back ticks, like this:

```
Your code here
```

That way we see the full message/code and any escaped characters are still visible, thanks.

You may notice that I’ve edited your original post to wrap the compilation messages in this manner which makes it far easier to read. :wink:

Cheers,
Norm.

Either there is a file permission error or the folder paths have gotten too long (see Windows MAX_PATH limiation). Place the Marlin folder somewhere closer to the root of the filesystem, e.g., C:\Marlin.