Skip to content

espflash cant connect to esp-cam module #858

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

Closed
neo2043 opened this issue May 7, 2025 · 10 comments
Closed

espflash cant connect to esp-cam module #858

neo2043 opened this issue May 7, 2025 · 10 comments
Labels
status:needs-investigation Issue requires further investigation

Comments

@neo2043
Copy link

neo2043 commented May 7, 2025

espflash seems to not connect to esp-cam module. while flashing espflash says that it failed to connect to the module.
but just to make sure i programmed it using arduino ide. and it worked.
even the espflash board-info doesn't work.

@SergioGasquez
Copy link
Member

Hi! Can you give more details?

  • espflash version? Have you tried using espflash@main (cargo install espflash --git https://github.com/esp-rs/espflash)?
  • Devkit of the esp-cam module?
  • What OS are you using?
  • Run the flash command with RUST_LOG=debug espflash flash and share the output with us

@SergioGasquez SergioGasquez added the status:awaiting-response Awaiting a response from the author label May 7, 2025
@neo2043
Copy link
Author

neo2043 commented May 7, 2025

espflash version: espflash 3.3.0
esp-cam module: AI Thinker ESP32 ESP32-S CAM OV2640
os: Linux pop-os 6.12.10-76061203-generic
logs:

[2025-05-07T08:22:23Z INFO ] Connecting...
Error: espflash::connection_failed

  × Error while connecting to device
  ╰─▶ Failed to connect to the device
  help: Ensure that the device is connected and the reset and boot pins are not being held down

@SergioGasquez
Copy link
Member

Have you tried using espflash@main (cargo install espflash --git https://github.com/esp-rs/espflash)?

@neo2043
Copy link
Author

neo2043 commented May 7, 2025

Have you tried using espflash@main (cargo install espflash --git https://github.com/esp-rs/espflash)?

i did this but i got the same response

@SergioGasquez SergioGasquez added status:needs-investigation Issue requires further investigation and removed status:awaiting-response Awaiting a response from the author labels May 7, 2025
@SergioGasquez
Copy link
Member

Can you try using espflash flash --before no-reset?

@neo2043
Copy link
Author

neo2043 commented May 7, 2025

oh it worked now. but can you tell me why this happened?
thank you

@SergioGasquez
Copy link
Member

Your devkit seems to not use the CTS and RTS pins, see #616

@neo2043
Copy link
Author

neo2043 commented May 7, 2025

thank you. but my ttl does have a cts and a dtr pin. ill try searching how to use them.

@neo2043 neo2043 closed this as completed May 7, 2025
@github-project-automation github-project-automation bot moved this from Todo to Done in esp-rs May 7, 2025
@neo2043 neo2043 reopened this May 7, 2025
@neo2043
Copy link
Author

neo2043 commented May 7, 2025

so i tried flashing my devkit but it failed again. the command i ran was MCU=esp32 cargo espflash flash --before no-reset --target xtensa-esp32-espidf --example temp_blink --monitor, this is ran in esp-rs/esp-idf-hal repo. temp_blink is just blinky with gpio changed for my devkit.
the error i first got was

[2025-05-07T14:53:58Z INFO ] Serial port: '/dev/ttyUSB0'
[2025-05-07T14:53:58Z INFO ] Connecting...
[2025-05-07T14:53:58Z INFO ] Using flash stub
Error: espflash::timeout

  × Communication error while flashing device
  ╰─▶ Timeout while running MemBegin command

then i got this recurring error again

[2025-05-07T14:55:11Z INFO ] Serial port: '/dev/ttyUSB0'
[2025-05-07T14:55:11Z INFO ] Connecting...
Error: espflash::connection_failed

  × Error while connecting to device
  ╰─▶ Failed to connect to the device
  help: Ensure that the device is connected and the
        reset and boot pins are not being held down

@neo2043
Copy link
Author

neo2043 commented May 7, 2025

i think the foolproof way would be to use dtr and cts pins on my ftdi along with rx and tx??

@neo2043 neo2043 closed this as completed May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:needs-investigation Issue requires further investigation
Projects
Archived in project
Development

No branches or pull requests

2 participants