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

Use stubs from esp-flasher-stub project #103

Open
igrr opened this issue Jun 29, 2023 · 1 comment
Open

Use stubs from esp-flasher-stub project #103

igrr opened this issue Jun 29, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@igrr
Copy link
Member

igrr commented Jun 29, 2023

esp-flasher-stub project is dual-licensed licensed under MIT and Apache 2.0. Using the stubs from that project can help remove the dependency on the GPL-licensed stubs from esptool.py.

As part of this task, make sure that the overall flashing performance doesn't regress significantly when switching to esp-flasher-stub project.

TODO:

@igrr igrr self-assigned this Jun 29, 2023
@igrr igrr added the enhancement New feature or request label Jun 29, 2023
@Jellepepe
Copy link

I will add to this that the currently used flasher stub for the ESP32-C6 does not seem to be fully functional.
I was unable to change baudrate (Timeout on read after sending the command).
Additionally I ran into issues flashing updates when loading into download mode through the RTS/DTR procedure on the internal JTAG/Serial usb peripheral. (though it worked when manually loading into download mode using gpio)
It would upload the Stub and read registers just fine, but fail to enter flashing mode (again timeout on read, no response)

After a lot of debugging I changed to using the stub from esp-flasher-stub which fixed both of these issues fully.

This should be a question of only replacing the .json files or simply linking to the other repository, I'm happy to submit a pull request for this as well if needed.

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

No branches or pull requests

2 participants