Skip to content

Can't print using: Serial.println() #617

Answered by earlephilhower
Stan-Reifel asked this question in Q&A
Discussion options

You must be logged in to vote

Because the pico serial port is actually software-driven from the pico itself
a) the upload port will disappear and a new one will appear. often at a different COM number, when an upload/reboot occurs
b) it may take several seconds before Windows recognizes the new port and sends chars to an app and so output during the first few seconds may be lost.

So, I'd add a delay(5000) after Serial.begin in your setup, and then check for a new port immediately after upload and change to it in the IDE

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Stan-Reifel
Comment options

You must be logged in to vote
1 reply
@Theoristos
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants