MSPM0G3519: Standby1 mode with FreeRTOS

Part Number: MSPM0G3519

Tool/software:

Hi,

I'm working on a project using FreeRTOS on the MSPM0G3519. I need to enter Standby1 mode to keep the RTC running and wake the device through a GPIO Fast Wake request. I couldn’t find any examples on how to implement this in FreeRTOS. Can it be done the same way as in a non-FreeRTOS project, or are there additional considerations?

Thanks in advance,

Rafael

  • Hi Rafael,

    As in standby1 mode, all the peripheal and CPU will not work (except RTC and TIMG0/1), so the FreeRTOS is also not work at this moment, I think you can just do it as non-RTOS flow to achieve it.

    B.R.

    Sal

  • Typically Low Power Mode is done in FreeRTOS by defining an Idle task (vApplicationIdleHook() and configUSE_IDLE_HOOK=1) built around a WFI. The WFI goes into LPM according to the set Policy, and the wakeup interrupt "pushes" it out of the WFI.

    FreeRTOS also implements a "tickless Idle" which is intended to deal with having the FreeRTOS core timer (SysTick maybe?) suspended for long periods; once awakened, it fixes up the timer. I don't have much experience with this, but I've seen some of how it's done (in the FreeRTOS source).

    I don't see any examples in Resource Explorer which do this.