Error - need help - code will not upload.

Hi guys

Was doing some arduino stuff last night - Editing and uploading a few lines at a time as I always do...

Then out of no where I started getting this error message

Binary sketch size: 2488 bytes (of a 30720 byte maximum)
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

OS is W7
Its been fine for 2+ years
board is duemilianove
IC is the 328

I have tried multiple IC's

The code when it stopped is this... as you can see nothing taxing at all :cold_sweat:

// include the library code:
#include <LiquidCrystal.h>

LiquidCrystal lcd(8, 7, 6, 5, 4, 3);

//input buttons
const int MenuButton = 19;
const int UpButton = 18;
const int DownButton = 1;
const int SaveButton = 0;

int MenuState = 0;
int UpState = 0;
int DownState = 0;
int SaveState = 0;

void setup() {
 pinMode(MenuButton, INPUT); 
 pinMode(UpButton, INPUT);
 pinMode(DownButton, INPUT);
 pinMode(SaveButton, INPUT);
 
 //splashscreen 
 lcd.begin(16, 2);
 lcd.print("ScopeBuddy_final.pde");
  
 delay(2500);
 lcd.clear();
}

void loop() {
int Mode = 0; 

MenuState = digitalRead(MenuButton);

if (MenuState, HIGH){
 Mode++; 
}  
  
 switch(Mode){
   case 0:
   lcd.clear();
   lcd.print("Case 0");
   delay(3000);
   
   case 1:   
   lcd.clear();
   lcd.print("Case 1");
   delay(3000);
   
   case 2:
   lcd.clear();
   lcd.print("Case 2");
   delay(3000);
   
   case 3:
   lcd.clear();
   lcd.print("Case 3");  
   delay(3000);
 }
}

Any help would be much appreciated

Thanks

Remove all attachments to the board and test the FTDI chip!

And if you want to avoid future headaches, get an ISP as well.

More information is in my signature.

Do I test the FTDI with a loop back test in your signature?

If so I connected the board by usb.

took everything off the board including the ATmega (?)

and it didn't loop anything back..

I don't know where to start to test something like that...

I'll deffo be getting a ISP though - been on the list for a while

What ?

I was hinting to read the post about 'loop back test' presented to you in my signature as a common hyperlink :wink:

Essentially you remove everything from your board. If you've already popped out the ATmega328 that is fine. If not, use a wire to connect the RESET pin to GND. Then jumper the RX and TX pins, connect it to USB, fire up the IDE and type stuff in the serial monitor. It should be echo-ed back (maybe you need to press the 'send' button as well). If you don't see anything coming back and none of the LEDs blink, there is either a problem with the serial chip or with its driver.