I am trying to enter the Hibernate mode and wake up when a button is pressed. I am able to enter the Hibernate mode using CyPmHibernate(). Occasionally I can wake my device up using a pin interrupt but sometimes it fails to work. Here is my interrupt code where I simply reset the software code when the wake up button is pressed.