Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4437

Other RP2040 boards • Using board with or without USB attached - freezes when USB not attached

$
0
0
Hello all
I have an RP2040 board (Wiznet) with my custom firmware running a webserver.
I use USB to upload new firmware and also to have a debug serial port.

However, it seems that when USB cable is not attached the board becomes mostly unresponsive.
I can still ping the IP and the status LEDs are working, but when I try to open the webpage it timeouts.

Is this caused because I have prints to USB that are not being read?
Ideally, I would like to maintain the debug prints and they would just get ignored when USB is not attached.
Could a solution be to detect if USB cable is attached and disable prints if that is the case?
This would take some time to do because I am using libraries that have their own prints so would like some confirmation before proceeding.

Thank You

Statistics: Posted by Ironic — Wed Feb 21, 2024 9:33 pm — Replies 0 — Views 13



Viewing all articles
Browse latest Browse all 4437

Trending Articles