2186606_en-US

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

2186606_en-US

2186606_en-US

iMXRT1171 - Waking Up from SNVS Sleep Using SNVS SRTC Alarm

Hi,

I'm working with the iMX RT1171 and shutting down the system by setting the Turn Off System Power (TOP) bit in the SNVS LPCR register. Before setting this bit, I configure the SRTC alarm using SNVS_LP_SRTC_SetAlarm() to trigger after 10 seconds.

My expectation is that the device will wake up 10 seconds after power-off via the SRTC alarm, once the LPCR.TOP bit is set. However, the device never wakes up the SRTC alarm does not bring it back from SNVS sleep.

What should I do to make sure the device can wake up via the SRTC alarm?

Here’s a representative code snippet:

(In the actual implementation, proper rollover checks are performed for date and time values. The sample code above omits these for simplicity.)

snvs_lp_srtc_config_t lp_srtc_config = {0U};

SNVS_LP_SRTC_GetDefaultConfig(&lp_srtc_config);
SNVS_LP_SRTC_Init(SNVS, &lp_srtc_config);
SNVS_LP_SRTC_StartTimer(SNVS);

snvs_lp_srtc_datetime_t srtc_datetime = {0};
SNVS_LP_SRTC_GetDatetime(SNVS, &srtc_datetime);

SNVS_LP_SRTC_ClearStatusFlags(SNVS, kSNVS_SRTC_AlarmInterruptFlag);
SNVS_LP_SRTC_EnableInterrupts(SNVS, kSNVS_SRTC_AlarmInterrupt);

srtc_datetime.second += 10;

status_t ret_val = SNVS_LP_SRTC_SetAlarm(SNVS, &srtc_datetime);
if (kStatus_Success != ret_val)
{
    /// log
}

__DSB();
__ISB();

SNVS->LPCR |= SNVS_LPCR_TOP_MASK;

Re: iMXRT1171 - Waking Up from SNVS Sleep Using SNVS SRTC AlarmI need help with another topic. I want to manually control the PMIC_ON_REQ pin, so I’m trying to use the PK_OVERRIDE and PK_EN bits in SNVS->LPCR.

I set the PK_OVERRIDE bit to disable automatic control of the PMIC_ON_REQ pin. Then, I attempted to drive the pin high/low using the PK_EN bit. However, it didn’t work as expected.

Is there a way to manually control the PMIC_ON_REQ pin?
Re: iMXRT1171 - Waking Up from SNVS Sleep Using SNVS SRTC Alarm

After configuring the SRTC, adding a short delay block resolved the issue.

Re: iMXRT1171 - Waking Up from SNVS Sleep Using SNVS SRTC Alarm

Hello @BRK_Y,

Low power management on the RT1170 is a bit more complex. It is possible to wake up the device through the RTC, which is controlled by the SNVS module.
For more detailed information about low power modes, you can refer to this app note that explains these modes in depth, along with all the considerations required to enter low power states.
Additionally, the SDK (version 25.09) provides examples demonstrating the use of power modes, depending on the power source you are currently using, as shown in the following image:

Habib_MS_0-1761169260184.png

I highly recommend reviewing the README file included with these examples to understand how they work.

BR
Habib

タグ(1)
評価なし
バージョン履歴
最終更新日:
‎11-20-2025 10:51 AM
更新者: