CE210290_CapSense_P4_Ganged_Sensor not sensing touch after deep sleep

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
user_284076
Level 3
Level 3
10 replies posted 10 likes given 5 replies posted

I have CY8CKIT-145-40XX with me, I ported  CE210290_CapSense_P4_Ganged_Sensor example to CY8CKIT-145-40XX just changed slider GPIO  and also enabled Software UART Tx for LOG data to PC using CY8CKIT-145-40XX's UART-USB capabilities. all code is same as it was in example.

If comment out EnterDeepSleepMode(); everything works fine and when uncommented  CapSense_IsWidgetActive(CapSense_GANGED_SENSOR_WDGT_ID); never returns active and touch is not working.

I am attaching code for the same.

Same logic for Look for touch and Active mode of scan we need in our product but same problem faced in that code also so I retested with this example code so anyone from cypress can help me with kit and this example code

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
BragadeeshV
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hi user_284076​,

The issue is that the WDT is not configured correctly for the selected device. Therefore the device was never waking up from deep sleep by WDT.

Changes to be made:

void InitializeWdt(uint32 wdtValue)

{

    WDT_Interrupt_StartEx(Wdt_Isr);

    CySysWdtWriteMatch(CySysWdtReadMatch() + wdtValue);

     

        /* Enable WDT interrupt in SRSS INTR mask register */

    CySysWdtUnmaskInterrupt();

}

  void Wdt_Isr(void)

    {

        CySysWdtClearInterrupt();

        CySysWdtWriteMatch((uint16)CySysWdtReadMatch() + wdtMatchValue);

    }

For more information refer to the device specific system reference guide for more information on how to setup WDT.

I'm adding the modified project file. Please let us know if it works for you.

Regards,

Bragadeesh

Regards,
Bragadeesh

View solution in original post

1 Reply
lock attach
Attachments are accessible only for community members.
BragadeeshV
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hi user_284076​,

The issue is that the WDT is not configured correctly for the selected device. Therefore the device was never waking up from deep sleep by WDT.

Changes to be made:

void InitializeWdt(uint32 wdtValue)

{

    WDT_Interrupt_StartEx(Wdt_Isr);

    CySysWdtWriteMatch(CySysWdtReadMatch() + wdtValue);

     

        /* Enable WDT interrupt in SRSS INTR mask register */

    CySysWdtUnmaskInterrupt();

}

  void Wdt_Isr(void)

    {

        CySysWdtClearInterrupt();

        CySysWdtWriteMatch((uint16)CySysWdtReadMatch() + wdtMatchValue);

    }

For more information refer to the device specific system reference guide for more information on how to setup WDT.

I'm adding the modified project file. Please let us know if it works for you.

Regards,

Bragadeesh

Regards,
Bragadeesh