avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] atmega32


From: eric
Subject: Re: [avr-gcc-list] atmega32
Date: Sun, 8 Jun 2003 22:13:05 GMT

> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]