-
Notifications
You must be signed in to change notification settings - Fork 10
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
espflash::timeout on esp32c6 via JTAG uart #45
Comments
I'm still trying to reproduce this reliably. This issue here appears at random, and when it appears, it persists until ??. Same goes for esp-rs/espflash#556, which also appears at random and then persists until ??. Not sure what ?? actually is. Maybe:
Investigating.... |
Can you try using |
I can confirm that it flashes + boots as expected with |
Just moved the issue to esp-flasher-stub as it seems to be a stub issue, will take a look into esp-rs/espflash#556 |
I've tried reproducing this error with no success, maybe is something related with HW? Could you try using a different cable?
Have you tried with esptool? |
Same here: |
It could be a similar error condition we reach in probe-rs: probe-rs/probe-rs#1963 (comment). Essentially a USB-JTAG-SERIAL reset isn't a real reset and some parts of the chip are left running, one of these could be the memory protection peripheral. Though, at first glance I can't see any similar workarounds in esptool.py 🤔. |
Please, when trying to reproduce this issue in the future, use |
I'm facing the same issue in I also noticed another issue where, when the monitor successfully connects using something like
It seems to boot twice, but the second time it just stops. So maybe it has something to do with buggy restarts? Could that be causing the chip to fail to redetect? I don't really know much about this—just throwing out ideas. One way I figured out how to fix this, at least temporarily, is to:
This will cause everything to work fine (even the issue where it starts twice disappears and it stays connected without errors during resets) until I fully power cycle the chip. After that, it will return to the broken state where the connection times out. In this broken state, Using
|
I'm using espflash master to flash a esp-idf-* (master) project with espflash to a esp32c6.
Some more debug output of espflash
I've recompiled the stubs with dprint enabled, and I get the following output from the stub:
I've also slightly modified src/flasher/mod.rs (espflash)
It seems the handshake is written, but then the chip redetect fails.
When I flash the same binary via Uart0 instead of USB JTAG, it works...
The text was updated successfully, but these errors were encountered: