Skip to content

Uploading to raspberry pi pico with no port selected #794

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dommilosz opened this issue Feb 1, 2022 · 1 comment
Closed

Uploading to raspberry pi pico with no port selected #794

dommilosz opened this issue Feb 1, 2022 · 1 comment
Assignees
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@dommilosz
Copy link

dommilosz commented Feb 1, 2022

Describe the bug
Upload button doesn't respond when raspberry pi pico without serial port is selected. In old version of the IDE the compilation works even if port is not selected. Old IDE simply uploads elf file to "USB drive" of the pico. Helpful when pico gets stuck and serial port doesn't work. Only possible option is to click bootsel button, after resetting into bootsel mode there is no serial port visible either only the usb drive so IDE 2.0 cannot upload. I have to upload program via old IDE in order to unstuck the pico.

The pico core resets the pico and then tries to upload to usb drive. When it cannot reset the drive (because of serial port not connected) it tries to upload to usb drive and may succed if the pico was in bootsel mode

The most interesting thing is that if I connect the serial port before it kinda remembers that and even if I restart the pico to bootsel mode (removing the serial connection) it stil lets me upload the sketch but fails after compiling because of need of serial connection. At that point it should be able to continue uploading and would most likely succed. When I reselect the pico device it starts preventing me clicking upload button again.

To Reproduce
Steps to reproduce the behavior:

  1. Select raspberry pi pico device
  2. Click on the upload button

Expected behavior
It uploads to visible usb drive with no port selected.

Desktop (please complete the following information):

  • OS: Windows 10 Home
  • Version: nightly 20220202
@dommilosz dommilosz added the type: imperfection Perceived defect in any part of project label Feb 1, 2022
@per1234
Copy link
Contributor

per1234 commented Feb 2, 2022

Thanks for taking the time to report this bug @dommilosz.

I see we have a previous report about this at #770.
(the reporter was using a DigiSpark, but this bug affects any upload where it is not possible to select a port in the IDE)

It is best to have only a single issue per subject so we can consolidate all relevant discussion to one place, so I'll go ahead and close this in favor of the other.

If you end up with additional information to share, feel free to comment in the other thread.


I have described a workaround here: #770 (comment)

@per1234 per1234 closed this as completed Feb 2, 2022
@per1234 per1234 added conclusion: duplicate Has already been submitted topic: code Related to content of the project itself labels Feb 2, 2022
@per1234 per1234 self-assigned this Feb 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants