Tool/software: TI-RTOS
Dear,
I am doing some programs with TI-RTOS, it is enjoyable :)
I have few questions about the current consumption of the MSP432. First of all, I have done the SimpleLink Academy power modes example and have been able to go down to LPM3/4 with 1 uA :)
Now I am doing my own duty-cycled example, based on a timer, and want to achieve this value during the sleep stage. I attach the code next (UPDATED: the code was indeed wrong, see the final post of this thread):
So, my plan is to go down to LPM3 with a timer waking up the MCU every 3 seconds. In active mode the LED is on. After 3 seconds, sleep again. This works, but the current consumption is 1.00 mA during sleep mode (LED off). I am doing something wrong, possibly misunderstanding something. These are my questions!
- How should I end my threads? By returning NULL or in some loop such as while(1) { Task_sleep(); } ?
- Related to the previous one, I do not understand why if the thread terminates (it reaches "return NULL") it keeps running.
- Why do you think I have a 1 mA consumption when sleeping?
- In the case I have many threads, do I have to Power_setPolicy for every one of them?
Have a really nice day! :)