Been developing on a metro express... and all has been happy/good...
Then today, I can no longer upload sketches to the board.
The board is still running code fine... when I reset, I can see that what was in there last is still operating.
I did the "hold reset" cycle power, upload, release, thing... no change. The old code is still there.
When I unplug and plug in the board, I can see it disappear from the com port list, then returns (properly identified) when I plug it back in. I also tried a new cable.
It compiles the sketch... then says "uploading..." Nothing happens... seems to hang. I did see it throw an error message once...
Something about an error uploading then: "Error opening serial port com 7".
The board does not appear as a drive in windows explorer (I thought that previously it did).
Eventually this appears in the black window:
Code: Select all
C:\Users\rci\AppData\Local\Arduino15\packages\adafruit\tools\arm-none-eabi-gcc\9-2019q4/bin/arm-none-eabi-ar: unable to rename 'core\core.a'; reason: File exists
exit status 1
Error compiling for board Adafruit Metro M4 AirLift Lite (SAMD51).
Sketch uses 31232 bytes (6%) of program storage space. Maximum is 507904 bytes.
processing.app.debug.RunnerException
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:152)
at cc.arduino.UploaderUtils.upload(UploaderUtils.java:77)
at processing.app.SketchController.upload(SketchController.java:732)
at processing.app.SketchController.exportApplet(SketchController.java:703)
at processing.app.Editor$UploadHandler.run(Editor.java:2061)
at java.lang.Thread.run(Thread.java:748)
Caused by: processing.app.SerialException: Error touching serial port 'COM7'.
at processing.app.Serial.touchForCDCReset(Serial.java:107)
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:136)
... 5 more
Caused by: jssc.SerialPortException: Port name - COM7; Method name - openPort(); Exception type - Port busy.
at jssc.SerialPort.openPort(SerialPort.java:164)
at processing.app.Serial.touchForCDCReset(Serial.java:101)
... 6 more
processing.app.SerialException: Error opening serial port 'COM7'.
at processing.app.Serial.<init>(Serial.java:152)
at processing.app.Serial.<init>(Serial.java:82)
at processing.app.SerialMonitor$2.<init>(SerialMonitor.java:132)
at processing.app.SerialMonitor.open(SerialMonitor.java:132)
at processing.app.AbstractMonitor.resume(AbstractMonitor.java:132)
at processing.app.Editor.resumeOrCloseSerialMonitor(Editor.java:2126)
at processing.app.Editor.access$1300(Editor.java:116)
at processing.app.Editor$UploadHandler.run(Editor.java:2095)
at java.lang.Thread.run(Thread.java:748)
Caused by: jssc.SerialPortException: Port name - COM7; Method name - openPort(); Exception type - Port busy.
at jssc.SerialPort.openPort(SerialPort.java:164)
at processing.app.Serial.<init>(Serial.java:141)
... 8 more
Error opening serial port 'COM7'.
This is a serious bummer for me!
Please help if you can.