PlatformIO Community

Marlin compiling help needed please

Hello I am very new to Platformio and i am trying to set up marlin 2.0 on my Bigtreetech skr 2 ver B and the various videos made it look easy however it has been the complete opposite. I have downloaded Marlin 2.0 and config files which I have made changes for my 3d printer in the configuration h and configuration adv h files and i cant get it to successfully compile. i have copied the log from the terminal and was wondering if anyone could please help me correct this ?

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 -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 10 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <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
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\IPAddress.cpp.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\Print.cpp.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\RingBuffer.cpp.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\Stream.cpp.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\Tone.cpp.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\USB.cpp.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\USBSerial.cpp.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\VirtIOSerial.cpp.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\WInterrupts.cpp.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\WMath.cpp.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\WSerial.cpp.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\WString.cpp.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\abi.cpp.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\avr\dtostrf.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\board.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\hooks.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\itoa.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\main.cpp.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\new.cpp.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\pins_arduino.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\OpenAMP\libmetal\device.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\OpenAMP\libmetal\generic\condition.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\OpenAMP\libmetal\generic\cortexm\sys.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\OpenAMP\libmetal\generic\generic_device.c.oCompiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\OpenAMP\libmetal\generic\generic_init.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\OpenAMP\libmetal\generic\generic_io.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\OpenAMP\libmetal\generic\generic_shmem.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\OpenAMP\libmetal\generic\time.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\OpenAMP\libmetal\init.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\OpenAMP\libmetal\io.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\OpenAMP\libmetal\log.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\OpenAMP\libmetal\shmem.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\OpenAMP\mbox_ipcc.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\OpenAMP\open-amp\remoteproc\remoteproc_virtio.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\OpenAMP\open-amp\rpmsg\rpmsg.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\OpenAMP\open-amp\rpmsg\rpmsg_virtio.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\OpenAMP\openamp.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\OpenAMP\rsc_table.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\OpenAMP\virt_uart.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\OpenAMP\virtio\virtio.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\OpenAMP\virtio\virtqueue.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\OpenAMP\virtio_buffer.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\OpenAMP\virtio_log.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\startup_stm32yyxx.S.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\usb\cdc\cdc_queue.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\usb\cdc\usbd_cdc.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\usb\cdc\usbd_cdc_if.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\usb\cdc_msc\usbd_cdc_msc.cpp.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\usb\hid\usbd_hid_composite.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\usb\hid\usbd_hid_composite_if.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\usb\msc\usbd_msc.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\usb\msc\usbd_msc_bot.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\usb\msc\usbd_msc_data.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\usb\msc\usbd_msc_scsi.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\usb\msc\usbd_msc_storage_if.cpp.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\usb\usb_device_core.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\usb\usb_device_ctlreq.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\usb\usb_device_ioreq.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\usb\usbd_conf.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\usb\usbd_desc.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\usb\usbd_ep_conf.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\usb\usbd_if.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\usb_host\hid\usb_host_hid.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\usb_host\hid\usb_host_hid_keybd.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\usb_host\hid\usb_host_hid_mouse.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\usb_host\hid\usb_host_hid_parser.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\usb_host\msc\usb_host_msc.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\usb_host\msc\usb_host_msc_bot.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\usb_host\msc\usb_host_msc_scsi.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\usb_host\usb_host_core.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\usb_host\usb_host_ctlreq.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\usb_host\usb_host_ioreq.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\usb_host\usb_host_pipes.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\stm32\usb_host\usbh_conf.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\wiring_analog.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\wiring_digital.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\wiring_pulse.cpp.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\wiring_shift.c.o
Compiling .pio\build\BIGTREE_SKR_2\FrameworkArduino\wiring_time.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_adc.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_adc_ex.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_can.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_cec.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_comp.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_comp_ex.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_cordic.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_cortex.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_crc.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_crc_ex.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_cryp.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_cryp_ex.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_dac.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_dac_ex.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_dcmi.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_dcmi_ex.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_dfsdm.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_dfsdm_ex.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_dma.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_dma2d.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_dma_ex.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_dsi.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_dts.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_eth.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_eth_ex.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_exti.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_fdcan.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_firewall.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_flash.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_flash_ex.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_flash_ramfunc.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_fmac.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_fmpi2c.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_fmpi2c_ex.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_fmpsmbus.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_gfxmmu.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_gpio.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_gpio_ex.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_hash.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_hash_ex.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_hcd.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_hrtim.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_hsem.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_i2c.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_i2c_ex.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_i2s.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_i2s_ex.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_ipcc.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_irda.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_iwdg.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_jpeg.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_lcd.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_lptim.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_ltdc.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_ltdc_ex.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_mdios.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_mdma.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_mmc.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_mmc_ex.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_nand.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_nor.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_opamp.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_opamp_ex.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_ospi.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_otfdec.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_pccard.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_pcd.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_pcd_ex.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_pka.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_pssi.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_pwr.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_pwr_ex.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_qspi.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_ramecc.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_rcc.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_rcc_ex.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_rng.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_rng_ex.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_rtc.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_rtc_ex.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_sai.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_sai_ex.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_sd.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_sd_ex.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_sdadc.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_sdram.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_smartcard.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_smartcard_ex.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_smbus.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_smbus_ex.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_spdifrx.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_spi.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_spi_ex.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_sram.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_swpmi.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_tim.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_tim_ex.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_tsc.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_uart.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_uart_ex.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_usart.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_usart_ex.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\HAL\stm32yyxx_hal_wwdg.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\LL\stm32yyxx_ll_adc.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\LL\stm32yyxx_ll_bdma.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\LL\stm32yyxx_ll_comp.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\LL\stm32yyxx_ll_cordic.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\LL\stm32yyxx_ll_crc.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\LL\stm32yyxx_ll_crs.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\LL\stm32yyxx_ll_dac.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\LL\stm32yyxx_ll_delayblock.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\LL\stm32yyxx_ll_dma.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\LL\stm32yyxx_ll_dma2d.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\LL\stm32yyxx_ll_exti.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\LL\stm32yyxx_ll_fmac.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\LL\stm32yyxx_ll_fmc.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\LL\stm32yyxx_ll_fmpi2c.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\LL\stm32yyxx_ll_fsmc.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\LL\stm32yyxx_ll_gpio.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\LL\stm32yyxx_ll_hrtim.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\LL\stm32yyxx_ll_i2c.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\LL\stm32yyxx_ll_lptim.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\LL\stm32yyxx_ll_lpuart.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\LL\stm32yyxx_ll_mdma.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\LL\stm32yyxx_ll_opamp.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\LL\stm32yyxx_ll_pka.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\LL\stm32yyxx_ll_pwr.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\LL\stm32yyxx_ll_rcc.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\LL\stm32yyxx_ll_rng.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\LL\stm32yyxx_ll_rtc.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\LL\stm32yyxx_ll_sdmmc.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\LL\stm32yyxx_ll_spi.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\LL\stm32yyxx_ll_swpmi.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\LL\stm32yyxx_ll_tim.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\LL\stm32yyxx_ll_ucpd.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\LL\stm32yyxx_ll_usart.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\LL\stm32yyxx_ll_usb.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\LL\stm32yyxx_ll_utils.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\stm32\PortNames.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\stm32\analog.cpp.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\stm32\bootloader.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\stm32\clock.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\stm32\core_callback.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\stm32\dwt.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\stm32\hw_config.cpp.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\stm32\interrupt.cpp.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\stm32\lock_resource.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\stm32\pinmap.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\stm32\stm32_def.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\stm32\system_stm32yyxx.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\stm32\timer.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\stm32\uart.c.o
Compiling .pio\build\BIGTREE_SKR_2\SrcWrapper\src\syscalls.c.o
Compiling .pio\build\BIGTREE_SKR_2\src\src\HAL\STM32\HAL.cpp.o
Compiling .pio\build\BIGTREE_SKR_2\src\src\HAL\STM32\HAL_MinSerial.cpp.o
Compiling .pio\build\BIGTREE_SKR_2\src\src\HAL\STM32\HAL_SPI.cpp.o
Compiling .pio\build\BIGTREE_SKR_2\src\src\HAL\STM32\MarlinSPI.cpp.o
Compiling .pio\build\BIGTREE_SKR_2\src\src\HAL\STM32\MarlinSerial.cpp.o
In file included from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:50,
                 from Marlin\src\HAL\STM32\HAL.cpp:30:
Marlin\src\HAL\STM32\../../inc/SanityCheck.h:3823:4: error: #error "X_DRIVER_TYPE is not recognized." 3823 |   #error "X_DRIVER_TYPE is not recognized."
      |    ^~~~~
Marlin\src\HAL\STM32\../../inc/SanityCheck.h:3826:4: error: #error "Y_DRIVER_TYPE is not recognized." 3826 |   #error "Y_DRIVER_TYPE is not recognized."
      |    ^~~~~
Marlin\src\HAL\STM32\../../inc/SanityCheck.h:3829:4: error: #error "Z_DRIVER_TYPE is not recognized." 3829 |   #error "Z_DRIVER_TYPE is not recognized."
      |    ^~~~~
Marlin\src\HAL\STM32\../../inc/SanityCheck.h:3856:4: error: #error "E0_DRIVER_TYPE is not recognized."
 3856 |   #error "E0_DRIVER_TYPE is not recognized."
      |    ^~~~~
In file included from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:50,
                 from Marlin\src\HAL\STM32\HAL_SPI.cpp:27:
Marlin\src\HAL\STM32\../../inc/SanityCheck.h:3823:4: error: #error "X_DRIVER_TYPE is not recognized." 3823 |   #error "X_DRIVER_TYPE is not recognized."
      |    ^~~~~
Marlin\src\HAL\STM32\../../inc/SanityCheck.h:3826:4: error: #error "Y_DRIVER_TYPE is not recognized." 3826 |   #error "Y_DRIVER_TYPE is not recognized."
      |    ^~~~~
Marlin\src\HAL\STM32\../../inc/SanityCheck.h:3829:4: error: #error "Z_DRIVER_TYPE is not recognized." 3829 |   #error "Z_DRIVER_TYPE is not recognized."
      |    ^~~~~
Marlin\src\HAL\STM32\../../inc/SanityCheck.h:3856:4: error: #error "E0_DRIVER_TYPE is not recognized."
 3856 |   #error "E0_DRIVER_TYPE is not recognized."
      |    ^~~~~
*** [.pio\build\BIGTREE_SKR_2\src\src\HAL\STM32\HAL.cpp.o] Error 1
*** [.pio\build\BIGTREE_SKR_2\src\src\HAL\STM32\HAL_SPI.cpp.o] Error 1
In file included from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:50,
                 from Marlin\src\HAL\STM32\MarlinSerial.cpp:27:
Marlin\src\HAL\STM32\../../inc/SanityCheck.h:3823:4: error: #error "X_DRIVER_TYPE is not recognized." 3823 |   #error "X_DRIVER_TYPE is not recognized."
      |    ^~~~~
Marlin\src\HAL\STM32\../../inc/SanityCheck.h:3826:4: error: #error "Y_DRIVER_TYPE is not recognized." 3826 |   #error "Y_DRIVER_TYPE is not recognized."
      |    ^~~~~
Marlin\src\HAL\STM32\../../inc/SanityCheck.h:3829:4: error: #error "Z_DRIVER_TYPE is not recognized." 3829 |   #error "Z_DRIVER_TYPE is not recognized."
      |    ^~~~~
Marlin\src\HAL\STM32\../../inc/SanityCheck.h:3856:4: error: #error "E0_DRIVER_TYPE is not recognized."
      |    ^~~~~
*** [.pio\build\BIGTREE_SKR_2\src\src\HAL\STM32\MarlinSerial.cpp.o] Error 1
==================================== [FAILED] Took 98.75 seconds ====================================

Environment    Status    Duration
-------------  --------  ------------
BIGTREE_SKR_2  FAILED    00:01:38.749
=============================== 1 failed, 0 succeeded in 00:01:38.749 ===============================PS C:\Users\tim36\Desktop\Marlin-2.0.x> echo "done" >"C:\Users\tim36\AppData\Local\Temp\ipc"
PS C:\Users\tim36\Desktop\Marlin-2.0.x>

looks like a included file but in wrong order . Some variables can’t be found (look at the end of your log file).
I did once build marlin 2.0 for my tevo tornado but did not see any problems .

Did you try to build the original code without modification ?

Then those changes are wrong or outdated. Do you not want to just use

?

I used the SKR-2firmware-bugfix2.0.9.2 and it compiled fine i went back and edited some settings specific to my 3d printer and now it wont complie i gives me these errors.

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

PS C:\Users\tim36\Desktop\Marlin-bugfix-2.0.9.2.x> platformio run -e BIGTREE_SKR_2_F429
Processing BIGTREE_SKR_2_F429 (platform: ststm32@~12.1; board: STM32F429VGT6; framework: arduino)
----------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
In file included from buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/MarlinConfigPre.h:49,
                 from buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/MarlinConfig.h:28,
                 from buildroot/share/PlatformIO/scripts/common-dependencies.h:29:
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/Conditionals_LCD.h:799:6: error: #error "BLTOUCH requires Z_MIN_PROBE_ENDSTOP_INVERTING set to false. Please update your Configuration.h file."
  799 |     #error "BLTOUCH requires Z_MIN_PROBE_ENDSTOP_INVERTING set to false. Please update your Configuration.h file."        
      |      ^~~~~
CalledProcessError: Command '"C:\Users\tim36\.platformio\packages\toolchain-gccarmnoneeabi\bin\arm-none-eabi-g++.exe" -D__MARLIN_FIRMWARE__ -DNDEBUG -DHAL_STM32 -DUSBCON -DUSBD_USE_CDC -DTIM_IRQ_PRIO=13 -DHAL_PCD_MODULE_ENABLED -DHAL_HCD_MODULE_ENABLED -DUSBHOST -DUSBH_IRQ_PRIO=3 -DUSBH_IRQ_SUBPRIO=4 -DUSE_USBHOST_HS -DUSE_USB_HS_IN_FS -DUSBD_IRQ_PRIO=5 -DUSBD_IRQ_SUBPRIO=6 -DHSE_VALUE=8000000U -DHAL_SD_MODULE_ENABLED -DPIN_SERIAL3_RX=PD_9 -DPIN_SERIAL3_TX=PD_8 -D__MARLIN_DEPS__ -w -dM -E -x c++ buildroot/share/PlatformIO/scripts/common-dependencies.h' returned non-zero exit status 1.:
  File "C:\Users\tim36\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 179:
    env.SConscript(item, exports="env")
  File "C:\Users\tim36\.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Script\SConscript.py", line 597:
    return _SConscript(self.fs, *files, **subst_kw)
  File "C:\Users\tim36\.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Script\SConscript.py", line 285:
    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
  File "C:\Users\tim36\Desktop\Marlin-bugfix-2.0.9.2.x\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 317:      
    apply_features_config()
  File "C:\Users\tim36\Desktop\Marlin-bugfix-2.0.9.2.x\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 133:      
    if not env.MarlinFeatureIsEnabled(feature):
  File "C:\Users\tim36\.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Util.py", line 742:
    return self.method(*nargs, **kwargs)
  File "C:\Users\tim36\Desktop\Marlin-bugfix-2.0.9.2.x\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 290:      
    load_marlin_features()
  File "C:\Users\tim36\Desktop\Marlin-bugfix-2.0.9.2.x\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 278:      
    define_list = subprocess.check_output(cmd, shell=True).splitlines()
  File "C:\Users\tim36\.platformio\python3\lib\subprocess.py", line 424:
  File "C:\Users\tim36\.platformio\python3\lib\subprocess.py", line 528:
    raise CalledProcessError(retcode, process.args,
=================================================== [FAILED] Took 1.41 seconds ===================================================

Environment         Status    Duration
------------------  --------  ------------
BIGTREE_SKR_2_F429  FAILED    00:00:01.413
============================================= 1 failed, 0 succeeded in 00:00:01.413 ============================================= 
PS C:\Users\tim36\Desktop\Marlin-bugfix-2.0.9.2.x> echo "done" >"C:\Users\tim36\AppData\Local\Temp\ipc"
PS C:\Users\tim36\Desktop\Marlin-bugfix-2.0.9.2.x>

Have you tried setting that?

If you have problems with custom Marlin configs, I think it’s also better to ask at Issues · MarlinFirmware/Marlin · GitHub.