[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] atmega32
From: |
Jamie Morken |
Subject: |
Re: [avr-gcc-list] atmega32 |
Date: |
Sun, 08 Jun 2003 22:11:53 -0700 |
Thanks everyone for your help, winavr kicks butt!
----- Original Message -----
From: <address@hidden>
To: "Jamie Morken" <address@hidden>; <address@hidden>
Sent: Sunday, June 08, 2003 3:13 PM
Subject: Re: [avr-gcc-list] atmega32
> > Hi,
> >
> > Thanks I installed winavr. I am trying to use the printf
> function but it
> > doesn't print anything, and just goes to the next line of
> code. Here are
> > the lines of code that don't seem to be working:
> > printf("hello");
> > printf(" %i\r\n", (int)flash_buffer1[multivar1]);
>
> Read the avr-libc manual on how to use printf on an
> embedded platform. It's different than using it on PC with
> an OS.
>
>
> > Does the printf function in winavr work with floats?
>
> Yes. Again, see the avr-libc manual on how to link in the
> proper library.
>
>
> > After compiling I get a "clock skew detected, your build
> may be incomplete"
> > warning, but it seems to run fine on the chips.
>
> IIRC, that comes from using Win 95/98 where their timer
> resolution is coarse. Wait about 5 seconds from the time
> you save the file to when you launch make and it should go
> away.
>
> Eric
>
>