-
Notifications
You must be signed in to change notification settings - Fork 221
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
Arduino Nano: avrdude error: programmer is not responding #547
Comments
Please provide more information. What's not working? What behavior are you observing? What did you do to trigger this? You can't expect us to guess what is going on from this little information. |
@Rahix updated... |
On Thu, May 09, 2024 at 11:18:19PM -0700, Geert Stappers wrote:
> updated...
Please make a better attempt.
And while you are at it, retitle to
avrdude error: programmer is not responding
Groeten
Geert Stappers
--
Silence is hard to parse
|
@BrandonLeeDotDev what version of |
Also, please check whether you have the issue discussed in #299. |
user@terminal:~/Documents/project_transmit/avr-hal/target/avr-atmega328p/debug$ avrdude --version ... avrdude version 7.1, URL: <https://github.com/avrdudes/avrdude> user@terminal:~/Documents/project_transmit/avr-hal/target/avr-atmega328p/debug$ ravedude --version ravedude v0.1.8 (no git) Cargo.toml
after adding debug flag above && new-nano. I had already figured out the baud rate was incorrect... user@terminal:~/Documents/project_transmit/avr-hal/examples/arduino-nano$ cargo build Compiling compiler_builtins v0.1.108 Compiling core v0.0.0 (/home/user/.rustup/toolchains/nightly-2024-03-22-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core) Compiling proc-macro2 v1.0.79 Compiling unicode-ident v1.0.12 Compiling syn v1.0.109 Compiling rustversion v1.0.16 Compiling embedded-hal-bus v0.1.0 Compiling paste v1.0.15 Compiling quote v1.0.36 Compiling avr-hal-generic v0.1.0 (/home/user/Documents/project_transmit/avr-hal/avr-hal-generic) Compiling ufmt-macros v0.3.0 Compiling avr-device-macros v0.5.4 Compiling rustc-std-workspace-core v1.99.0 (/home/user/.rustup/toolchains/nightly-2024-03-22-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/rustc-std-workspace-core) Compiling nb v1.1.0 Compiling vcell v0.1.3 Compiling critical-section v1.1.2 Compiling bare-metal v1.0.0 Compiling cfg-if v1.0.0 Compiling void v1.0.2 Compiling ufmt-write v0.1.0 Compiling embedded-hal v1.0.0 Compiling embedded-storage v0.2.0 Compiling unwrap-infallible v0.1.5 Compiling cfg-if v0.1.10 Compiling avr-device v0.5.4 Compiling ufmt v0.2.0 Compiling panic-halt v0.2.0 Compiling nb v0.1.3 Compiling embedded-hal v0.2.7 Compiling atmega-hal v0.1.0 (/home/user/Documents/project_transmit/avr-hal/mcu/atmega-hal) Compiling arduino-hal v0.1.0 (/home/user/Documents/project_transmit/avr-hal/arduino-hal) Compiling arduino-nano-examples v0.0.0 (/home/user/Documents/project_transmit/avr-hal/examples/arduino-nano) WARN rustc_codegen_ssa::back::link Linker does not support -no-pie command line option. Retrying without. WARN rustc_codegen_ssa::back::link Linker does not support -no-pie command line option. Retrying without. WARN rustc_codegen_ssa::back::link Linker does not support -no-pie command line option. Retrying without. Finished `dev` profile [optimized + debuginfo] target(s) in 9.13s Something to note here is it is compiling however... there is not change when I upload to the board... user@terminal:~/Documents/project_transmit/avr-hal/target/avr-atmega328p/debug$ avrdude -p m328p -c arduino -P /dev/ttyUSB0 -b 115200 flash:w:nano-blink.elf avrdude: AVR device initialized and ready to accept instructions avrdude: device signature = 0x1e950f (probably m328p) avrdude done. Thank you. |
Sorry, I'm not following. What is the problem at this point? You show |
@Rahix before the initial post it was compiling. Then it ceased. Until that point I assumed fault. After, I filed the issue. That said here is the output when trying to upload to the board from the elf user@terminal:~/Documents/project_transmit/avr-hal/examples/arduino-nano$ cargo clean Removed 410 files, 205.4MiB total user@terminal:~/Documents/project_transmit/avr-hal/examples/arduino-nano$ cargo build Compiling compiler_builtins v0.1.108 Compiling core v0.0.0 (/home/user/.rustup/toolchains/nightly-2024-03-22-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core) Compiling proc-macro2 v1.0.79 Compiling unicode-ident v1.0.12 Compiling syn v1.0.109 Compiling rustversion v1.0.16 Compiling embedded-hal-bus v0.1.0 Compiling paste v1.0.15 Compiling quote v1.0.36 Compiling avr-hal-generic v0.1.0 (/home/user/Documents/project_transmit/avr-hal/avr-hal-generic) Compiling ufmt-macros v0.3.0 Compiling avr-device-macros v0.5.4 Compiling rustc-std-workspace-core v1.99.0 (/home/user/.rustup/toolchains/nightly-2024-03-22-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/rustc-std-workspace-core) Compiling nb v1.1.0 Compiling critical-section v1.1.2 Compiling void v1.0.2 Compiling embedded-hal v1.0.0 Compiling bare-metal v1.0.0 Compiling vcell v0.1.3 Compiling cfg-if v1.0.0 Compiling ufmt-write v0.1.0 Compiling unwrap-infallible v0.1.5 Compiling embedded-storage v0.2.0 Compiling cfg-if v0.1.10 Compiling ufmt v0.2.0 Compiling panic-halt v0.2.0 Compiling avr-device v0.5.4 Compiling nb v0.1.3 Compiling embedded-hal v0.2.7 Compiling atmega-hal v0.1.0 (/home/user/Documents/project_transmit/avr-hal/mcu/atmega-hal) Compiling arduino-hal v0.1.0 (/home/user/Documents/project_transmit/avr-hal/arduino-hal) Compiling arduino-nano-examples v0.0.0 (/home/user/Documents/project_transmit/avr-hal/examples/arduino-nano) WARN rustc_codegen_ssa::back::link Linker does not support -no-pie command line option. Retrying without. WARN rustc_codegen_ssa::back::link Linker does not support -no-pie command line option. Retrying without. WARN rustc_codegen_ssa::back::link Linker does not support -no-pie command line option. Retrying without. Finished `dev` profile [optimized + debuginfo] target(s) in 9.49s user@terminal:~/Documents/project_transmit/avr-hal/examples/arduino-nano$ cargo run --bin nano-blink WARN rustc_codegen_ssa::back::link Linker does not support -no-pie command line option. Retrying without. Finished `dev` profile [optimized + debuginfo] target(s) in 0.04s Running `ravedude new-nano -cb 115200 --debug-avrdude /home/user/Documents/project_transmit/avr-hal/target/avr-atmega328p/debug/nano-blink.elf` thread 'main' panicked at /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ravedude-0.1.8/src/main.rs:97:47: board not found note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace user@terminal:~/Documents/project_transmit/avr-hal/target/debug$ cd ../../avr-atmega328p/debug user@terminal:~/Documents/project_transmit/avr-hal/target/avr-atmega328p/debug$ ls build examples nano-adc.d nano-blink.d nano-panic.d deps incremental nano-adc.elf nano-blink.elf nano-panic.elf user@terminal:~/Documents/project_transmit/avr-hal/target/avr-atmega328p/debug$ avrdude -p m328p -c arduino -P /dev/ttyUSB0 -b 115200 flash:w:nano-blink.elf avrdude: AVR device initialized and ready to accept instructions avrdude: device signature = 0x1e950f (probably m328p) avrdude done. Thank you. |
@Rahix Adding the debug flag, nano-new, baud rate... etc changed nothing.. there is actually no additional info created using the debug flag as shown above... or am I just missing something? |
You need to actually read the error messages you are getting!
And we can see the reason in the line above: You wrote |
@Rahix That was it! Thank you for the help! :) |
I can push from Arduino IDE, however cannot from rust with example
lsb_release -a
gcc --version
cargo build
rustup show
cargo run --bin nano-blink
The text was updated successfully, but these errors were encountered: