Giter Site home page Giter Site logo

Comments (7)

hessa59 avatar hessa59 commented on July 24, 2024

I seems like you have your CPU set at 0.1 MHZ ie #define F_CPU 100000 UL. Is this what you want?

Also I find this error #error "setboud.h requires F_CPU to be defined" to be strange. Shouldn't it be setbaud.h

from avr-programming.

hexagon5un avatar hexagon5un commented on July 24, 2024

Hi!

Hessa59 is right -- you need to up your F_CPU define by a factor of ten. That's an easy typo to fix.

The other possible gotcha with Studio is that you might also need to set a BAUD define as well.

It has a way to set global compile-time defines like this. I can't remember off the top of my head what it is.

from avr-programming.

DarkRabbit19 avatar DarkRabbit19 commented on July 24, 2024

I tried to do that but it dit not work.
the libery does not work wit Atmel studio in general.
in the and i made my own libery. (dropbox link: https://www.dropbox.com/sh/8ncnrjdd973qy6i/AAAOIanbFtVdW1teYvIutOmOa?dl=0)
the only thing I am wondering is what you use instead of Atmelstudio.

from avr-programming.

xavicci avatar xavicci commented on July 24, 2024

@DarkRabbit19 hola si funciona en atmelstudio7, agrega #define F_CPU 1000000 dentro de USART.c y escribe bien la palabra setbaud.h .
http://es.tinypic.com/view.php?pic=ipzlmx&s=9#.VvvvwVXhCM8 mira la siguiente imagen, espero que te ayude!

from avr-programming.

hexagon5un avatar hexagon5un commented on July 24, 2024

@xavicci @DarkRabbit19

Another issue goes over problems with Studio: #10

The BAUD, F_CPU problem is solvable like so:
According to this website, Studio calls them "symbols" and they're found buried pretty deep in some menus: Project - Properties - Toolchain - All Configurations - Symbols.

But the truth is, I didn't intend to get into Studio -- they change it so often that anything I write about using the GUI will be wrong in a year. The stock compile is with any avr-gcc toolchain. See the book for more details? Or LadyAda has a good tutorial.

from avr-programming.

DarkRabbit19 avatar DarkRabbit19 commented on July 24, 2024

In the end I made a other libery that works.
thank you voor your time and the gread book

from avr-programming.

hexagon5un avatar hexagon5un commented on July 24, 2024

Glad you like the book, and I'm sorry about the Studio woes. I wish I could keep up with them too, but they're a moving target.

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.