Go Down

Topic: Easy to "brick" Arduino Uno on Linux (Read 9 times) previous topic - next topic

Udo Klein

Plan B: kick the bootloader down the drain. Use an ISP. The bug searching for the bootloader costs to much time. In addition the ISP will allow to keep the serial monitor connected while uploading.

I did not use the bootloader for almost a year by now. I definitely do not miss it. Gives me a little bit more free memory and higher upload speed as well.

Check out my experiments http://blog.blinkenlight.net


Oct 12, 2010, 11:55 pm Last Edit: Oct 13, 2010, 12:21 am by rgm Reason: 1
Yes, a fine option for programming the Uno, but as I've previously outlined in this thread, the problem does not appear to be with the bootloader (see reply #3).  Additionally, not everyone has an ISP, so that is a bad option for democratizing the tool.

It appears that we need someone with Linux CDC / ACM kernel module experience, someone with LUFA / USB / 8u2 programming experience, or someone with an oscilloscope or logic analyzer to look into this and check out what's going on when the Arduino Uno is sending serial data that causes the /dev/ttyACM0 port to become inaccessible.  Bad symptoms happen completely independently of the Arduino IDE -- an Arduino Uno sending serial data hooked up to an Ubuntu Linux 10.04 LTS or 10.10 Meerkat (kernel version 2.6.35) computer is a PITA to use even without the IDE at all -- simply attempting to open the port with a program like "minicom" fails most of the time.

Udo Klein

I am no expert for Linux / Kernel issues. However I had significant issues with Ubuntu and the AVRISPmkII. The issue was caused by how Ubuntu handled USB. The issue disapeared after upgrade to 10.04. I did not upgrade to 10.10. So if you suspect the Kernel, then you have to tell which Kernel you are running.

Check out my experiments http://blog.blinkenlight.net


I've got Ubuntu 10.04 and got the same issue. I plug out the board, plug it in while holding the reset button and restarting the IDE. Then I get the message:
RXTX Warning:  Removing stale lock file. /var/lock/LCK..ttyACM0

And everything works fine until I open the Serial Monitor again. Sometimes I get this message:
RXTX fhs_lock() Error: creating lock file: /var/lock/LCK..ttyACM0: File exists

maybe this helps somebody to solve the problem...


Hi all,
I have the same problem with my Arduino Uno / Ubuntu 10.04 LTS/64 bit (I can break the look with Win7, however).

Would it be a solution to add a switch to the setup and within the serial look check whether the switch is pressed. If the switch is pressed the serial loop is exited. This would be a software/cheap hardware solution to stop continuous data stream to the serial port.  Then it should be possible to send another sketch to the Arduino.



PS: I am not a programmer, but an endless loop without any control does not look like good programming practice to me.

Go Up