You are not logged in.

#1 2024-04-17 02:58:31

Nika01
Member
Registered: 2024-04-17
Posts: 1

Not able to Upload code to USB device (Arduino UNO)

Hi all,

This is my first time using an Arduino Uno board with Linux. When uploading the code to the Uno board I'm faced with this error:

An error occurred while uploading the sketch
avrdude: ser_open(): can't open device "/dev/ttyACM0": Input/output error

The port does exist when i check the file details

ls -l /dev/ttyACM0
crw-rw---- 1 root uucp 166, 0 Apr 17 08:03 /dev/ttyACM0

running lsusb shows that it is connected

Bus 001 Device 008: ID 2341:0043 Arduino SA Uno R3 (CDC ACM)

I have added myself to uucp group but i dont think it is a permission issue. The board works well on windows.

heres the output of dmesg also:

 
[  858.528234] usb 1-3: reset full-speed USB device number 6 using xhci_hcd
[  863.738337] usb 1-3: USB disconnect, device number 6
[  863.864387] usb 1-3: new full-speed USB device number 8 using xhci_hcd
[  864.006346] usb 1-3: New USB device found, idVendor=2341, idProduct=0043, bcdDevice= 0.01
[  864.006373] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=220
[  864.006385] usb 1-3: Product: Arduino Uno
[  864.006393] usb 1-3: Manufacturer: Arduino (www.arduino.cc)
[  864.006401] usb 1-3: SerialNumber: 11220351961012351756
[  864.012596] cdc_acm 1-3:1.0: ttyACM0: USB ACM device
[ 2122.589549] usb 1-3: USB disconnect, device number 8

Do I have to create a udev rules for the arduino board and how? Some help will be appreciated.
Thx!

Offline

Board footer

Powered by FluxBB