Git Product home page Git Product logo

Comments (11)

BrandonLeeDotDev avatar BrandonLeeDotDev commented on September 28, 2024 1

@Rahix That was it! Thank you for the help! :)

from avr-hal.

Rahix avatar Rahix commented on September 28, 2024

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.

BrandonLeeDotDev avatar BrandonLeeDotDev commented on September 28, 2024

@Rahix updated...

from avr-hal.

stappersg avatar stappersg commented on September 28, 2024

from avr-hal.

Rahix avatar Rahix commented on September 28, 2024

@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.

Rahix avatar Rahix commented on September 28, 2024

Also, please check whether you have the issue discussed in #299.

from avr-hal.

BrandonLeeDotDev avatar BrandonLeeDotDev commented on September 28, 2024

@Rahix

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.

Rahix avatar Rahix commented on September 28, 2024

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.

BrandonLeeDotDev avatar BrandonLeeDotDev commented on September 28, 2024

@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.

BrandonLeeDotDev avatar BrandonLeeDotDev commented on September 28, 2024

@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.

Rahix avatar Rahix commented on September 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.