Uploading simple sketches seems to work when I run the Arduino program as root (sudo). I would like to run it as a regular user. Has anyone faced the same problem before and fixed it?
Here is what I obtained from lsusb:
$ lsusb
Bus 002 Device 022: ID 2341:0043 Arduino SA Uno R3 (CDC ACM)
And the Arduino program identifies it as /dev/ttyACM0. Here are its permissions:
$ ls -l /dev/ttyACM0
crw-rw---T 1 root dialout 166, 0 Mar 14 22:03 /dev/ttyACM0
Here is the output from id
groups=1000(abhiram),20(dialout),24(cdrom),25(floppy),29(audio),
30(dip),44(video),46(plugdev),105(scanner),110(bluetooth),112(netdev)
When I upload an sketch from the examples, as a regular user, I encounter this error:
avrdude:stk500_recv(): programmer not responding
Any suggestions are welcome.
Preferencesmenu. – jippie Mar 15 '14 at 06:12dmesgfor the device file that is registered. – jippie Mar 15 '14 at 06:15/dev/ttyACM0: USB ACM device. So, it doesn't seem like problem to me.On the other hand, the logs from compiling and uploading( had to enable them in Preferences), seem promising. I just can't seem to copy them from the arduino program :(. (may be they are writing to a file somewhere?)
– feverDream Mar 15 '14 at 06:37avrdude -p atmega328 -carduino -P /dev/ttyACM0 -b 57600 -D -Uflash:r:/tmp/project.hex:i? Double check the device and baudrate. – jippie Mar 15 '14 at 07:01/usr/share/arduino/hardware/tools/avrdude -C/usr/share/arduino/hardware/tools/avrdude.conf -v -v -v -v -patmega328p -carduino -P/dev/ttyACM0 -b115200 -D -Uflash:w:/tmp/build6432672958845434451.tmp/Blink.cpp.hex:iAnd it works when I run it as a regular user :). Not sure why it borks with the arduino tool though. – feverDream Mar 15 '14 at 07:16