Hello,
is the Arduino Nano R3 bzw. Arduino Nano 3.0 ATmega328 & ST7735 Display supported with Rust 1.8.5 or newer ?
Like to read Audio input an Show on the Display.
Connect a Morse Paddle an Show the Single character enter by the morse paddle.
Hello,
is the Arduino Nano R3 bzw. Arduino Nano 3.0 ATmega328 & ST7735 Display supported with Rust 1.8.5 or newer ?
Like to read Audio input an Show on the Display.
Connect a Morse Paddle an Show the Single character enter by the morse paddle.
ATmega328 should be supported via the avr-none
target:
However, it's a Tier 3 target and only works on nightly AFAIK. There are some notes on how to use it here:
… and a couple of related repositories here:
Thank you
How to setup rustc for compile ?
apt-get install simavr gcc-avr avrdude
cargo new nano_test
cd nano_test
rustup override set nightly
rustc --version
rustc 1.87.0-nightly (3f5502370 2025-03-27)
rustup target add avr-none
error: toolchain 'stable-x86_64-unknown-linux-gnu' does not support target 'avr-none'
note: you can see a list of supported targets with `rustc --print=target-list`
note: if you are adding support for a new target to rustc itself, see https://rustc-dev-guide.rust-lang.org/building/new-target.html
$ rustc --print=target-list | grep avr
avr-unknown-gnu-atmega328
~/.cargo/config.toml
[target.avr-atmega328p]
target = "avr-none"
rustflags = ["-C", "target-cpu=atmega328p"]
with stable the same:
rustup override set stable
rustc --version
rustc 1.85.1 (4eb161250 2025-03-15)
rustc --print=target-list | grep avr
avr-unknown-gnu-atmega328
rustup target add avr-unknown-gnu-atmega328
error: toolchain 'stable-x86_64-unknown-linux-gnu' does not support target 'avr-unknown-gnu-atmega328'
note: you can see a list of supported targets with `rustc --print=target-list`
note: if you are adding support for a new target to rustc itself, see https://rustc-dev-guide.rust-lang.org/building/new-target.html
What did I wrong ?
looks lilke this helps... but using old compile version