Skip to content
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

Improve the ESPFLASH section #95

Closed
bbulkow opened this issue Jun 4, 2023 · 2 comments
Closed

Improve the ESPFLASH section #95

bbulkow opened this issue Jun 4, 2023 · 2 comments

Comments

@bbulkow
Copy link

bbulkow commented Jun 4, 2023

Key need: specify port. In most cases, one needs to specify the port, and neither this document nor the espflash documentation is clear on how to do so. It appears the first argument is the name of the port, but not clear.

The espflash documentation states there is a configuration file on windows which is not true. ChatGPT thinks there is an environment variable which is used, also doesn't seem true.

There are also three esptools (or two, one with two invokation mechanism?): the one you may have from doing development with esp-idf, the one you get with a standard cargo and is global, and the per-project espflash. Instructions you find about these three are confusing because some take port as an option (--port) and some have it as a positional option. When I read different documents its very confusing because of the three tools. Documentation on one doesn't work for the others.

It seems most people get something working then just use it. in my C++ based env I just use idf.py so I've never had to understand espflash

I would suggest: bring up the different tools, explain which ones document what.

Then, suggest the per-project one as per the current document, but show how to override the port, and/or set a port in the config file.

Thanks! When I learn the answer, can I put in a PR? Right now I don't know the answer, can't flash yet.

@SergioGasquez
Copy link
Member

Hi! The espflash section was just updated after merging: #94. Which version of espflash are you using?

Key need: specify port. In most cases, one needs to specify the port, and neither this document nor the espflash documentation is clear on how to do so. It appears the first argument is the name of the port, but not clear.

If you run the command without specifying a port, a list with the available ports will be printed, and you can select it from there.

The espflash documentation states there is a configuration file on windows which is not true. ChatGPT thinks there is an environment variable which is used, also doesn't seem true.

See the documentation in the readme: https://github.com/esp-rs/espflash/tree/main/espflash#configuration

There are also three esptools (or two, one with two invokation mechanism?): the one you may have from doing development with esp-idf, the one you get with a standard cargo and is global, and the per-project espflash. Instructions you find about these three are confusing because some take port as an option (--port) and some have it as a positional option. When I read different documents its very confusing because of the three tools. Documentation on one doesn't work for the others.

The difference between espflash and cargo-espflash can be found in the espflash chapter of the book and in the repository readme.

Thanks! When I learn the answer, can I put in a PR? Right now I don't know the answer, can't flash yet.

Yes, feel free to open a PR with what you think should be included, but we would like to avoid duplicating information between the remade of the repo and the book, that's why we point to the readme and keep the information short in the book.

@SergioGasquez
Copy link
Member

I will be closing this issue for inactivity and I think it's already properly documented, feel free to reopen it if you have any suggestion/issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants