I tried to add a test that force the system into deep sleep mode forever, but not sure if CyGlobalIntDisable disable the different wakeup causes from deep sleep?
The code is only for measurement purpose and would require a reset/power cycle.
CySysWdtDisable(CY_SYS_WDT_COUNTER0_MASK | CY_SYS_WDT_COUNTER1_MASK | CY_SYS_WDT_COUNTER2_MASK);
uint8_t isr_stat = CyEnterCriticalSection();
Yes, CyGlobalIntDisable will disable all the wakeup interrupt causes.
Your code should work fine. Please attach your project if you face any issues and let us know the problems faced.