CYUSB3065 video with watchdog timer

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

cross mob
Anonymous
Not applicable

Is it possible to use watchdog timer with USB 3.0 video streaming?

   

The watchdog can be successfully initialized but it cannot be cleared. When our device is connected to the USB 2 port then we can clear the watchdog timer to prevent watchdog reset.

   

/* Entry function for the UVC application thread. */
    void
esUVCUvcAppThread_Entry (
        uint32_t input)
{
    uint16_t wakeReason;
    uint32_t eventFlag;

   

    /* Initialize the Debug Module */
    esUVCUvcApplnDebugInit();

   

    /* Initialize the UVC Application */
    esUVCUvcApplnInit();

   

    for (;;)
    {

   

        CyU3PSysWatchDogClear ();

   

        CyU3PEventGet (&glTimerEvent,ES_USB_SUSP_EVENT_FLAG|ES_TIMER_RESET_EVENT, CYU3P_EVENT_OR_CLEAR, &eventFlag, CYU3P_WAIT_FOREVER);

   

With kind regards,

   

Marat

0 Likes
2 Replies
Anonymous
Not applicable

Hi,

   

Yes, it is possible to use watchdog for USB 3 Streaming also.

   

Can you increase the timer of the watchdog and see? Please make sure you call the Clear API before the watchdog time.

   

Regards,

   

- Madhu Sudhan

0 Likes
Anonymous
Not applicable

I increased it up to 120s (CyU3PSysWatchDogConfigure (CyTrue, 120000);).

   

CyU3PSysWatchDogClear () is defenitly called in for (;;) loop. But the unit goes through watchdog reset after 2min.

   

We don't observe the watchdog reset when camera board is attached to USB 2 port.

   

With kind regards,

   

Marat.

0 Likes