-
Notifications
You must be signed in to change notification settings - Fork 1.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
Make esptool honor ESPTOOL/ESPPORT envvars (ESPTOOL-911) #1003
Comments
Hi @KaeLL, |
I missed that. Thanks. |
For historical reasons. Esptool has always been developed as a standalone app, not dependent on IDF, so it has its own set of env vars. The env vars in IDF ( I guess esptool could honor the IDF-flavoured env vars as well in standalone mode. On the other hand, this could make things a little more confusing and we would break the rule of trying to keep esptool as independent of IDF as possible. We will consider this request! |
Fair enough. Although "dependency" here is only materialized if either needed to change the meaning or purpose of these envvars, which I find highly unlikely. And it's not like esptool or IDF set these vars anyway, we do, which means that on top of being a fallback for the absence of command line options, they're also optional, which renders the relationship as weak as it can be.
Even to the extent of redundancy? Because it seems to me the envvars are different just for the sake of being different. Anyway, thanks for the clarification, and feel free to close the issue. |
Is your feature request related to a problem?
More like a nuisance. I use a script to setup my dev environment, a part of which is exporting the envvars for IDF, like IDF_TOOLS_PATH, IDF_CCACHE_ENABLE, and ESP{PORT,BAUD} depending on the project I'm working on.
idf.py
uses ESP{PORT,BAUD}, which saves me from ever having to care about it. That's not the same for when usingesptool
directly, and it scans my serial devices looking for the first one that matches unless I specify-p
.Describe the solution you'd like
When calling
esptool
, in the absence of-p
or-b
options, by default, have it check for the existence of ESP{PORT,BAUD} envvars and attempt to use them before falling back to probing the ports.Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: