Skip to content
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

Error: Could not execute process espflash flash --monitor .. No such file or directory #63

Open
3210jr opened this issue Dec 1, 2024 · 1 comment

Comments

@3210jr
Copy link

3210jr commented Dec 1, 2024

For a fresh new project, created with esp-generate --chip esp32s3 hello-esp.

Building with cargo build has no errors, but cargo run is the one that keeps failing no matter what options I pass. Below is the output of running that

$ hello-esp git:(main) ✗ cargo run


WARNING: use --release
  We *strongly* recommend using release profile when building esp-hal.
  The dev profile can potentially be one or more orders of magnitude
  slower than release, and may cause issues with timing-senstive
  peripherals and/or devices.

    Finished `dev` profile [optimized + debuginfo] target(s) in 0.10s
     Running `espflash flash --monitor target/xtensa-esp32s3-none-elf/debug/async_main`
error: could not execute process `espflash flash --monitor target/xtensa-esp32s3-none-elf/debug/async_main` (never executed)

Caused by:
  No such file or directory (os error 2)

Any thoughts on how to fix this?

Thank you!

@bjoernQ
Copy link
Collaborator

bjoernQ commented Dec 2, 2024

Seems espflash is not installed on your system, see https://docs.esp-rs.org/book/tooling/espflash.html

Maybe esp-generate should check that (and a few other things) to avoid running into problems later

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants