. (you need to turn on hidden folders) C:\Users\you\AppData\Local\Arduino15\packages\Sanguino\hardware\avr\1.0.0\boards.txt.
The stk500_getsync() error was fixed after editing the upload.speed from 152000 to 57600 for the chip i was using (1284p16mhz).