Git Product home page Git Product logo

Comments (4)

Rahix avatar Rahix commented on July 19, 2024

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.

Rahix avatar Rahix commented on July 19, 2024

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.

jonahbron avatar jonahbron commented on July 19, 2024

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.

Rahix avatar Rahix commented on July 19, 2024

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)

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.