The CySysPmHibernate API always forces the CPU to go into hibernate and the wakeup is through GPIO Interrupt. The wakeup actually results in a reset.
Can you please debug your code to see if it is going somewhere else?
- Madhu Sudhan
The blue LED is lid for 10 s before restarting program. It does not happen often, and I don't know what triggering it (maybe debugging):
// (the program actually slips through here)
// blue LED on for 10 s
Pin_LED_blue_Write( 0xff );
CyDelay( 10 * 1000 );
// prevent hang at end of 'void Start_c(void)'