Tuesday, January 21, 2014

Arduino IDE and Linux

After connecting Arduino UNO to Linux powered PC I've encountered two simple problems but which required from me to search for few minutes, less linuxy users may not found a solution, so here it goes.

Not existing device

Board at COM1 is not available
and during uploading
Arduino: 1.5.5 (Linux), Board: "Arduino Uno"

/home/pawel/software/arduino/arduino-1.5.5/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../avr/lib/avr5/crtm328p.o: In function `__bad_interrupt':
../../../../crt1/gcrt1.S:193: undefined reference to `main'
One may need to create a symlink:
sudo ln -s /dev/ttyACM0 /dev/ttyCOM1
Or one should choose a correct port in Arduino IDE Tools->Port menu.


avrdude: ser_open(): can't open device "/dev/ttyACM0": Permission deniedioctl("TIOCMGET"): Inappropriate ioctl for device
where /dev/ttyACM0 is my Arduino serial connection.

  1. check user/group of device
    ls -l /dev/ttyACM0
    crw-rw---- 1 root dialout 166, 0 Jan 21 21:18 /dev/ttyACM0
  2. add user 'pawel' to group 'dialout'
    sudo usermod -a -G dialout pawel