Power Management_Hibernate trying with watchdog timer

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi All,

I have tried the power management_Hibernate code example for psoc5 lp family. I am using it in my Cy8c5888LTI-LP097 controller. I am able to go in hibernate mode without watchdog reset but when i try the same code example with watchdog timer, it is not working with it.. I already tried

        CyWdtStart(CYWDT_1024_TICKS,CYWDT_LPMODE_DISABLED); and

        CyWdtStart(CYWDT_1024_TICKS,CYWDT_LPMODE_MAXINTER);

API so that it will stop the watchdog in hibernate and sleep mode but it is not working in my case.

this is my case i am clearing WDT before entering hibernate mode.

if(Pin_1_Read() == 0) {

            /* Turn off LED to indicate Hibernate mode */

            LED_P1_2_Write(0u);

            CyWdtClear();

            /* Prepare system clocks for the Hibernate mode */

            CyPmSaveClocks();

           

            /* Switch to the Hibernate Mode */

            CyPmHibernate();

            /* Restore clocks' configuration */

            CyPmRestoreClocks();

            LED_P1_2_Write(1u);

        }

Any suggestion in this case.

Thanks in advance...

Regards
Abhishek

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
ShanmathiN_06
Employee
Employee
100 replies posted 50 replies posted 25 replies posted

Hello Abhishek,

Could you please check the attached project?

I programmed the attached project in CY8CKIT-050 and at my end, WDT is not reset and is disabled in hibernate mode as expected.

Thanks,
Shanmathi

View solution in original post

0 Likes
3 Replies