Arduino Fio wired programming failure

Hello,

I’m trying to program an Arduino Fio using the FTDI Basic Workout. I have never programmed it before this way, a friend of mine always used to program it wirelessly through the Xbee modules.

My OS is Windows 7 64-bit and it seems that FTDI VCP drivers are correctly installed. The configuration of the USB serial port is 9600kbps, 8 data bits, no parity, 1 stop bit and no flow control. The program I want to upload is the following:

int potPin = 2;    // select the input pin for the flex sensor
int val = 0;       // variable to store the value coming from the sensor

void setup() {
  // open the serial port at 9600 bps:
  Serial.begin(9600);
}

void loop() {
  val = analogRead(potPin);    // read the value from the flex sensor
  Serial.println(val, DEC);         // print as an ASCII-encoded decimal
  delay(100);                  // stop the program for 100 miliseconds
}

When I upload the error message I get is:

avrdude: stk500_getsync(): not in sync: resp=0x00

avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x00

and the sequence of events is the following:

  1. the green Rx LED of the FTDI blinks (once),

  2. then the red LED of pin 13 on the Arduino Fio blinks 3 times,

  3. then the red Tx LED of the FTDI blinks 3 times,

  4. then the green Rx of the FTDI blinks once,

  5. Tx LED of FTDI blinks once more and

  6. Rx LED of FTDI blinks again once before the error message pops up.

I have tried resetting the Arduino just after pressing “upload” and releasing it in different time intervals, although this is useless since there’s auto-reset on Fio right? Moreover, the pins of FTDI seem to be firmly connected on the Arduino. What I suspect is a different configuration for the serial port. Is the above (default) configuration for the virtual serial port what I need?

Friendly,

Giorgos

Have you tried disconnecting the xbee module when programming? That worked for me for some reason.