0

Can't find port, can't upload
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Can't find port, can't upload

by jwellnut on Fri Jan 18, 2019 6:06 pm

I have an almost new ItsyBitys 32u4 16MHz x 5v that load sketches with great difficulty, if at all, from both a PC or Mac, as the (USB) port apparently fails to stay open. I can double click the reset button on the board and get a flashing red LED, then load a sketch, but the IDE hangs on "Uploading." If I then double click on the reset button it will proceed, occasionally.

If I don't press the rest button twice, the upload will fail with a" Couldn't find the board..." This happens on both a Mac and PC. There is 4.90V on the board from the USB connector. The same sketch/setup (with the correctly selected board)h works perfectly when using a Feather M0 basic.

Is there anything I can do to make the board functional, or is it buggered? I cannot "Burn Bootloader". It has been intermittent since its first use, but as of this afternoon, it has become unusable.

The end of the error message is...


Writing | ################################################## | 100% 0.35s

avrdude: 4686 bytes of flash written
avrdude: verifying flash memory against /var/folders/7c/w7562pk115nc7h2wshc050v00000gn/T/arduino_build_619250/I2C_receive.ino.hex:
avrdude: load data flash data from input file /var/folders/7c/w7562pk115nc7h2wshc050v00000gn/T/arduino_build_619250/I2C_receive.ino.hex:
avrdude: input file /var/folders/7c/w7562pk115nc7h2wshc050v00000gn/T/arduino_build_619250/I2C_receive.ino.hex contains 4686 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.04s

avrdude: verifying ...
avrdude: 4686 bytes of flash verified

avrdude done. Thank you

Couldn't find a Board on the selected port. Check that you have the correct port
selected. If it is correct, try pressing the board's reset
button after initiating the upload.

jwellnut
 
Posts: 7
Joined: Wed Jan 18, 2017 9:43 am

Re: Can't find port, can't upload

by adafruit_support_carter on Fri Jan 18, 2019 9:36 pm

What was the last sketch you uploaded and what is the one your trying to upload?

adafruit_support_carter
 
Posts: 10411
Joined: Tue Nov 29, 2016 2:45 pm

Re: Can't find port, can't upload

by jwellnut on Fri Jan 18, 2019 10:35 pm

I uploaded a sketch that was a slightly modified version of the Wire I2C Write/read, (below) from here:

https://www.arduino.cc/en/Tutorial/MasterReader

This was both the last one I uploaded, and the one I was trying to upload. I later manage to eventually upload Blink, by skillfully pressing the reset button twice at the beginning of the upload, then twice again at the end of the upload. But after Blink, I still could not upload other sketches.

The Feather M0, which is the 2nd board I used for the I2C read/write, works flawlessly.

#include <Wire.h>

void setup() {
Wire.begin(); // join i2c bus (address optional for master)
Serial.begin(9600); // start serial for output
}

void loop() {
Wire.requestFrom(8, 6); // request 6 bytes from slave device #8

while (Wire.available()) { // slave may send less than requested
char c = Wire.read(); // receive a byte as character
Serial.print(c); // print the character
}

delay(500);
}

jwellnut
 
Posts: 7
Joined: Wed Jan 18, 2017 9:43 am

Re: Can't find port, can't upload

by adafruit_support_carter on Fri Jan 18, 2019 10:39 pm

Keep using the simple blink sketch to test. Once you have it uploaded successfully, try just changing the blink rate and uploading again. Does that work OK?

adafruit_support_carter
 
Posts: 10411
Joined: Tue Nov 29, 2016 2:45 pm

Re: Can't find port, can't upload

by jwellnut on Fri Jan 18, 2019 10:53 pm

yes. I can set any on and off time. But I cannot upload without a double press of the reset button.

jwellnut
 
Posts: 7
Joined: Wed Jan 18, 2017 9:43 am

Re: Can't find port, can't upload

by adafruit_support_carter on Sat Jan 19, 2019 12:04 am

Sounds like something might be off with the 32u4. Is it the only one you have?

adafruit_support_carter
 
Posts: 10411
Joined: Tue Nov 29, 2016 2:45 pm

Re: Can't find port, can't upload

by jwellnut on Sat Jan 19, 2019 12:17 am

This is the only one I have, but strangely, it has started to behave again.

Incidentally, the time stamp on these posts is +6hrs from my local time (EST). Perhaps this is accurate for you.

jwellnut
 
Posts: 7
Joined: Wed Jan 18, 2017 9:43 am

Re: Can't find port, can't upload

by adafruit_support_carter on Sat Jan 19, 2019 1:54 am

I think the forum uses GMT for the time stamps.

This is one of those issues that's tough to nail down, since it's intermittent. Try exercising it with just the blink sketch and see if you can find any correlation as to when and why it misbehaves.

adafruit_support_carter
 
Posts: 10411
Joined: Tue Nov 29, 2016 2:45 pm

Re: Can't find port, can't upload

by jwellnut on Sat Jan 19, 2019 9:27 am

I'll keep hunting, thanks. BTW, the loader reports an error if I have a Serial Monitor window open during upload, but launches if the monitor is first closed. Is this normal for this config?

I think GMT is +5, and the board is +6, which puts it in continental Europe.

jwellnut
 
Posts: 7
Joined: Wed Jan 18, 2017 9:43 am

Please be positive and constructive with your questions and comments.