esp-rs / espflash

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

Implement reset strategies #487

Closed SergioGasquez closed 8 months ago

SergioGasquez commented 9 months ago

PR based on @jessebraham work in #344, I didn't rebase because there were a lot of conflicts and wanted to manually review the changes while comparing them with esptool.

There are only some small differences:

Related issues/PRs: https://github.com/esp-rs/espflash/issues/349, https://github.com/esp-rs/espflash/pull/344, https://github.com/esp-rs/espflash/issues/323, https://github.com/esp-rs/espflash/issues/394, https://github.com/esp-rs/espflash/pull/387

Maybe related: https://github.com/esp-rs/espflash/issues/442, https://github.com/esp-rs/espflash/issues/450

~Draft PR until some affected user can verify that it's working~ @georgik did some testing and confirmed that it's working!