No USB connection after a long runtime

Each Nano Every is no longer recognized by the PC after more than 2 weeks of running time. Updated the bootloader according to

which extended the runtime. But the problem still exists. Is there a solution to this?

Start by powering everything down and wait a few moments. Start it back up and I expect it will probably work.

Unfortunately no solution. USB can no longer be addressed after power-up and running time. Also, pressing reset doesn't bring USB back to work.

Are you sing the same cable to connect to the PC as in the past? Micro-USB cables come in two flavours, charge-only and data/sync cables. You need the latter.

If that is not the problem, it's time to provide a full description of you project including all the components (links to the products, preferably links to datasheets) , schematic / wiring diagrams (including every power and GND) and code (don't forget to use code tags as described in How to get the best out of this forum)

The problem is not with the code, and also not with the fully occupied, different USB cables. I run 6 Nano Every, with different programs. Everyone has the same problem. With the original bootloader, the USB connection is dead much sooner than with the new one.
It is annoying that the Every has to be completely de-energized in order to get the USB working again.
I don't have this problem with the Nano.
Each Every is supplied with uninterrupted 5 volts at pin 5V.

Here is an example code in which the Every is no longer accessible via USB after 2 weeks of running time:

unsigned int i = 0;

void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);
}

void loop() {
  // put your main code here, to run repeatedly:
  Serial.print("Hello ");
  Serial.println (i);

  delay (60000);
}

To understand it, let me try to summarise.

You have a Nano Every loaded with the program above. It is powered on the 5V pin and it is connected to the PC.

When opening Serial Monitor you see your message every minute.

You don't change anything, PC stays on, Serial Monitor is not closed and opened again and after two weeks you no longer see anything in Serial Monitor? May we assume that the TX LED is still flashing when this happens?

You disconnect USB, reconnect. Serial monitor is still open and it starts working again for two weeks.

If you're indeed using Serial Monitor and above is the case, which version of the IDE are you using? Which operating system? I can see that you suspect the Nano Every but there might be other things.

If you're using IDE 2.x and Serial Monitor, is the baud rate selector still available in the Serial Monitor?

If you're using Serial Monitor, have you tried with an 3rd party terminal program?

Note:
I do not have a Nano Every to try things out.

I can believe what you are saying is true.

There is a big difference between the Nano and Nano Every. The Nano uses the tried and true FT232R IC for USB communications, the Every uses a SAMD11.
Just speculation but I think that not using a crystal derived clock for the USB was a design mistake and could account for the loss of USB after some time of operation.

Nano Every is loaded with above program, powered with 5V continous, but not allways connected to PC.
I see every minute on serial the output.
Within 2 weeks I can connect to PC via USB. But after that, Windows 10 (tested with my 2 PC's) no longer recognizes serial port. The IDE also no longer recognizes Every.
I have to completely power off the Every to get access again via IDE and serial output. This is very annoying, because the rest button has no effect either.
Yes, the LED will flashing by sending when USB access is no longer possible.

The reset buton does not reset the SAMD11, so it remains it whatever non-functioning state it's in
Another bad design decision?

The reset for the SAMD11 is available on the 6-pin header, though. Looks like it could be reset with a second button (maybe hold the Every in reset while doing so)? (Going back to stealth mode now).

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