9 Replies Latest reply on Jan 30, 2017 4:01 PM by grrasic_1882326

    GPIO not waking up from DeepSleep

    grrasic_1882326

      Using EZ-BLE 4100 and GPIO P1(0) configured as pulled-down normally-low input with interrupt set to rising edge and attached to an isr component which is set to DERIVED, the device will not wakeup after going into deepsleep mode. In the debugger it works fine!

         

      PSoC 4.0 Code segment:

         

          isr_SW_Enable();
          SW_ClearInterrupt();
          isr_SW_ClearPending();
          isr_SW_StartEx(&PowerOn);
          CyGlobalIntEnable;
          CySysPmDeepSleep();

         

      I've tried changing the input to pulled up with falling edge and moving it to a different GPIO, P3(5), with no difference. Why does the same code work without any problem in the debugger but not when programmed as stand-alone?

         

      ps I've decided to use deepsleep instead of the preferred hibernate due to the same problem I had with detecting the pin. What goes here?

         

      Rick