When I saw this ("avrdude: stk500_getsync() : not in sync: resp=0xed"), I had the baud rate wrong. My board wants a 57600 baud. (atmega1284.upload.speed=57600). I had tweaked it trying to fix another issue, and it was not helping. Once I changed it back, it worked fine.
↧