can't open device "/dev/cu.usbmodem14301": No such file ERROR when connecting k

Hi all,

First - I am a newb so if any of this should be remedial, I apologize.

I connected a WINGONEER 5Pcs 4x4 Universial 16 Key Switch Keypad Keyboard to my Mega2560. I got a string of errors, starting with this...

avrdude: ser_open(): can't open device "/dev/cu.usbmodem14301": No such file or directory

Pins connected to 2 through 9, no issue there I suspect. This error continues after the board is powered down, the keypad disconnected. After some period of time or sequence of events the last time, the board reset and code loaded no problem. Powered down, reconnected keypad, same issue.

This had been working on a previous Mega2560, but that board got burned out.

Code doesn't seem relevant, as it does it with just:

void setup() {
// put your setup code here, to run once:

}

void loop() {
// put your main code here, to run repeatedly:

}

Mac USB System Report shows:

Communication Device:

Product ID: 0x0042
Vendor ID: 0x2341
Version: 0.01
Serial Number: 85937313237351D03270
Speed: Up to 12 Mb/s
Manufacturer: Arduino (www.arduino.cc)
Location ID: 0x14400000 / 1
Current Available (mA): 500
Current Required (mA): 100
Extra Operating Current (mA): 0

Tried burning bootloader but got this error:

Arduino: 1.8.13 (Mac OS X), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

Error while burning bootloader.

Arduino: 1.8.13 (Mac OS X), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

avrdude: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch

System wide configuration file is "/Users/XXXXX/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf"
User configuration file is "/Users/XXXXX/.avrduderc"
User configuration file does not exist or is not a regular file, skipping

Using Port : /dev/cu.usbmodem14301
Using Programmer : wiring
Overriding Baud Rate : 115200
avrdude: ser_open(): can't open device "/dev/cu.usbmodem14301": No such file or directory
ioctl("TIOCMGET"): Inappropriate ioctl for device
ioctl("TIOCMGET"): Inappropriate ioctl for device
avrdude: ser_send(): write error: Bad file descriptor
avrdude: stk500_send(): failed to send command to serial port
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: Bad file descriptor
avrdude: stk500_send(): failed to send command to serial port
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: Bad file descriptor
avrdude: stk500_send(): failed to send command to serial port
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: Bad file descriptor
avrdude: stk500_send(): failed to send command to serial port
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: Bad file descriptor
avrdude: stk500_send(): failed to send command to serial port
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: Bad file descriptor
avrdude: stk500_send(): failed to send command to serial port
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer

avrdude done. Thank you.

the selected serial port
does not exist or your board is not connected

Nevermind. Worked out there was an update to the library.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.