Can't upload

I have a new Arduino Uno and Ubuntu 11.04 Natty Narwhal
I uploaded the blink program now its locked out, I cant upload anything. I've searched the net found a whole lot of Mumbo Jumbo.
I even found a patch that is way too confusing, and I'm not sure its correct, others say to update the arduino even that's not easy.
what to do, it worked once?.
i get this

[sudo] password for peter: 
RXTX Warning:  Removing stale lock file. /var/lock/LCK..ttyACM0
Binary sketch size: 4704 bytes (of a 32256 byte maximum)
processing.app.SerialException: Error opening serial port '/dev/ttyACM0'.
	at processing.app.Serial.<init>(Serial.java:146)
	at processing.app.Serial.<init>(Serial.java:76)
	at processing.app.debug.Uploader.flushSerialBuffer(Uploader.java:75)
	at processing.app.debug.AvrdudeUploader.uploadViaBootloader(AvrdudeUploader.java:93)
	at processing.app.debug.AvrdudeUploader.uploadUsingPreferences(AvrdudeUploader.java:56)
	at processing.app.Sketch.upload(Sketch.java:1603)
	at processing.app.Sketch.exportApplet(Sketch.java:1568)
	at processing.app.Sketch.exportApplet(Sketch.java:1524)
	at processing.app.Editor$DefaultExportHandler.run(Editor.java:2293)
	at java.lang.Thread.run(Thread.java:679)
Caused by: gnu.io.UnsupportedCommOperationException: Invalid Parameter
	at gnu.io.RXTXPort.setSerialPortParams(RXTXPort.java:211)
	at processing.app.Serial.<init>(Serial.java:136)
	... 9 more
processing.app.debug.RunnerException: Error opening serial port '/dev/ttyACM0'.
	at processing.app.debug.Uploader.flushSerialBuffer(Uploader.java:99)
	at processing.app.debug.AvrdudeUploader.uploadViaBootloader(AvrdudeUploader.java:93)
	at processing.app.debug.AvrdudeUploader.uploadUsingPreferences(AvrdudeUploader.java:56)
	at processing.app.Sketch.upload(Sketch.java:1603)
	at processing.app.Sketch.exportApplet(Sketch.java:1568)
	at processing.app.Sketch.exportApplet(Sketch.java:1524)
	at processing.app.Editor$DefaultExportHandler.run(Editor.java:2293)
	at java.lang.Thread.run(Thread.java:679)

The only idea I can offer is try it on a Windows compiler. Unless you are planning on doing a bunch of mods to your Linux compiler, it will only disappoint you in the future. This is only the first of several crashes. Like this will cause a crash:
Serial.begin(9600);

Well I'm at my end with this Arduino Uno
Tried 3 computers running various linux, also a windows XP none work.(wasted hours just trying to get the IDE working on them)
XP doesn’t think anything is plugged in, so its impossible to update the drivers, it will give me a bunch of error messages when I try to upload.
Its like this board is in the Blink mode and could care less whats going on.
Wost of all, I wrote a long and complicated program that's going to waste.

On the Windows attempt, did you check "Control Panel - System - Device Manager" to insure the device is showing as a COM port? Mine showed as an unknown device until I installed the driver. Then it became COM5.

EDIT: The driver location should be in the Arduino "driver" directory on the download.

Device Manager did not show the Arduino in the com port, if it did I could update the drivers. It should be com port 1 as it does communicate to give me the error messages, also find new hardware won't locate it either, How do you update the drivers if its not there?.

Mine did NOT show in the COM port section until I installed the driver. Does the device show in the "?" section of the device manager? If so, right click, select properties, and install driver. I used "select location" and selected the "driver" directory in the Arduino downloaded files.

Well it showed 2 things one was to do with my printer, the other mouse, if I remember correctly, no arduino, no ? mark nothing.
Although I;m going to boot my XP now and make sure of that and get back to you.

Does Windows play the "Da Dink" and "Da Thunk" (don't know how else to describe those sound ) when you plug in and unplug the Arduino device?

EDIT: It took me a couple days to work stuff out because I started on Linux first. Took a day to figure out it was the Linux avr-gcc compiler causing the problems, not my code.

Then I went to WinXP, and couldn't find the device in the COM port list. That is when I found the device in the "?" list in device manager.

Then I couldn't find the directory to use to install the driver. I tried the individual subdirectories, but it was the "driver" (or "drivers") directory. Then it came alive.

It was worth it. This device is performing outstanding, better that I expected for its processor speed. Serial, ethernet, everything. :slight_smile:

Thanks so much
I did not see anything in device manager tried different ports same thing.
Booted with the arduino plugged in and finally got my ? mark, couldn't find the ini driver file in the update but I gave it the driver folder and XP
found it anyway. Works now if others have this problem simply dump Linux as it won't work. I wonder how many gave up with arduino like I was going to do
and write blogs about Crapduino?.

I mentioned this exact sentiment in another post. I wonder how many Linux users walk away disappointed because of a bad compiler. And then, like you said, they will bad-mouth Arduino because of that experience.

Glad to hear it is working for you.

EDIT: And if Arduino wants to make big points with me, they would respond with the correct versions and download sites for my Linux version to upgrade the repository. But on the big versions, it would certainly be a good gesture to notify them to update their repositories. Like
Ubuntu
Red Hat
PCLinuxOS
and any others you can think of...

So I didn't wait for Atmel or Arduino. I want my Linux compiler!!
I downloaded the latest version of the compiler from Atmel. Unzipped it and moved the contents to my "/usr/" folder. There was already the folders there, so that part was easy. Here is the rest on this thread.
http://arduino.cc/forum/index.php/topic,67519.0.html

My Serial works. The ethernet appears to work.

But it does require modifying two header files. Add one line to one file, and remark out one line from another.

What I would like of you, or someone else reading this, to try this on the Uno board. Does this fix work with it? If it does, I will submit a change to Atmel, and get the code corrected.

Hai,
I am experiencing the same problem with the arduino (atmega-8pu) I made myself while uploading the boot-loader.I am doing it as a college project and I am unable to upload the boot loader it says,

avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

I don't know what to do
the com port is 1
os: windows 7 32bit

I think this is the correct order:
Insert the device into the USB port.
Boot the computer.
Go to "Control Panel - System - Device Manager".
If you have not installed a driver yet, the Arduino device will show under the "?" rather than ports.
Right click on the device, select "properties - install driver".
The driver is located in the "/drivers" folder on the Arduino-0022 download.
Then check the device manager again. The Arduino device will now be under ports as COM5 (or some other number).

EDIT: My bad! I see you have the com port rather than a USB port. Insure your baud rate settings for that port are correct.
9600 8-N-1
And the cable will probably need to be a DB9 crossover type. DB9F both ends (null modem cable). The connector on that board looks like the one on the back of your computer? Both should be DB9M.

EDIT2: I see you have no TTL-to-RS232 signal level converter. The logic levels will be all messed up. The computer will send at least +6v to -6v signal levels, and expecting the same in return. I suggest looking into a MAX232 converter. I am hoping for your sake that you have not already fried the input connected to the RECV pin.

i got this error to... (duemilanova 328)

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

last time i cant upload my skecth to when i use arduino mini pro using FTDI cable (but i forget the error code).
but when i change the FTDI cable it's work again.

is my FTDI chip on duemilanova broken???