avrdude: ser_open(): can't open device "/sys/devices/.../1-6.3": Is a directory

lukexyz

Active member
avrdude: ser_open(): can't open device "/sys/devices/.../1-6.3": Is a directory

I can't seem to upload Arduino sketches to a Teensy 4.1 from Fedora 33 Linux.

I installed Arduino and Teensyduino, and put the 49-teensy.rules file in place as required by the Teensyduino installer. I plugged in the Teensy board, and created a simple Arduino program, then hit Verify, and pressed the button on the Teensy, as shown in the Teensyduino installer. But when I hit the Upload button in the Arduino IDE, I get:

Code:
avrdude: ser_open(): can't open device "/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:06:00.1/usb1/1-6/1-6.3": Is a directory

Sure enough, this is a directory:

Code:
# ls /sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:06:00.1/usb1/1-6/1-6.3
1-6.3:1.0            bDeviceProtocol     bNumInterfaces  devpath      maxchild   rx_lanes   urbnum
authorized           bDeviceSubClass     busnum          driver       port       serial     version
avoid_reset_quirk    bmAttributes        configuration   ep_00        power      speed
bcdDevice            bMaxPacketSize0     descriptors     idProduct    quirks     subsystem
bConfigurationValue  bMaxPower           dev             idVendor     removable  tx_lanes
bDeviceClass         bNumConfigurations  devnum          ltm_capable  remove     uevent

What am I missing?
 
I figured out the issue. I had to manually select Teensy 4.1 as the board, under the Arduino IDE's Tools menu. I guess the IDE can't automatically detect the board type based on the USB device type.
 
I figured out the issue. I had to manually select Teensy 4.1 as the board, under the Arduino IDE's Tools menu. I guess the IDE can't automatically detect the board type based on the USB device type.

Thanks for posting that... I got hung up on the same point. Google and lukexyz to the rescue!
 
Back
Top