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

Stub already running detection #136

Merged
merged 1 commit into from
May 31, 2024

Conversation

pkendall64
Copy link
Contributor

Adds the code from the python version of esptool that detects if the stub flasher is already running. If the stub is already running, the stub upload is no longer performed.

@@ -1140,6 +1146,11 @@ export class ESPLoader {
* @returns {ROM} The Chip ROM
*/
async runStub(): Promise<ROM> {
if (this.syncStubDetected) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we verify that the version of the stub that's running is the same as the version that we would upload ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not according to what the stub_flasher code does here
https://github.com/espressif/esptool/blob/master/flasher_stub/stub_flasher.c#L240

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair, this follows the esptool.py approach 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any chance this can be merged? This is the last piece of work that the ExpressLRS project needs for it's web-flasher to be on the mainline of esptool-js.

@brianignacio5
Copy link
Collaborator

LGTM Thanks for the contribution

@brianignacio5 brianignacio5 merged commit 67e327a into espressif:main May 31, 2024
1 check passed
@pkendall64
Copy link
Contributor Author

LGTM Thanks for the contribution

Thanks for merging.

@pkendall64 pkendall64 deleted the detect-stub-flasher branch May 31, 2024 01:29
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

Successfully merging this pull request may close these issues.

None yet

3 participants