[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] can't get to sleep?
From: |
E. Weddington |
Subject: |
Re: [avr-gcc-list] can't get to sleep? |
Date: |
Mon, 07 Apr 2003 11:28:23 -0600 |
On 7 Apr 2003 at 11:53, Holly Gates wrote:
> Hello, I seem to be having trouble getting the mega128 to go to sleep.
> I'm using:
>
> avr-gcc-c++-3.2.75.20021202-1.rh7x
> simulavr-0.1.1-1
> avr-binutils-2.13.75.021202-1.rh7x
> avr-libc-docs-20021127cvs-1
> avr-gcc-3.2.75.20021202-1.rh7x
> avr-gdb-5.2-1
> simulavr-docs-0.1.1-1
> avr-libc-20021127cvs-1
>
> and I do something like this:
>
> set_sleep_mode(SLEEP_MODE_PWR_DOWN);
> printf("going to sleep..");
> sleep_mode();
> printf("woke up\n\r");
>
> but it seems to run right through without going to sleep, even with
> all interrupts disabled. Its probably something stupid, but I thought
> I would see if someone else notices what it is....
>
> Thanks,
> -Holly
Update your avr-libc to the latest in CVS. There's been some
additional corrections since your version. See if that helps.
Eric