-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Command flash
fails with port option (IDFGH-9072)
#10475
Comments
flash
fails with port optionflash
fails with port option (IDFGH-9072)
Hi @harryzcy. Could you please try to run I'm setting |
@dobairoland maybe I didn't explain clearly. I'm getting the error when I use Unsetting |
Thanks @harryzcy. I've got it now. For our reference, here is how to reproduce this:
The issue is not present when the same value is specified with the argument and the environment variable. |
After looking into this more, I think the current behavior is correct. Changing this could lead to confusion when one forgets about that have set the environment variable in some of environment scripts. I agree that running However, this failure will at least remind one to not set ESPPORT in environment script if it is not the same one is desired to use every time. I'll improve the error message because it is not clear in this situation. |
…with the environment variable Closes #10475
…with the environment variable Closes #10475
Answers checklist.
IDF version.
v5.1-dev-2658-g0025915dc4
Operating System used.
macOS
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
None
What is the expected behavior?
It should flash successfully
What is the actual behavior?
Prints out error
Option "port" provided for "flash" is already defined to a different value. This option can appear at most once in the command line.
Steps to reproduce.
hello-world
from examplesidf.py build
idf.py flash
Build or installation Logs.
No response
More Information.
I'm using ESP32-C3-DevKitM-1 and flashing using it's native usb port starts with
/dev/cu.usbserial-*
Update: I have the
ESPPORT
env set. But I think it's still an issue that command line option should replaceESPPORT
when provided.The text was updated successfully, but these errors were encountered: