Comments (11)
@Rahix That was it! Thank you for the help! :)
from avr-hal.
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.
from avr-hal.
@Rahix updated...
from avr-hal.
from avr-hal.
@BrandonLeeDotDev what version of avrdude
and ravedude
do you have installed? Please check the avrdude
command that's used by your Arduino IDE to flash. Then change the ravedude invocation in .cargo/config.toml
to include --debug-avrdude
to see what avrdude command ravedude issues.
from avr-hal.
Also, please check whether you have the issue discussed in #299.
from avr-hal.
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
[build]
target = "../../avr-specs/avr-atmega328p.json"
[target.'cfg(target_arch = "avr")']
runner = "ravedude new-nano -cb 115200 --debug-avrdude"
[unstable]
build-std = ["core"]
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.
from avr-hal.
Sorry, I'm not following. What is the problem at this point? You show cargo build
. Are you saying that cargo run
(i.e. running ravedude) still produces the same error as above with the nano-new
config?
from avr-hal.
@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.
from avr-hal.
@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?
from avr-hal.
You need to actually read the error messages you are getting!
thread 'main' panicked at [...]/ravedude-0.1.8/src/main.rs:97:47: board not found
And we can see the reason in the line above: You wrote new-nano
instead of nano-new
. Please try again with the correct name ;)
from avr-hal.
Related Issues (20)
- Document clock type design in more detail HOT 1
- cargo build - error[E0658] - proc_macro::Literal::byte_character(byte) HOT 9
- can't find crate for `core` HOT 12
- cargo build - error[E0658] - proc_macro::Literal::byte_character(byte) HOT 4
- Very weird error when compiling a very basic program: __addsf3 multiple defenitions HOT 9
- Ravedude freezes on programmer uploading HOT 5
- Watchdog intterupt mode HOT 1
- [Solved] Cannot find `pwm` in `embedded_hal` HOT 2
- peripherals type alias HOT 2
- Enhance `avr_hal_generic::renamed_pins! {}` to also generate type aliases for each pin
- tier 3 target and broken HOT 6
- Utilising the `atmega2560`'s "USART in SPI Mode" HOT 10
- Issue with math calculations with floats to serial port output HOT 6
- Incorrect ADC readings after toolchain bump HOT 15
- Weird issue with two u8 ranged loops HOT 14
- error: no matching package named `avr-hal` found HOT 7
- Serial writes aren't working on `rustc 1.82.0-nightly (8e86c9567 2024-08-01)` HOT 12
- Possible miscompilation in LLVM HOT 14
- Can't specify different upload and monitor serial ports. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from avr-hal.