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.

CC2642R: Qustions about shutdown and reset

Part Number: CC2642R

My customer has some questions about CC2642's shutdown:

1. In the definition of PowerCtrlPadSleepDisable(), there is a sentence which reads the AON_RTC_O_SYNC register. What is the purpose of this call?

__STATIC_INLINE void
PowerCtrlPadSleepDisable(void)
{
    HWREG(AON_PMCTL_BASE + AON_PMCTL_O_SLEEPCTL) = 1;
    HWREG(AON_RTC_BASE + AON_RTC_O_SYNC);
}

2. Where can I find the description of AON_PMCTL register? I cannot find it in the TRM.

3. The definition of RSTSRC_WAKEUP_FROM_SHUTDOWN and RSTSRC_WAKEUP_FROM_TCK_NOISE is a little confusing, can you elaborate on what is the meaning of these macros?

#define RSTSRC_WAKEUP_FROM_SHUTDOWN  ((( AON_PMCTL_RESETCTL_RESET_SRC_M         ) >> ( AON_PMCTL_RESETCTL_RESET_SRC_S )) + 1 )
#define RSTSRC_WAKEUP_FROM_TCK_NOISE ((( AON_PMCTL_RESETCTL_RESET_SRC_M         ) >> ( AON_PMCTL_RESETCTL_RESET_SRC_S )) + 2 )

Best regards,

Shuyang

  • Hello Shuyang,

    Thank you for your question.

    The purpose of AON_RTC_O_SYNC register is for synchronizing between MCU and entire AON domain.

    You can find the AON_PMCTL register description in the driver library here.

    The RSTSRC_WAKEUP_FROM_TCK_NOISE is when the device woke up from noise on the JTAG TCK line, and RSTSRC_WAKEUP_FROM_SHUTDOWN is when the device woke up from shutdown due to an IO event (more info here)

    Here is the link to the driver library overview which should be helpful to have as a lookup.

    Thanks,
    Alex