Giter Club home page Giter Club logo

Comments (2)

hexagon5un avatar hexagon5un commented on June 16, 2024

That's hilarious. (Or as hilarious as a horrible bug can be...) I just ran into this problem myself a couple days ago.

What's happening is that the compiler builds up the serial library, you change the processor speed, and the compiler doesn't re-build the serial functions again to match the new speed. This glitch crept in when I switched over to a (better? more general-purpose?) version of the Makefile.

The quick fix is to delete any old copies of USART.o. In particular, if you're using the stock setup, it should be in the AVR-Programming/AVR-Programming-Library/ directory unless you've moved it anywhere else.

Delete USART.o and recompile. It will make it with the right F_CPU value (in the Makefile) and you'll be good to go. You'll probably have to delete it again if you switch back to a low-speed program. Sigh.

I'll fix up the Makefile too, which'll squish the bug for real.

Thanks for catching this!

from avr-programming.

paelzer avatar paelzer commented on June 16, 2024

Hi Elliot

Awesome, that was fast man! It works :-D Thank you very, very much man!!
I'm so happy to see this self made touch sensor working :-)
Now I'll have a beer.

I wish you and your family a very nice christmas and also the best for
2016!! And good luck with your next projects!!

Greetings from the Saarland
Boris

2015-12-20 23:18 GMT+01:00 Elliot Williams [email protected]:

That's hilarious. (Or as hilarious as a horrible bug can be...) I just ran
into this problem myself a couple days ago.

What's happening is that the compiler builds up the serial library, you
change the processor speed, and the compiler doesn't re-build the serial
functions again to match the new speed. This glitch crept in when I
switched over to a (better? more general-purpose?) version of the Makefile.

The quick fix is to delete any old copies of USART.o. In particular, if
you're using the stock setup, it should be in the
AVR-Programming/AVR-Programming-Library/ directory unless you've moved it
anywhere else.

Delete USART.o and recompile. It will make it with the right F_CPU value
(in the Makefile) and you'll be good to go. You'll probably have to delete
it again if you switch back to a low-speed program. Sigh.

I'll fix up the Makefile too, which'll squish the bug for real.

Thanks for catching this!


Reply to this email directly or view it on GitHub
#12 (comment)
.

from avr-programming.

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.