Giter Site home page Giter Site logo

Comments (5)

TCWORLD avatar TCWORLD commented on May 30, 2024

Its a problem with the compiler that affects all ATTiny8x's. There is fortunately a simple fix:

https://github.com/TCWORLD/ATTinyCore/tree/master/PCREL%20Patch%20for%20GCC

from attiny.

jpelckolsen avatar jpelckolsen commented on May 30, 2024

I've had the same problem and tried your fix, but it seems like the arduino IDE doesn't recognize the new ld file. I get an "error compiling" followed by "ld: warning: option -m is obsolete and being ignored
ld: file not found: avrX" where X is number dependant on which board I select.

Maybe this is me not knowing how macOS works. The ld file is of the type "document" whereas the old one was of the type "unix executable file". Could this somehow be the explanation and does anyone have a fix?

from attiny.

TCWORLD avatar TCWORLD commented on May 30, 2024

Did you download the ld file, or the zip file?
Try this one:
https://github.com/TCWORLD/ATTinyCore/raw/master/PCREL%20Patch%20for%20GCC/MAC%20ld.zip
The file should be executable.

If not, you need to add that permission. If MacOS is anything like Linux in that regards, it will be something like this command in terminal:
chmod +x path\to\ld

from attiny.

jpelckolsen avatar jpelckolsen commented on May 30, 2024

Magic! The chmod +x command did the trick. Thanks a lot!

from attiny.

damellis avatar damellis commented on May 30, 2024

I believe this fix has since been incorporated into the Arduino software / AVR core, so I'm closing this. Please re-open if it's still an issue.

from attiny.

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.