This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/MSP432P401R: easy questions about MSP432 TI-RTOS :)

Guru 18605 points
Part Number: MSP432P401R


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!

  1. How should I end my threads? By returning NULL or in some loop such as while(1) { Task_sleep(); } ?
  2. Related to the previous one, I do not understand why if the thread terminates (it reaches "return NULL") it keeps running.
  3. Why do you think I have a 1 mA consumption when sleeping?
  4. In the case I have many threads, do I have to Power_setPolicy for every one of them?

Have a really nice day! :)

  • Dear Friend,

    removing the headers and so on,
    you decided that each potential supporter would need to do the same job as all others to recreate your issue.
    I am pretty sure that one knowledgeable TI'er would answer all your questions in less time that all others summarized times spent on looking for headers and so on.
    Regarding your questions1, 2 and 4: RYFM - Read Your Manual.

    Have a really nice day! :)

  • Haha, OMG what a moron. Is it with these kind of answers you got your 3000 points? Maybe you cannot do it any other way. I guess the rest of us should answer the whole forum the way you do.  Anyway, thanks for your time Tomasz Kocon (4183964) , please continue building your website now. By the way, I have updated the question to include the headers, but I do not think this helps you, at all.

    Now the trolls have gone to sleep, I hope someone else will feel less superior will provide a constructive thread. I can read the manual (again) for such simple thing, but sometimes you just want to be told some concepts in another way :)

    Have a nice day! :) Even you, wurst.

  • Just found the reason in some sort of "Problem description" link. Turns out LPM3 cannot make use of TimerA :)
    processors.wiki.ti.com/.../TI-RTOS_MSP432_Timer

    Hope this is useful to someone else!
  • Kazola,

      Sorry we didn't make the TimerA limitations clear in our documentation.  The MSP432P401R datasheet does list the peripherals that are able to wake up the CPU from LPM3, but you might also want to check out the application note "Scaling across the SimpleLink MSP432P4  MCU family".  Section 2.3.1 shows the available wakeup peripherals for both the MSP432P401R/M and the MSP432P4x11/V/Y devices.

    Regards,

      -Bob L.

      MSP432 Applications

**Attention** This is a public forum