This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/AM4376: USB Speed Setting Issue

Part Number: AM4376

Tool/software: TI-RTOS

Hi Sir

we used AM4376 with TI RTOS SDK "processor_sdk_rtos_am437x_3_02_00_05"

Currently we have some issues in USB function.

Do you know how to set USB speed in full speed mode ? 

thanks for reply.

BR

Yimin

  • The RTOS team have been notified. They will respond here.
  • Hi,

    Can you let us know do you use any TI EVM or your own board? Do you use USB host mode or device mode? The host checks whether D+ or D- have pullup resisitor by a protocol namely chirping to determine the device is full speed or high speed.

    Regards, Eric
  • Hi Sir

    It is customized MB and we used usb device mode.
    Is modifying SW configuration available to change USB speed ? if available, which API can be called to use ?

    thanks for your reply.

    BR
    Yimin
  • Hi,

    There is a setting during device setup that tell the AM437 USB IP that we want the device to be FS or HS. This is the line that do that said setting:

    /* Connect as high speed device */
    HW_WR_FIELD32(dwc3->baseAddr + DWC_USB_DCFG, DWC_USB_DCFG_DEVSPD,
    DWC_USB_DCFG_DEVSPD_HS);

    Also, the max USB packet size is 64 instead of 512 in #define USB_PACKET_LENGTH 512

    You need to change those for FS and rebuild USB library.

    Our driver is optimized for HS and thus might have some settings that are not compatible when forced in FS mode. Hope that helps.

    Regards, Eric