[Top][All Lists]

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

Re: [avr-gcc-list] sleep mode error on SM bit

From: eric
Subject: Re: [avr-gcc-list] sleep mode error on SM bit
Date: Mon, 23 Jun 2003 15:38:07 GMT

> Hi,
> I have istalled on a linux-mandrake all the rpms binary 
packages in
> /usr/avr
> from http://savannah.nongnu.org/download/avr-
>   a.. avr-binutils- 
>   b.. avr-gcc-c++- 
>   c.. avr-gcc- 
>   d.. avr-libc-docs-20030512cvs-1.i386.rpm 
>   e.. avr-libc-20030512cvs-1.i386.rpm 
> and WinAVR-20030424-bin-install on a windows based pc from
> http://sourceforge.net/project/showfiles.php?
group_id=68108&release_id=> 155082
> In the main file I call the function
> "set_sleep_mode(SLEEP_MODE_PWR_DOWN)"
> ( avr-g++ -g -Wall -fno-exceptions -Os -
mmcu=at90s8515    -c -o main.o
> main.c )
> I see a compiler error only on the linux pc like this: SM 
not defined.
> Can anyone halp me?
> Thanks   

I've verified that the io8515.h file in the current avr-
libc CVS has the right definitions for the SM and SE bits 
for the MCUCR register. The sleep.h file in the avr-libc 
CVS seems to be correct from looking over it, although I 
haven't tested it myself.

Could you post the actual compiler output and the code 
you're using that produces the error?

And Ted Roth, perhaps you can comment on this? Thanks.


reply via email to

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