Rahix / avr-hal

embedded-hal abstractions for AVR microcontrollers
Apache License 2.0
1.32k stars 225 forks source link

cargo run - Error: Failed reading avrdude version information. #600

Closed alter-kaker closed 1 week ago

alter-kaker commented 1 week ago

Trying to set up a Rust toolchain for Arduino because I'm no good at all with C/C++.

I'm using the cargo generate --git https://github.com/Rahix/avr-hal-template.git template. Build goes fine, but cargo-run gives the following output:

$ cargo run
    Finished `dev` profile [optimized + debuginfo] target(s) in 0.17s
     Running `ravedude nano -cb 57600 target/avr-atmega328p/debug/mediaplayer.elf`
Error: Failed reading avrdude version information.

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

I'm running Arch (EndeavorOS), fully updated as of today.

Thanks!

alter-kaker commented 1 week ago

I needed to install avrdude.

Rahix commented 1 week ago

I guess we could add a check that avrdude is even there before trying to read out the version. The error message would then be a lot less confusing!