Skip to content

Fix: Avoid deprecation warnings esptool/pythonx #59

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

petermm
Copy link
Contributor

@petermm petermm commented Aug 19, 2025

Since pythonx/esptool is version locked 5.0.2 we are certain we are esptool version 5+, and can use the renamed options(sic!)

Avoids confusing warnings:

Flashing using Pythonx installed esptool..
Warning: Deprecated: Option '--flash_mode' is deprecated. Use '--flash-mode' instead.
Warning: Deprecated: Option '--flash_freq' is deprecated. Use '--flash-freq' instead.
Warning: Deprecated: Option '--flash_size' is deprecated. Use '--flash-size' instead.
Warning: Deprecated: Choice 'default_reset' for option '--before' is deprecated. Use 'default-reset' inste
ad.
Warning: Deprecated: Choice 'hard_reset' for option '--after' is deprecated. Use 'hard-reset' instead.
Warning: Deprecated: Command 'write_flash' is deprecated. Use 'write-flash' instead.
esptool v5.0.2
Connected to ESP32-S2 on /dev/ttyACM0:
Chip type: ESP32-S2FNR2 (revision v1.0)
...

Since pythonx/esptool is version locked 5.0.2 we are certain we are version 5+, and can use the renamed options(sic!).

Signed-off-by: Peter M <[email protected]>
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.

1 participant