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

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

[avr-gcc-list] can't get to sleep?


From: Holly Gates
Subject: [avr-gcc-list] can't get to sleep?
Date: Mon, 07 Apr 2003 11:53:26 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021130

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



reply via email to

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