esp-rs / esp-flasher-stub

Rust implementation of flasher stub located in esptool
Apache License 2.0
18 stars 10 forks source link

Investigate esp32 and esp32s2 CPU speed issues #29

Closed MabezDev closed 10 months ago

MabezDev commented 11 months ago

We currently only use the esp32 and esp32s2 as the boot default speed, using the max should be possible but it appears to hang somewhere. We know the max speed works, because we use it in esp-wifi, so I will investigate further.

MabezDev commented 11 months ago

Might be related to https://github.com/esp-rs/esp-hal/discussions/765?

MabezDev commented 11 months ago

Doesn't look like it's related to the issue above. I did find that the flasher host (in my testing case, espflash) never receives the "OHAI" greeting. I can however see (with stub logging) that the stub indeed is running. I would guess that there is a baud rate misconfiguration when switching CPU speeds.

MabezDev commented 11 months ago

Found the issue, fix is here in the hal: https://github.com/esp-rs/esp-hal/pull/808