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 for the reply and you time. I already tried this and it is working fine with the code example but when I tried it in my code in which i have RTOS, USB Uart,scheduler but it is not working in my code
Below is my function in which i am changing the bode:
/* Prepare system clocks for the Hibernate mode */
/* Switch to the Hibernate Mode */
/* Restore clocks' configuration */
I am doing software reset here because if I don't do it my code stuck here and I am not able to use my console. I know I should not do reset because in hibernate code starts from the same place where it stops but not in my case there is something I missing. I not able to get that. Please have a look on my function which I shared above and please help me. Do I need to stop something else before moving to hibernate mode.
1 of 1 people found this helpful
Could you please elaborate more on the issue you are facing?
I assume the following. WDT is disabled in hibernate mode. But in your code, WDT seems to reset the system before the system even enters hibernate mode.
If that is the case, you can clear the WDT frequently in a high priority task, so that WDt does not reset the system.
Is your system entering hibernate mode? Please confirm if you are checking the current consumed.
Also, what is the expected scenario after exiting from hibernate mode? What is the outcome in your project and code example, at your end?