Yes, the uploaded UF2 needs to have been configured to present a USB serial port. Not all UF2 will present a USB serial port.But could you confirm that a pico plugged on a windows (10 or 11) shows a usb to serial com port on device manager?
Or is there somewhere in the code something that needs to be set to have access to this interface?
I know how to do that when doing 'CMake' builds from the command line or with VS Code, but no idea how PlatformIO requires that to be set.
Update : "taking care to have "build_flags = -D LIB_PICO_STDIO_USB" in platformio.ini" - viewtopic.php?p=1976039#p1976039
Yes, you really should start a new "Why won't PlatformIO upload to my Pico?" topic. If nothing else that will help others in the future who find they are having that issue.This is fixed now, my problem now is that I can't upload from my IDE.But being unable to get code uploaded and running via drag and drop is a bigger issue - If that doesn't work I can't imagine PlatformIO or 'picotool' will do any better.
I should start another topic, but now that you are here... Image may be NSFW.
Clik here to view.
I recall I previously found the PlatformIO upload mechanism to be rather poorly designed, assumes a USB serial port will be present when it might not be. PlatformIO really need to make that more flexible, more robust.
You can probably get things working by manually putting the Pico into BOOTSEL mode, re-plug the Pico into USB while holding BOOTSEL button, before initiating an upload from PlatformIO.
Statistics: Posted by hippy — Thu Feb 08, 2024 12:10 pm