Pi Pico / MBED OS: USB device not always recognised

Hi

I have an application using the Pi Pico programmed using the Arduino IDE mbedos. The issue that I have is that the USB device is not always recognised when a watchdog reset occurs on the Pi Pico. The host is a RPi 4B.

I have read some similar posts with solutions (not using the Arduino IDE) to wait until the CDC device is recognised:

  1. Strange behavior when connecting Pico to USB - Raspberry Pi Forums
  2. [SOLVED]How to wait for USB ready? - Raspberry Pi Forums
  3. Raspberry Pi Pico not showing up as COM/ttyACM0 device · Issue #120 · raspberrypi/pico-sdk · GitHub

I don't know how to achieve the same in the Arduino IDE. Please help.

In the Arduino world this is typically done using:

while (!Serial);

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