I am working with the Nano 33 IOT. I have seen this problem with two different sketches. The one I am attaching is part of a repackaging of the WifiNtpUdpClient example in the WifiNINA library. The example works fine. When it’s downloaded to the Nano33IOT, it usually downloads on one com port and produces the serial output on another.
The problem is that this behavior is not seen with my repackaged version. It downloads and then no serial port is available and the Nano has to be reset in order to download again.
Another, larger program that I won’t post has started to show the same problem. It was working fine, and I started adding “print” statements to it for debugging. And suddenly it started showing the same problem, it would download but not produce a serial port. Even after removing my debug code, it would show the same behavior, after download the serial port was not available. Code size does not seem to be an issue.
Other info, I’m running this on an HP laptop running Windows 10. Resetting the Nano always clears the problem for another download. So what can interfere with the serial port being established?
The code with a portion of the WifiNtpUdpClient code repackaged is attached.
P.S. I thought I posted this two days ago but couldn’t find it. And now that I’ve seen it on another program with no Wifi code, I think it’s more general. If I did post it, please point me to it. since I looked for it.
TestWifiMod.ino (9.78 KB)