USB Host Suspend/Resume Interrupt

USB Host Suspend/Resume Interrupt

Home Forums USB Device & Host USB Host Suspend/Resume Interrupt

This topic contains 3 replies, has 2 voices, and was last updated by  Jerome Rancourt 1 week, 6 days ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #27523

    Jerome Rancourt
    Participant

    Hi,

    We are having issues setting up the USB suspend/resume interrupt on a Renesas RX63N. We first thought that the interrupt was enabled by default, but it never triggered. We tried to manually enable Renesas’s registers regarding this interrupt, but the behavior was the same. This shows us that we do not completely understand the driver and how does the USB ISR Handle manages the interrupts. The deepest we have access to is this function :

    static void USBH_RX600_BSP_IntHandler (void)
    {
    OSIntEnter(); /* Notify uC/OS-III or uCOS-II of ISR entry */
    CPU_INT_GLOBAL_EN();
    if (USBH_RX600_BSP_ISR_Ptr != (CPU_FNCT_PTR)0) {
    USBH_RX600_BSP_ISR_Ptr((void *)USBH_RX600_DrvPtr);
    }
    OSIntExit(); /* Notify uC/OS-III or uCOS-II of ISR exit */
    }

    We find it hard to get how does this function manages the routines.

    Should the Suspend/resume interrupt work right away with the driver you provide?
    Are there any registers or parameters to change?

    Let us know what you think.

    Thank you very much!

    #27526

    Janos Magasrevy
    Keymaster

    Hi Jerome,

    You seem to have access to just the BSP level. If you don’t see the file usbh_hcd_rx600.c then you need to verify that you own a license for uC/USB-Host.

    The following USB interrupts get enabled in USBH_RX600_Start() in usbh_hcd_rx600.c:

    INTENB0 = VBSE | RSME | BEMPE | BRDYE;
    INTENB1 = OVRCRE | BCHGE | ATTCHE | SIGNE | SACKE;

    Regards,
    Janos

    #27528

    Jerome Rancourt
    Participant

    Hi Janos,

    We have the usbh_hcd_rx600.c file and I confirm that the interrupts you mentionned are enabled in this file. Do we need to enable other bits/registers in order to make use of the usb suspend/resume fonctionality?
    For example :
    DVSTCTR0 = RWUPE
    DPSIER2 = DUSBIE

    Let me know what you think!

    Best regards,
    Jerome

    #27568

    Jerome Rancourt
    Participant

    Hi Janos,

    Actually we are having trouble understanding if remote wakeup is enabled and supported by the driver µC-USB-Host-V3. Since the MCU is used as USB host, it will not see the resume event if remote wakeup is not enabled.
    Could you please confirm if it is supported? If not, we would need your help to set them right.

    Thanks!

    Best regards,
    Jerome

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

View the complete site map

x
Loading...