2.0.x does not compile with TMC2208.
avr-gcc: error: CreateProcess: No such file or directory
Multiple libraries were found for "U8glib.h" Used: C:\Users\dobyc\Documents\Arduino\libraries\U8glib Multiple libraries were found for "TMCStepper.h" Used: C:\Users\dobyc\Documents\Arduino\libraries\TMCStepper Multiple libraries were found for "SPI.h" Used: C:\Users\dobyc\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.2\libraries\SPI Multiple libraries were found for "SoftwareSerial.h" Used: C:\Users\dobyc\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.2\libraries\SoftwareSerial exit status 1 Error compiling for board Arduino Mega or Mega 2560.
Arduino IDE 1.8.10/1.9.0-beta RAMPS 1.4 + Mega 2560
1.1.x compiles and runs fine. Set build.path in arduino config didn't help. Arduino folder in drive's root (path does not contain spaces).
This is most likely the windows command line length... In Marlin/src/HAL remove the unused HAL directories, only keep "HAL_AVR" and "shared" directories. Don't remove the two files in the HAL root directory.