Thanks for the article!
I'm getting an error:
error: ran out of registers during register allocation
macos catalina.
Not sure if can it apply, but on windows, I got the same error and I solved it by changing the nightly version rustup override set nightly-2021-01-07 Here is the AVR reference, I hope it can be useful: github.com/Rahix/avr-hal#starting-...
rustup override set nightly-2021-01-07
you're getting this error because Cargo.toml is missing:
[profile.dev] panic = "abort" lto = true opt-level = "s"
anyway, this can't be compiled anymore:
Compiling avr-device v0.2.3 error: cannot find macro `llvm_asm` in this scope --> /.cargo/registry/src/github.com-1ecc6299db9ec823/avr-device-0.2.3/src/interrupt.rs:18:22 | 18 | unsafe { llvm_asm!("cli" :::: "volatile") }; |
and you need to switch from arduino-uno crate to arduino-hal. (example)
arduino-uno
arduino-hal
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks for the article!
I'm getting an error:
macos catalina.
Not sure if can it apply, but on windows, I got the same error and I solved it by changing the nightly version
rustup override set nightly-2021-01-07
Here is the AVR reference, I hope it can be useful: github.com/Rahix/avr-hal#starting-...
you're getting this error because Cargo.toml is missing:
anyway, this can't be compiled anymore:
and you need to switch from
arduino-uno
crate toarduino-hal
. (example)