- When I first plug the board into the USB port, it does not show up -
ls /dev/tty.usb*
does not get any new entries - When I double press the button on the board, it does show up in
ls /dev/tty.usb*
and I can connect to it in the Arduino UI, but only for a few seconds. The entry I see is/dev/tty.usbmodem5101
- If I connect the board via USB, press the button twice and very quickly click the “Upload” button in the Arduino UI to try to flash the build before the board goes away
This is what I see in the Arduino console UI:
Waiting for upload port...
No upload port found, using /dev/cu.usbmodem5101 as fallback
"/Users/zach/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/bin/avrdude" "-C/Users/zach/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf" -v -patmega32u4 -cavr109 -P/dev/cu.usbmodem5101 -b57600 -D "-Uflash:w:/Users/zach/Library/Caches/arduino/sketches/AF10DD65273260E7F1A2375309BCDCA1/temperature-sensor.ino.hex:i"
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/zach/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf"
User configuration file is "/Users/zach/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
Using Port : /dev/cu.usbmodem5101
Using Programmer : avr109
Overriding Baud Rate : 57600
avrdude: ser_open(): can't open device "/dev/cu.usbmodem5101": No such file or directory
avrdude done. Thank you.
Failed uploading: uploading error: exit status 1