Replies: 1 comment 2 replies
-
USB is run by code on the Pico core, so what is happening is your code is most likely crashing. If the Pico crashes, it can't respond to the host PC's USB packets. You can use a PicoDebug (aka Picoprobe) to hook up GDB to find exactly where it's crashed, or winnow it down to an MCVE manually. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working to move a multicore project that was originally compiled using the sdk over to the Arduino IDE using the Arduino-Pico core. When I drop the original uf2 onto the Pico, a diagnostic printf statement will produce output on the serial monitor via stdio. But while my Arduino version compiles, downloads, and runs - after the flash is completed the serial port used for downloading has disappeared. Unplugging-replugging doens't bring it back nor does the board show up in Device Manager. Dropping the original uf2 restores normal operation. The host is a PC running Win 11.
I've tried compiling with and without Serial.begin enabled, and have commented out all the printf statements but the serial port still vanishes no matter what.
I thought the problem was related to conflict over USB serial but that seems to not be the case. I did have to comment out this line to get the sdk-written code to compile: // stdio_init_all(); I haven't had this happen with other sdk-developed code that I've moved to Arduino core, and the serial port also works as it should using Arduino serialprint statements. Thanks for any suggestions!
Beta Was this translation helpful? Give feedback.
All reactions