New user: Uno R3 will not fully compile with 1.6.5

Have tried a stepper motor project & then simple example sketches but compiling stops @ around 80% for them all. Have tried different usb cable & Win XP (SP3) computers. The amber led above TX & RX is on as is the green 'ON' led.

The com port & Uno board designations have been confirmed as correct in the tools menu.

The Arduino troubleshooting guide has not been of help.

Help please.

Thanks

That's usually a simple coding error, perhaps a missing " in a Serial.print statement.
Hard to say more without seeing your code.

Its difficult to accept that the reason all sketches are failing to compile, is due to malformed code, particularly as the latest simple example sketch tried is from the Arduino learning centre. I have not personally constructed any sketches to this point.

/*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.

This example code is in the public domain.
*/

// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led = 13;

// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output.
pinMode(led, OUTPUT);
}

// the loop routine runs over and over again forever:
void loop() {
digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}

I sense that there must be other possible reasons for failure across the board.

More help would be helpful.

Thanks

Hi dalpets

In the IDE, select File - Preferences.

There is an option for verbose messages during compile and upload. Tick both those boxes.

Then try compiling the Blink example again. You should get (lots of) messages in the window at the bottom of the IDE. Please copy and paste those into a post. Put them in code tags so they are easier to read - there is a button marked </> on the toolbar when you post a reply.

Regards

Ray

Attach the messages to the post as a text file, that may be easier. Under the reply box, there is a button for "Attachments and other options".

Thanks for the file.

These messages (on page 9) show that the program compiled and linked OK.

Sketch uses 1,068 bytes (3%) of program storage space. Maximum is 32,256 bytes. 
Global variables use 11 bytes (0%) of dynamic memory, leaving 2,037 bytes for local variables. Maximum is 2,048 bytes.

These messages show that the problem is in uploading to the Uno.

         Using Port                    : COM3 
         Using Programmer              : arduino 
         Overriding Baud Rate          : 115200 
avrdude: stk500_recv(): programmer is not responding 
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x60

Use Windows device manager to check that the Uno appears as a COM port. Make sure that the COM port selected in the Arduino IDE (COM3 from above) matches the Uno's port.

What programmer do you have selected in the IDE?

Sorry, I momentarily had the usb cable disconnected. In the attachment code I have highlighted recognition of the com port in red. The code still fails to compile. "Arduino Uno com 3" is recognized in Windows device manager.

Thanks for your help.

Arduino blink1.doc (51 KB)

The code IS compiling OK. The problem is that it is not being uploaded to the Uno after being compiled.

The text you highlighted is the settings that the IDE is using to try to upload.

If you look in Windows device manager, I assume you can see the Arduino on COM3?

What programmer do you have selected in the IDE?

"Arduino Uno com 3" is recognized in Windows device manager and both Uno & com3 are selected in the IDE.

Thanks