-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Spurious "Please select a Port before Upload" error with Upload Using Programmer #8052
Comments
It looks like the bug starts from 4ccf9bb (included in #7958) |
The workaround is to select any port from the Tools > Port menu. It doesn't matter what port that is. That only needs to be done once. Of course that requires that either the computer has a native serial port or that the user can connect some device to the computer that creates a port. The bug does occur on Windows. Steps to reproduce it:
|
Opps, sorry for this. Looking at it now. I don't personally own a Trinket or USBtinyISP programmer. I can get them if needed, but that will take several days. Before we fully revert this, please consider the Arduino forum would repeatedly get the same new user question, where avrdude would try to access COM1. We really should find a way to fix this, but avoid the extremely common case where first time users get stuck only because the default was COM1 and they use Windows and their PC really does have a COM1 port (usually on a motherboard header without any cable connected to the outside world). |
@fpgaminer - I'm trying to follow your steps to reproduce the problem. But I'm not able to do step 2: Select Tools->Board->Adafruit Trinket (ATtiny85 @ 8MHz) It does not appear in Tools > Boards. I can not find any installation for it in Tools > Boards > Boards Manager. Perhaps at some point you added another URL to the "Additional Boards Manager URLs" in File > Preferences? Any chance you could look at that list and give me the URL needed to be able to install support for Trinket? |
@PaulStoffregen here it is: You don't need the hardware to reproduce the bug. |
Confirmed, I can reproduce the problem here on a Linux system. Still looking for a clean way to fix this and prevent the extremely common case of avrdude cryptic (and very slow) messages when COM1 exists but isn't connected to anything. |
Thank you for taking a look at this bug! I'm not familiar enough with the codebase to contribute meaningfully beyond the bug report, but I'm curious; is |
Saw that too. But some done define it at all, so I want to dig into this a little more. Sadly, I have to do customer service stuff for the rest of today (PJRC is a tiny company, only 4 people...) Will look at this again tomorrow morning. |
Confirmed reproduced this on windows 10 / Arduino 1.8.7 with USBasp |
@PaulStoffregen hiya will you be able to take a look at this bug? some customers are asking me about it. perhaps for now i can tell them to just use arduino 1.8.6 |
FYI this also would affect Arduino Gemma because it uses the same technique |
Sorry about the delay... I haven't forgotten about this issue, but at the moment I'm bringing up new hardware that's consuming all my dev cycles. Hope to work on this in a week or so. Please feel free to ping me if the silence goes on too long, or if there are any signs Arduino might be preparing for 1.8.8 (I'm as much in the dark as anyone regarding when they intend to publish non-beta releases). I took the liberty of adding this to the 1.8.8 milestone list. In the meantime, the 2 workarounds are to select any port from the Ports menu, or on a PC without any ports to select, use 1.8.6 or 1.8.5. |
Just came across this problem myself. Had to roll back to 1.8.6 in order to get the USBtinyISP to work, and I'm on Windows. So it doesn't seem to be a Mac only problem. |
Me too with a Trinket on Linux. |
I'm looking at this one. |
I've published a possible solution in #8194, please test and report back if it works. |
Fixed by #8194 |
yayyy! |
I had the same problem with my Arduino installation until I tried this solution which worked perfectly for me. See: per1234 commented on Oct 4, 2018 , up here in this blog. |
Is it normal to have this bug on version 1.8.11 (hourly build 2019/10/29/ 10:33) on windows? Edit: |
Tested on nightly: 28 September 2018 3:2:58 GMT
OS: macOS 10.14
The Bug
Attempting to upload a sketch using USBtinyISP as the selected programmer will always fail on macOS with the error "Please select a Port before Upload". This is a bug because, as far as I understand, USBtinyISP is a USB device, not serial, so it is impossible to select a Port for it (this is at least true of the Adafruit Trinket).
This is a regression bug; uploading works fine on 1.6.13.
According to another party this bug is not present on Windows.
Steps to reproduce:
Error Message:
Expected Behavior:
Arduino IDE should not require a Port to be selected when the programmer is USBtinyISP.
Opinion:
Looking through the code, it seems this was a "feature" added some point after v1.6. Before, the code didn't care if there was a serial port or not and would just blunder forward through
newUploader
anyway (withboardPort
left asnull
). The correct fix, I guess, is forgetUploaderByPreferences
to be aware of which Programmer is selected and whether it needs a serial port or not. Alternatively this feature could simply be rolled back (I've found no way to work around it; so it breaks Arduino 1.8 on macOS).The text was updated successfully, but these errors were encountered: