esp-rs / espflash

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

[ESP32C3] [USB_SERIAL_JTAG] [stub] Error while connecting to device #546

Closed TYPEmber closed 5 months ago

TYPEmber commented 5 months ago

Same situation #352 with ESP32C3 on M1 Mac espflash's version is 2.1.0

SergioGasquez commented 5 months ago

Have you tried with current 3.0.0-dev version from main?

cargo install espflash --git https://github.com/esp-rs/espflash
TYPEmber commented 5 months ago

No, but after clone & install esp-idf c sdk, this problem no longger occurs with same version(2.1.0) espflash.

SergioGasquez commented 5 months ago

That is very weird, connecting errors should not depend on that, it should not be related to the app

MabezDev commented 5 months ago

For completeness, does it work when passing the --no-stub option?

TYPEmber commented 5 months ago

Yes, before I worked with esp-idf, I can flash esp32c3 with --no-stub. Further more, after install esp-idf c sdk, without --no-stub still works well. Besides, in this situation, the elf file I flashed is generated directly by esp-idf c sdk.

SergioGasquez commented 5 months ago

I'll close the issue as it seems to be resolved, feel free to reopen it in the future if it reappears.