Closed
Description
Reporting my expirement
$ cargo +nightly-2021-01-07 build -Z build-std=core --target avr-atmega328p.json --release
Compiling blink v0.1.0 (/home/gs0604/src/rust/RustAVR/blink)
error[E0432]: unresolved import `ruduino::cores::atmega328`
--> src/main.rs:6:5
|
6 | use ruduino::cores::atmega328 as avr_core;
| ^^^^^^^^^^^^^^^^---------^^^^^^^^^^^^
| | |
| | help: a similar name exists in the module: `atmega328p`
| no `atmega328` in `cores`
The +nightly-2021-01-07
is because #29, the README.md
says.
cargo build -Z build-std=core --target avr-atmega328p.json --release
Activity
stappersg commentedon Jan 31, 2021
What I did to get a succesfull build:
I don't know how good or how evil that is.
Thing I'm trying to say:
blink
did not compile for me, I had to make a modification to get atarget/avr-atmega328p/release/blink.elf
.Note: How good that
blink.elf
is, is currently unknown.dylanmckay commentedon Feb 1, 2021
I recently updated the
main.rs
file so that rather than hardcoding theatmega328
, it usesuse ruduino::cores::current::{DDRB, PORTB};
, usingruduino
to detect the device that is being targeted. I suspect this issue is fixed now, specifically in cfb8451.stappersg commentedon Feb 14, 2021
Reporting a clean compile, taking #29 workaround in account.