esp-rs / espflash

Serial flasher utility for Espressif SoCs and modules based on esptool.py
Apache License 2.0
471 stars 115 forks source link

espflash needs to be bumped to v2 #423

Closed StefanB7 closed 1 year ago

StefanB7 commented 1 year ago

Hi. Hope you are well.

I recently ran into problems when trying to flash an ESP-WROOM-32 module with espflash. It would say:

New version of espflash is available: v2.0.0-rc.3

Error: espflash::connection_failed

  × Error while connecting to device
  ╰─▶ Serial port not found
  help: Ensure that the device is connected and your host recognizes the serial adapter

This was weird, since running espflash flash seem to see the board:

New version of espflash is available: v2.0.0-rc.3

Serial port: /dev/ttyUSB0
Connecting...

Chip type:         ESP32 (revision 3)
Crystal frequency: 40MHz
Flash size:        4MB
Features:          WiFi, BT, Dual Core, 240MHz, Coding Scheme None
MAC address:       <something>
Error:   × No such file or directory (os error 2)

and espflash board-info also worked:

New version of espflash is available: v2.0.0-rc.3

Serial port: /dev/ttyUSB0
Connecting...

Chip type:         ESP32 (revision 3)
Crystal frequency: 40MHz
Flash size:        4MB
Features:          WiFi, BT, Dual Core, 240MHz, Coding Scheme None
MAC address:      <something>

After installing version 2.0.0-rc.3 with cargo install espflash --version 2.0.0-rc.3, I was able to flash as intended.

I would like to ask that version 2.0.0 be published to crates.io as soon as possible as there will be many that will run into issues like mine because they are using an older version of espflash.

When running cargo install espflash, version 1.7.0 is installed

Thanks to the esp-rs team for making rust on ESP possible!

SergioGasquez commented 1 year ago

We are currently working on this! We will release 2.0.0-rc.4 once these issues are solved. After this, we will work on doing the official 2.0 release.

StefanB7 commented 1 year ago

Thanks Sergio. I'll mark as closed.