Skip to content

Upload process is not triggered #652

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
dronecz opened this issue Dec 1, 2021 · 5 comments · Fixed by #673
Closed

Upload process is not triggered #652

dronecz opened this issue Dec 1, 2021 · 5 comments · Fixed by #673
Assignees
Labels
criticality: highest Of highest impact topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@dronecz
Copy link

dronecz commented Dec 1, 2021

Describe the bug
I can not upload any sketch to my board. I can just compile, nothing else.

To Reproduce
see screenshot

Expected behavior
I should be able to upload my sketch

Screenshots
arduino_2_rc1_error

Desktop (please complete the following information):
OS: Windows 10 19043.1348
Version: 2.0.0-rc1
Date: 2021-11-30T13:13:52.071Z
CLI Version: 0.20.1 [abb21449]

@dronecz dronecz added the type: imperfection Perceived defect in any part of project label Dec 1, 2021
@per1234 per1234 added the topic: code Related to content of the project itself label Dec 2, 2021
@per1234 per1234 changed the title Unable to upload sketch Upload process is not triggered Dec 2, 2021
@per1234
Copy link
Contributor

per1234 commented Dec 3, 2021

I finally figured out how to reproduce this:

  1. Quit the IDE if it is running.
  2. Delete the configuration folder (simulating a fresh install):
    Windows:
    C:\Users\<user name>\AppData\Roaming\arduino-ide\
    
    Linux:
    ~/.config/arduino-ide/
    
  3. Select the board and port for your Arduino board manually.
    You can do this via Tools > Board and Tools > Port or via "Select other board and port...". Just DO NOT select the board via the main board selector dropdown menu.
  4. Attempt an upload.
    You should experience the behavior shown in the screencast above, where triggering an upload does nothing at all.

Uploads will not work until you have selected the board via the main board selector dropdown menu. After you have done that once, you can then select the board and port manually. There is apparently some configuration state essential for uploading that is only attained by selecting a board from the main board selector dropdown menu.

Desktop

  • OS: Windows 10, Ubuntu 20.04
  • Version: 2.0.0-rc1-snapshot.f0d9894
    Date: 2021-11-30T16:25:41.414Z
    CLI Version: 0.20.1 [abb21449]

@dronecz
Copy link
Author

dronecz commented Dec 3, 2021

Thank @per1234 for your testing, but this is not working for me.

I tried reproduce your guide, but it does not help, as you can see here:

arduino_2_rc1_error_not_working

Then I thoughed that this can happen because of ESP32 support files, so I renamed %userprofile%\AppData\Local\Arduino15 to %userprofile%\AppData\Local\Arduino15_ so it will not take any settings from Arduino IDE v1 and I also discovered that Arduino IDE v2 is storing settings in %userprofile%\.arduinoIDE folder so I deleted it as well, as you can see here, but I have still no luck with fixing this.

arduino_2_rc1_clean_start

Also, here is log from last (clean) session of Arduino IDE v2.
2021-12-03_log.log

I can see that your version of IDE is bit different. Do you use nightly build? Should I try that one as well?

Many thanks for your help.

@rsora rsora added the criticality: highest Of highest impact label Dec 3, 2021
@per1234
Copy link
Contributor

per1234 commented Dec 3, 2021

I tried reproduce your guide, but it does not help

I apologize if I was not clear. The instructions I provided are not the fix for the bug. They are the instruction to be used for reproducing the bug. That is essential for the developers to investigate it and for the testers to check the eventual fix.

I have provided instructions for a workaround for the bug here:
https://forum.arduino.cc/t/upload-does-nothing/930864/28

@dronecz
Copy link
Author

dronecz commented Dec 3, 2021

I have provided instructions for a workaround for the bug here:

I can confirm that this "fix" works.

arduino_2_rc1_workaround_fix

@ray-leiter
Copy link

I have the problem that I can compile but not upload. It was originally on my UNO and ptillisch showed me how to fix it and it worked. Problem is I now have the same problem with my DOIT ESP32 DEV KIT V1 board. I'm using IDE 2.0 rc1 and my board I think uses the CP2102 USB to Serial Bridge. In the IDE, the Tools->Port always show as COM5(CP210x). I can't get it to show the board name. However, every once in a while I manage somehow to get it to work, but I have not idea how I did it!
BTW, I also got it to work on my Raspberry Pi Pico.

@fstasi fstasi closed this as completed Dec 10, 2021
@per1234 per1234 linked a pull request Dec 11, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
criticality: highest Of highest impact topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants