Does task switching happen in the timer ISR? Perhaps the wakeup keyword is not being effective in the thread where you called LPM1 (stack pointer is swapped to another thread and wakeup may be applied there). I am really guessing now! Maybe you will need to modify the return stack for this thread directly or make sure that the wakeup is applied to the stack before it is switched out to any other thread. If you were running multiple threads they should probably all be woken up.
Maybe you should work around the problem - can you request that the RTOS sleep your thread for a while (i.e. start executing some other thread) and then do LPM1 in your idle loop? These are just my crazy thoughts, hope you get some ideas from them. - Wayne From: Bernard Mentink [mailto:[email protected]] Sent: Monday, 2 March 2009 10:28 AM To: Wayne Uroda; GCC for MSP430 - http://mspgcc.sf.net Subject: Re: [Mspgcc-users] Interrupt issues Yes, the interrupts are enabled and the OS runs ( it is run my the interrupt timer tick). As I stated in my original email, the timer interrupts bring it out of LPM1 mode just fine if I camm LPM1; in the OS idle loop. It is just when I go to do a LPM1 anywhere else in my code, that it doesn't seem to wakeup .. Cheers, Bernie On Mon, Mar 2, 2009 at 11:01 AM, Wayne Uroda <[email protected]> wrote: Are interrupts enabled? Is the timer interrupt enabled? The timer's clock source is still active in LPM1? Don't know what else it could be! I've not used an RTOS on 430 though. - Wayne Sent via BlackBerry(r) from Vodafone -----Original Message----- From: Bernard Mentink <[email protected]> Date: Mon, 2 Mar 2009 10:29:59 To: GCC for MSP430 - http://mspgcc.sf.net<[email protected]> Subject: [Mspgcc-users] Interrupt issues ------------------------------------------------------------------------ ------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ------------------------------------------------------------------------ ------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Mspgcc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mspgcc-users
