adafruit / Adafruit_WICED_Arduino

Adafruit WICED Feather Arduino BSP
https://www.adafruit.com/products/3056
27 stars 19 forks source link

Serial Port Error with Serial Monitor Open #84

Closed tpitman closed 5 years ago

tpitman commented 5 years ago

On most Arduino feather devices (I have the nRF52 and esp32), when you hit the upload button you can have the serial monitor open and it will clear, the device will flash and then start running and you can see the serial output.

The the WICED I just bought if I have the serial monitor open when I hit the upload button I get the following error after the download:

Flash command /usr/local/bin/dfu-util -d 0x239A:0x0008 -a 0 -s 0x080C0000:leave -D "/var/folders/37/dnql2my16293zb6rbz5z_yz40000gn/T/arduino_build_882226/CartesianFast.ino.bin" processing.app.SerialException: Error opening serial port '/dev/cu.usbmodem00000000001B'. at processing.app.Serial.<init>(Serial.java:147) at processing.app.Serial.<init>(Serial.java:82) at processing.app.SerialMonitor$4.<init>(SerialMonitor.java:101) at processing.app.SerialMonitor.open(SerialMonitor.java:101) at processing.app.AbstractMonitor.resume(AbstractMonitor.java:104) at processing.app.Editor.resumeOrCloseSerialMonitor(Editor.java:2218) at processing.app.Editor.access$2200(Editor.java:79) at processing.app.Editor$DefaultExportHandler.run(Editor.java:2196) at java.lang.Thread.run(Thread.java:748) Caused by: jssc.SerialPortException: Port name - /dev/cu.usbmodem00000000001B; Method name - openPort(); Exception type - Port not found. at jssc.SerialPort.openPort(SerialPort.java:167) at processing.app.Serial.<init>(Serial.java:136) ... 8 more Error opening serial port '/dev/cu.usbmodem00000000001B'.

If I have the serial monitor closed when I hit the upload button then I don't get that error, but then I can't see the very first bit of serial output because I can't open the serial monitor fast enough.

Also, it seems once I get this error the serial monitor doesn't give the output even after opening it until I reboot.

I am on a MacBook Pro 2018 with Mojave OS.

ladyada commented 5 years ago

thats not unusual, the nrf52/esp32 have a separate chip so you don't lose USB when uploading. WICED has native USB, the USB will disconnect during upload/reset!