Comments (4)
I am not able to reproduce these errors, it works perfectly fine for me ... From the error messages it looks like you are trying to build atmega32u4-hal
with an avr-device
crate for ATmega328P? At least 32U4 has PORT{E,F}
while 328P does not ...
Can you try cleaning your target/
and rebuilding?
from avr-hal.
Oh, I see what you did ... You probably attempted to build from the repository root? Please follow the exact instructions from the README. You should build inside one of the crate directories, eg. in your case boards/arduino-uno/
.
from avr-hal.
Yup, I think those errors were appearing because I build from the root folder. It succeeds when I build from within the atmega32u4 chip dir.
from avr-hal.
FYI, I made the error message in this case a little clearer. It should now display
error: You cannot select multiple chips at once!
--> /home/rahix/.cargo/git/checkouts/avr-device-86e4c21e2d4dc300/f77864d/src/lib.rs:66:1
|
66 | compile_error!("You cannot select multiple chips at once!");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error
error: Could not compile `avr-device`.
I know this still does not point to the root cause but at least it is better than the obscure error you got ... For a real fix we have to choose a design as described in Rahix/avr-device#17.
from avr-hal.
Related Issues (20)
- The crates' avrdude.config not compatible with AVRDUDE 7.1 HOT 1
- "uno-timer" example no longer works HOT 8
- Critical section causes unexpected behaviour in `--release` mode HOT 10
- avrdude 7.3 cannot find programmer HOT 3
- `cargo run` fails - avrdude looking for missing "system wide configuration file" HOT 13
- Arduino Uno readDigital equivalent
- Can't write to serial HOT 7
- Linker error when using a floating point operation HOT 3
- Panic while trying to write to serial using `ufmt::uwriteln` HOT 4
- Add configurable board options to ravedude HOT 3
- Get pin number HOT 6
- Program freezes if compiled in debug mode.
- ravedude should check rust target against selected MCU HOT 3
- 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 8
- Ravedude freezes on programmer uploading HOT 5
- Arduino Nano: avrdude error: programmer is not responding HOT 11
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.