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.

DM3730 MUSB

Other Parts Discussed in Thread: DM3730

Hi,

We are using MUSB present on DM3730. It is configured for OTG functionality. When MUSB is operating as peripheral if we perform Bulk In transfer the TxPacketReady bit never gets cleared and no interrupt is generated on this endpoint. Hence we are stuck with using the MUSB in peripheral mode.

Can you please suggest how to debug this and when the Bulk In endpoint will not be able to make successful transfer?

Regards,

GSR

  • Hi GSR,

    I recommend you as first step of debugging the issue to post the log of logcat. The next step of debugging will be adding of some log messages in the source. It would be useful for me to specify are using custom board or some TI's development board and the software distribution and kernel version which you are using for further investigation of the issue.

    BR

    Tsvetolin Shulev

  • Hi Tsvetolin Shulev,

    Thank You for the reply.

    We are using a customized hardware. I will post the register dump as soon as possible as we are not using Linux.

    Mean while please do let me know if you would like to see any specific registers other than the USB OTG Controller registers.

    Regards,

    GSR

  • OK, let's start with USB OTG controller registers.

    BR

    Tsvetolin Shulev

  • Hi Tsvetolin Shulev,

    Below is the dump that I have when transfer against IN Transfer Is failed on EP1.

    FADDR:0x01 Power:0x70, IntrTx:0x0000, IntrRx:0x0000
    IntrTxe:0xffff IntrRxe:0xfffe IntrUsb:0x08 IntrUSBE:0xf7
    Frm:0x05b1 Idx:0x02 TstMode:0x00
    DevCtl:0x99 VCtlSts:0x00000000 HwVer:0x0720
    EPInfo:0xff RAMInfo:0x8c LinkInfo:0x5c VPLen:0x3c
    HS_EOF1:0x80 FS_EOF1:0x77 LS_EOF1:0x72
    TxMaxp0:0x0000 PECsr0:0x0000 RxMaxp:0x0000 Cnt0:0x0000 CfgData:0xde
    EP:1 TxMaxp:0x0200 PECsr:0x2003 RxMaxp:0x0000 RxCSR:0x0000 RxCnt:0x0000
    EP:2 TxMaxp:0x0000 PECsr:0x0000 RxMaxp:0x0200 RxCSR:0x0000 RxCnt:0x0000
    Otg Rev:0x00000040 SysConf:0x00002011 SysSts:0x00000001 IntrfSel:0x00000001 SimEn:0x00000000 FrcdStdby:0x00000001

    The description of the registers is from the source code as we do not have access to OTG TRM.

    Thank You for your time.

    Regards,

    GSR

  • Hi GSR,

    Could you check whether your USB controller is configured as description in the TRM section 22.1.5.4.3 High-Speed USB Controller in Peripheral Mode?

    http://www.ti.com/lit/ug/sprugn4r/sprugn4r.pdf

    I have need of some additional information. Could you dump 256 bytes of the RAM starting from physical address 0x480ab000 when the musb otg is already configured (Paste the dump in binary file if it is possible).

    BR

    Tsvetolin Shulev

  • Hi Tsvetolin Shulev,

    We are following the initialization sequence from the section 22.1.5.4.4 as we have to use the OTG port for Host and Device functionality.

    The register dump for the first 256 bytes from 0x480AB000 is given below.

    PhyAddr:0x480ab000 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab001 Hex:0x60 Bin:01100000
    PhyAddr:0x480ab002 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab003 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab004 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab005 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab006 Hex:0xff Bin:11111111
    PhyAddr:0x480ab007 Hex:0xff Bin:11111111
    PhyAddr:0x480ab008 Hex:0xfe Bin:11111110
    PhyAddr:0x480ab009 Hex:0xff Bin:11111111
    PhyAddr:0x480ab00a Hex:0x00 Bin:00000000
    PhyAddr:0x480ab00b Hex:0xf7 Bin:11110111
    PhyAddr:0x480ab00c Hex:0x00 Bin:00000000
    PhyAddr:0x480ab00d Hex:0x00 Bin:00000000
    PhyAddr:0x480ab00e Hex:0x0f Bin:00001111
    PhyAddr:0x480ab00f Hex:0x00 Bin:00000000
    PhyAddr:0x480ab010 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab011 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab012 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab013 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab014 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab015 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab016 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab017 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab018 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab019 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab01a Hex:0x00 Bin:00000000
    PhyAddr:0x480ab01b Hex:0x00 Bin:00000000
    PhyAddr:0x480ab01c Hex:0x00 Bin:00000000
    PhyAddr:0x480ab01d Hex:0x00 Bin:00000000
    PhyAddr:0x480ab01e Hex:0x00 Bin:00000000
    PhyAddr:0x480ab01f Hex:0x33 Bin:00110011
    PhyAddr:0x480ab020 Hex:0xc9 Bin:11101001
    PhyAddr:0x480ab021 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab022 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab023 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab024 Hex:0x7a Bin:01111010
    PhyAddr:0x480ab025 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab026 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab027 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab028 Hex:0x4f Bin:01001111
    PhyAddr:0x480ab029 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab02a Hex:0x00 Bin:00000000
    PhyAddr:0x480ab02b Hex:0x00 Bin:00000000
    PhyAddr:0x480ab02c Hex:0x52 Bin:01010010
    PhyAddr:0x480ab02d Hex:0x00 Bin:00000000
    PhyAddr:0x480ab02e Hex:0x00 Bin:00000000
    PhyAddr:0x480ab02f Hex:0x00 Bin:00000000
    PhyAddr:0x480ab030 Hex:0x7a Bin:01111010
    PhyAddr:0x480ab031 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab032 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab033 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab034 Hex:0x39 Bin:00111001
    PhyAddr:0x480ab035 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab036 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab037 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab038 Hex:0xae Bin:10101110
    PhyAddr:0x480ab039 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab03a Hex:0x00 Bin:00000000
    PhyAddr:0x480ab03b Hex:0x00 Bin:00000000
    PhyAddr:0x480ab03c Hex:0x32 Bin:00110010
    PhyAddr:0x480ab03d Hex:0x00 Bin:00000000
    PhyAddr:0x480ab03e Hex:0x00 Bin:00000000
    PhyAddr:0x480ab03f Hex:0x00 Bin:00000000
    PhyAddr:0x480ab040 Hex:0x8d Bin:10001101
    PhyAddr:0x480ab041 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab042 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab043 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab044 Hex:0x61 Bin:01100001
    PhyAddr:0x480ab045 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab046 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab047 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab048 Hex:0xbd Bin:10111101
    PhyAddr:0x480ab049 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab04a Hex:0x00 Bin:00000000
    PhyAddr:0x480ab04b Hex:0x00 Bin:00000000
    PhyAddr:0x480ab04c Hex:0xcc Bin:11001100
    PhyAddr:0x480ab04d Hex:0x00 Bin:00000000
    PhyAddr:0x480ab04e Hex:0x00 Bin:00000000
    PhyAddr:0x480ab04f Hex:0x00 Bin:00000000
    PhyAddr:0x480ab050 Hex:0x2c Bin:00101100
    PhyAddr:0x480ab051 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab052 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab053 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab054 Hex:0x72 Bin:01110010
    PhyAddr:0x480ab055 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab056 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab057 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab058 Hex:0x8c Bin:10001100
    PhyAddr:0x480ab059 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab05a Hex:0x00 Bin:00000000
    PhyAddr:0x480ab05b Hex:0x00 Bin:00000000
    PhyAddr:0x480ab05c Hex:0x19 Bin:00011001
    PhyAddr:0x480ab05d Hex:0x00 Bin:00000000
    PhyAddr:0x480ab05e Hex:0x00 Bin:00000000
    PhyAddr:0x480ab05f Hex:0x00 Bin:00000000
    PhyAddr:0x480ab060 Hex:0x80 Bin:10000000
    PhyAddr:0x480ab061 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab062 Hex:0x04 Bin:00000100
    PhyAddr:0x480ab063 Hex:0x04 Bin:00000100
    PhyAddr:0x480ab064 Hex:0xa8 Bin:10101000
    PhyAddr:0x480ab065 Hex:0x07 Bin:00000111
    PhyAddr:0x480ab066 Hex:0xb8 Bin:10111000
    PhyAddr:0x480ab067 Hex:0x07 Bin:00000111
    PhyAddr:0x480ab068 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab069 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab06a Hex:0x00 Bin:00000000
    PhyAddr:0x480ab06b Hex:0x00 Bin:00000000
    PhyAddr:0x480ab06c Hex:0x20 Bin:00100000
    PhyAddr:0x480ab06d Hex:0x07 Bin:00000111
    PhyAddr:0x480ab06e Hex:0x00 Bin:00000000
    PhyAddr:0x480ab06f Hex:0x00 Bin:00000000
    PhyAddr:0x480ab070 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab071 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab072 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab073 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab074 Hex:0x40 Bin:01000000
    PhyAddr:0x480ab075 Hex:0x05 Bin:00000101
    PhyAddr:0x480ab076 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab077 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab078 Hex:0xff Bin:11111111
    PhyAddr:0x480ab079 Hex:0x8c Bin:10001100
    PhyAddr:0x480ab07a Hex:0x5c Bin:01011100
    PhyAddr:0x480ab07b Hex:0x3c Bin:00111100
    PhyAddr:0x480ab07c Hex:0x80 Bin:10000000
    PhyAddr:0x480ab07d Hex:0x77 Bin:01110111
    PhyAddr:0x480ab07e Hex:0x72 Bin:01110010
    PhyAddr:0x480ab07f Hex:0x00 Bin:00000000
    PhyAddr:0x480ab080 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab081 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab082 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab083 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab084 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab085 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab086 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab087 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab088 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab089 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab08a Hex:0x00 Bin:00000000
    PhyAddr:0x480ab08b Hex:0x00 Bin:00000000
    PhyAddr:0x480ab08c Hex:0x00 Bin:00000000
    PhyAddr:0x480ab08d Hex:0x00 Bin:00000000
    PhyAddr:0x480ab08e Hex:0x00 Bin:00000000
    PhyAddr:0x480ab08f Hex:0x00 Bin:00000000
    PhyAddr:0x480ab090 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab091 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab092 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab093 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab094 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab095 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab096 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab097 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab098 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab099 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab09a Hex:0x00 Bin:00000000
    PhyAddr:0x480ab09b Hex:0x00 Bin:00000000
    PhyAddr:0x480ab09c Hex:0x00 Bin:00000000
    PhyAddr:0x480ab09d Hex:0x00 Bin:00000000
    PhyAddr:0x480ab09e Hex:0x00 Bin:00000000
    PhyAddr:0x480ab09f Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0a0 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0a1 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0a2 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0a3 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0a4 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0a5 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0a6 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0a7 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0a8 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0a9 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0aa Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0ab Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0ac Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0ad Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0ae Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0af Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0b0 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0b1 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0b2 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0b3 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0b4 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0b5 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0b6 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0b7 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0b8 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0b9 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0ba Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0bb Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0bc Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0bd Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0be Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0bf Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0c0 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0c1 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0c2 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0c3 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0c4 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0c5 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0c6 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0c7 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0c8 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0c9 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0ca Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0cb Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0cc Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0cd Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0ce Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0cf Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0d0 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0d1 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0d2 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0d3 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0d4 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0d5 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0d6 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0d7 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0d8 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0d9 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0da Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0db Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0dc Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0dd Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0de Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0df Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0e0 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0e1 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0e2 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0e3 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0e4 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0e5 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0e6 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0e7 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0e8 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0e9 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0ea Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0eb Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0ec Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0ed Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0ee Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0ef Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0f0 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0f1 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0f2 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0f3 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0f4 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0f5 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0f6 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0f7 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0f8 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0f9 Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0fa Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0fb Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0fc Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0fd Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0fe Hex:0x00 Bin:00000000
    PhyAddr:0x480ab0ff Hex:0x00 Bin:00000000

    Regards,

    GSR

  • Hi GSR,

    I'm sorry but I have missed to explain you that I have need of dump when the problem is happen. Could you make a new one when the problem is happen? As I analyze the dump it is taken when the USB cable is unplugged. Am I correct?

    BR

    Tsvetolin Shulev

  • Hello Tsvetolin Shulev,

    The register dump when the problem occurs is given below

    PA:0x480ab000 HV:0x01 B:00000001
    PA:0x480ab001 HV:0x70 B:01110000
    PA:0x480ab002 HV:0x00 B:00000000
    PA:0x480ab003 HV:0x00 B:00000000
    PA:0x480ab004 HV:0x00 B:00000000
    PA:0x480ab005 HV:0x00 B:00000000
    PA:0x480ab006 HV:0xff B:11111111
    PA:0x480ab007 HV:0xff B:11111111
    PA:0x480ab008 HV:0xfe B:11111110
    PA:0x480ab009 HV:0xff B:11111111
    PA:0x480ab00a HV:0x08 B:00001000
    PA:0x480ab00b HV:0xf7 B:11110111
    PA:0x480ab00c HV:0x28 B:00101000
    PA:0x480ab00d HV:0x00 B:00000000
    PA:0x480ab00e HV:0x02 B:00000010
    PA:0x480ab00f HV:0x00 B:00000000
    PA:0x480ab010 HV:0x00 B:00000000
    PA:0x480ab011 HV:0x00 B:00000000
    PA:0x480ab012 HV:0x00 B:00000000
    PA:0x480ab013 HV:0x00 B:00000000
    PA:0x480ab014 HV:0x00 B:00000000
    PA:0x480ab015 HV:0x02 B:00000010
    PA:0x480ab016 HV:0x00 B:00000000
    PA:0x480ab017 HV:0x00 B:00000000
    PA:0x480ab018 HV:0x00 B:00000000
    PA:0x480ab019 HV:0x00 B:00000000
    PA:0x480ab01a HV:0x00 B:00000000
    PA:0x480ab01b HV:0x00 B:00000000
    PA:0x480ab01c HV:0x00 B:00000000
    PA:0x480ab01d HV:0x00 B:00000000
    PA:0x480ab01e HV:0x00 B:00000000
    PA:0x480ab01f HV:0x55 B:01010101
    PA:0x480ab020 HV:0x21 B:00100001
    PA:0x480ab021 HV:0x00 B:00000000
    PA:0x480ab022 HV:0x00 B:00000000
    PA:0x480ab023 HV:0x00 B:00000000
    PA:0x480ab024 HV:0xf5 B:11110101
    PA:0x480ab025 HV:0x00 B:00000000
    PA:0x480ab026 HV:0x00 B:00000000
    PA:0x480ab027 HV:0x00 B:00000000
    PA:0x480ab028 HV:0xd3 B:11010011
    PA:0x480ab029 HV:0x00 B:00000000
    PA:0x480ab02a HV:0x00 B:00000000
    PA:0x480ab02b HV:0x00 B:00000000
    PA:0x480ab02c HV:0xcb B:11001011
    PA:0x480ab02d HV:0x00 B:00000000
    PA:0x480ab02e HV:0x00 B:00000000
    PA:0x480ab02f HV:0x00 B:00000000
    PA:0x480ab030 HV:0x09 B:00001001
    PA:0x480ab031 HV:0x00 B:00000000
    PA:0x480ab032 HV:0x00 B:00000000
    PA:0x480ab033 HV:0x00 B:00000000
    PA:0x480ab034 HV:0xbd B:10111101
    PA:0x480ab035 HV:0x00 B:00000000
    PA:0x480ab036 HV:0x00 B:00000000
    PA:0x480ab037 HV:0x00 B:00000000
    PA:0x480ab038 HV:0x77 B:01110111
    PA:0x480ab039 HV:0x00 B:00000000
    PA:0x480ab03a HV:0x00 B:00000000
    PA:0x480ab03b HV:0x00 B:00000000
    PA:0x480ab03c HV:0x9d B:10011101
    PA:0x480ab03d HV:0x00 B:00000000
    PA:0x480ab03e HV:0x00 B:00000000
    PA:0x480ab03f HV:0x00 B:00000000
    PA:0x480ab040 HV:0x05 B:00000101
    PA:0x480ab041 HV:0x00 B:00000000
    PA:0x480ab042 HV:0x00 B:00000000
    PA:0x480ab043 HV:0x00 B:00000000
    PA:0x480ab044 HV:0x65 B:01100101
    PA:0x480ab045 HV:0x00 B:00000000
    PA:0x480ab046 HV:0x00 B:00000000
    PA:0x480ab047 HV:0x00 B:00000000
    PA:0x480ab048 HV:0xfd B:11111101
    PA:0x480ab049 HV:0x00 B:00000000
    PA:0x480ab04a HV:0x00 B:00000000
    PA:0x480ab04b HV:0x00 B:00000000
    PA:0x480ab04c HV:0x25 B:00100101
    PA:0x480ab04d HV:0x00 B:00000000
    PA:0x480ab04e HV:0x00 B:00000000
    PA:0x480ab04f HV:0x00 B:00000000
    PA:0x480ab050 HV:0xaa B:10101010
    PA:0x480ab051 HV:0x00 B:00000000
    PA:0x480ab052 HV:0x00 B:00000000
    PA:0x480ab053 HV:0x00 B:00000000
    PA:0x480ab054 HV:0xc5 B:11000101
    PA:0x480ab055 HV:0x00 B:00000000
    PA:0x480ab056 HV:0x00 B:00000000
    PA:0x480ab057 HV:0x00 B:00000000
    PA:0x480ab058 HV:0x05 B:00000101
    PA:0x480ab059 HV:0x00 B:00000000
    PA:0x480ab05a HV:0x00 B:00000000
    PA:0x480ab05b HV:0x00 B:00000000
    PA:0x480ab05c HV:0xee B:11101110
    PA:0x480ab05d HV:0x00 B:00000000
    PA:0x480ab05e HV:0x00 B:00000000
    PA:0x480ab05f HV:0x00 B:00000000
    PA:0x480ab060 HV:0x99 B:10011001
    PA:0x480ab061 HV:0x00 B:00000000
    PA:0x480ab062 HV:0x06 B:00000110
    PA:0x480ab063 HV:0x06 B:00000110
    PA:0x480ab064 HV:0x88 B:10001000
    PA:0x480ab065 HV:0x00 B:00000000
    PA:0x480ab066 HV:0x00 B:00000000
    PA:0x480ab067 HV:0x01 B:00000001
    PA:0x480ab068 HV:0x00 B:00000000
    PA:0x480ab069 HV:0x00 B:00000000
    PA:0x480ab06a HV:0x00 B:00000000
    PA:0x480ab06b HV:0x00 B:00000000
    PA:0x480ab06c HV:0x20 B:00100000
    PA:0x480ab06d HV:0x07 B:00000111
    PA:0x480ab06e HV:0x00 B:00000000
    PA:0x480ab06f HV:0x00 B:00000000
    PA:0x480ab070 HV:0x00 B:00000000
    PA:0x480ab071 HV:0x00 B:00000000
    PA:0x480ab072 HV:0x00 B:00000000
    PA:0x480ab073 HV:0x00 B:00000000
    PA:0x480ab074 HV:0x40 B:01000000
    PA:0x480ab075 HV:0x05 B:00000101
    PA:0x480ab076 HV:0x00 B:00000000
    PA:0x480ab077 HV:0x00 B:00000000
    PA:0x480ab078 HV:0xff B:11111111
    PA:0x480ab079 HV:0x8c B:10001100
    PA:0x480ab07a HV:0x5c B:01011100
    PA:0x480ab07b HV:0x3c B:00111100
    PA:0x480ab07c HV:0x80 B:10000000
    PA:0x480ab07d HV:0x77 B:01110111
    PA:0x480ab07e HV:0x72 B:01110010
    PA:0x480ab07f HV:0x00 B:00000000
    PA:0x480ab080 HV:0x00 B:00000000
    PA:0x480ab081 HV:0x00 B:00000000
    PA:0x480ab082 HV:0x00 B:00000000
    PA:0x480ab083 HV:0x00 B:00000000
    PA:0x480ab084 HV:0x00 B:00000000
    PA:0x480ab085 HV:0x00 B:00000000
    PA:0x480ab086 HV:0x00 B:00000000
    PA:0x480ab087 HV:0x00 B:00000000
    PA:0x480ab088 HV:0x00 B:00000000
    PA:0x480ab089 HV:0x00 B:00000000
    PA:0x480ab08a HV:0x00 B:00000000
    PA:0x480ab08b HV:0x00 B:00000000
    PA:0x480ab08c HV:0x00 B:00000000
    PA:0x480ab08d HV:0x00 B:00000000
    PA:0x480ab08e HV:0x00 B:00000000
    PA:0x480ab08f HV:0x00 B:00000000
    PA:0x480ab090 HV:0x00 B:00000000
    PA:0x480ab091 HV:0x00 B:00000000
    PA:0x480ab092 HV:0x00 B:00000000
    PA:0x480ab093 HV:0x00 B:00000000
    PA:0x480ab094 HV:0x00 B:00000000
    PA:0x480ab095 HV:0x00 B:00000000
    PA:0x480ab096 HV:0x00 B:00000000
    PA:0x480ab097 HV:0x00 B:00000000
    PA:0x480ab098 HV:0x00 B:00000000
    PA:0x480ab099 HV:0x00 B:00000000
    PA:0x480ab09a HV:0x00 B:00000000
    PA:0x480ab09b HV:0x00 B:00000000
    PA:0x480ab09c HV:0x00 B:00000000
    PA:0x480ab09d HV:0x00 B:00000000
    PA:0x480ab09e HV:0x00 B:00000000
    PA:0x480ab09f HV:0x00 B:00000000
    PA:0x480ab0a0 HV:0x00 B:00000000
    PA:0x480ab0a1 HV:0x00 B:00000000
    PA:0x480ab0a2 HV:0x00 B:00000000
    PA:0x480ab0a3 HV:0x00 B:00000000
    PA:0x480ab0a4 HV:0x00 B:00000000
    PA:0x480ab0a5 HV:0x00 B:00000000
    PA:0x480ab0a6 HV:0x00 B:00000000
    PA:0x480ab0a7 HV:0x00 B:00000000
    PA:0x480ab0a8 HV:0x00 B:00000000
    PA:0x480ab0a9 HV:0x00 B:00000000
    PA:0x480ab0aa HV:0x00 B:00000000
    PA:0x480ab0ab HV:0x00 B:00000000
    PA:0x480ab0ac HV:0x00 B:00000000
    PA:0x480ab0ad HV:0x00 B:00000000
    PA:0x480ab0ae HV:0x00 B:00000000
    PA:0x480ab0af HV:0x00 B:00000000
    PA:0x480ab0b0 HV:0x00 B:00000000
    PA:0x480ab0b1 HV:0x00 B:00000000
    PA:0x480ab0b2 HV:0x00 B:00000000
    PA:0x480ab0b3 HV:0x00 B:00000000
    PA:0x480ab0b4 HV:0x00 B:00000000
    PA:0x480ab0b5 HV:0x00 B:00000000
    PA:0x480ab0b6 HV:0x00 B:00000000
    PA:0x480ab0b7 HV:0x00 B:00000000
    PA:0x480ab0b8 HV:0x00 B:00000000
    PA:0x480ab0b9 HV:0x00 B:00000000
    PA:0x480ab0ba HV:0x00 B:00000000
    PA:0x480ab0bb HV:0x00 B:00000000
    PA:0x480ab0bc HV:0x00 B:00000000
    PA:0x480ab0bd HV:0x00 B:00000000
    PA:0x480ab0be HV:0x00 B:00000000
    PA:0x480ab0bf HV:0x00 B:00000000
    PA:0x480ab0c0 HV:0x00 B:00000000
    PA:0x480ab0c1 HV:0x00 B:00000000
    PA:0x480ab0c2 HV:0x00 B:00000000
    PA:0x480ab0c3 HV:0x00 B:00000000
    PA:0x480ab0c4 HV:0x00 B:00000000
    PA:0x480ab0c5 HV:0x00 B:00000000
    PA:0x480ab0c6 HV:0x00 B:00000000
    PA:0x480ab0c7 HV:0x00 B:00000000
    PA:0x480ab0c8 HV:0x00 B:00000000
    PA:0x480ab0c9 HV:0x00 B:00000000
    PA:0x480ab0ca HV:0x00 B:00000000
    PA:0x480ab0cb HV:0x00 B:00000000
    PA:0x480ab0cc HV:0x00 B:00000000
    PA:0x480ab0cd HV:0x00 B:00000000
    PA:0x480ab0ce HV:0x00 B:00000000
    PA:0x480ab0cf HV:0x00 B:00000000
    PA:0x480ab0d0 HV:0x00 B:00000000
    PA:0x480ab0d1 HV:0x00 B:00000000
    PA:0x480ab0d2 HV:0x00 B:00000000
    PA:0x480ab0d3 HV:0x00 B:00000000
    PA:0x480ab0d4 HV:0x00 B:00000000
    PA:0x480ab0d5 HV:0x00 B:00000000
    PA:0x480ab0d6 HV:0x00 B:00000000
    PA:0x480ab0d7 HV:0x00 B:00000000
    PA:0x480ab0d8 HV:0x00 B:00000000
    PA:0x480ab0d9 HV:0x00 B:00000000
    PA:0x480ab0da HV:0x00 B:00000000
    PA:0x480ab0db HV:0x00 B:00000000
    PA:0x480ab0dc HV:0x00 B:00000000
    PA:0x480ab0dd HV:0x00 B:00000000
    PA:0x480ab0de HV:0x00 B:00000000
    PA:0x480ab0df HV:0x00 B:00000000
    PA:0x480ab0e0 HV:0x00 B:00000000
    PA:0x480ab0e1 HV:0x00 B:00000000
    PA:0x480ab0e2 HV:0x00 B:00000000
    PA:0x480ab0e3 HV:0x00 B:00000000
    PA:0x480ab0e4 HV:0x00 B:00000000
    PA:0x480ab0e5 HV:0x00 B:00000000
    PA:0x480ab0e6 HV:0x00 B:00000000
    PA:0x480ab0e7 HV:0x00 B:00000000
    PA:0x480ab0e8 HV:0x00 B:00000000
    PA:0x480ab0e9 HV:0x00 B:00000000
    PA:0x480ab0ea HV:0x00 B:00000000
    PA:0x480ab0eb HV:0x00 B:00000000
    PA:0x480ab0ec HV:0x00 B:00000000
    PA:0x480ab0ed HV:0x00 B:00000000
    PA:0x480ab0ee HV:0x00 B:00000000
    PA:0x480ab0ef HV:0x00 B:00000000
    PA:0x480ab0f0 HV:0x00 B:00000000
    PA:0x480ab0f1 HV:0x00 B:00000000
    PA:0x480ab0f2 HV:0x00 B:00000000
    PA:0x480ab0f3 HV:0x00 B:00000000
    PA:0x480ab0f4 HV:0x00 B:00000000
    PA:0x480ab0f5 HV:0x00 B:00000000
    PA:0x480ab0f6 HV:0x00 B:00000000
    PA:0x480ab0f7 HV:0x00 B:00000000
    PA:0x480ab0f8 HV:0x00 B:00000000
    PA:0x480ab0f9 HV:0x00 B:00000000
    PA:0x480ab0fa HV:0x00 B:00000000
    PA:0x480ab0fb HV:0x00 B:00000000
    PA:0x480ab0fc HV:0x00 B:00000000
    PA:0x480ab0fd HV:0x00 B:00000000
    PA:0x480ab0fe HV:0x00 B:00000000
    PA:0x480ab0ff HV:0x00 B:00000000

    Do let me know if you need anything else.

    Thank You & Regards,

    GSR

  • Hi GSR,

    The issue seems very complicated. Are you using some public source code for USB driver and can I see it?

    BR

    Tsvetolin Shulev

  • Hi,

    Thank You for the reply.

    Can you let me know on the below two points.

    1. We are programming TxFIFOSZ, RXFIFOSZ, TXFIFOADD, RXFIFOADD with the following values 4, 4, 0 and 32 when index register is programmed with 0. But after programming if we read all the above registers it is showing a value of 0 only. Can we program TXFIFOSZ, RXFIFOSZ, TXFIFOADD and RXFIFOADD when INDEX register is set to a value of 0?
    2. On some host machines we are seeing a unrecognized USB Device error. When we used catalyst protocol analyzer to debug the issue the issue is not reproducible.
    Can you help me on the above points?
    Regards,
    GSR
  • Hi,

    I am observing the following behavior.

    The device get enumerates at High speed. On EP0 interrupt the first packet it reads from FIFO is

    0x80 0x06 0x100 0x00 0x40, in response to this setup packet the device firmware writes the following 18 bytes data (0x12 0x01 0x00 0x02 0x00 0x00 0x00 0x40 0x5e 0x04 0xce 0x00 0x00 0x00 0x01 0x02 0x00 0x01) to EP0 FIFO and sets TX PACKET READY. It also clears SEND STALL and SENT STALL Bits.

    After 674mS the host again sends a SETUP Packet. The setup packet is same as the above and the device firmware again prepares the 18-bytes length packet given above. 

    After 674mS the host again sends the same SETUP packet and the device firmware prepares the 18-Bytes response packet and writes to FIFO.

    It appears to be the SETUP packet response is not getting transferred from the device to host.

    Can I look at any specific registers to find the reason why the packet is not getting transferred from the device?

    The value of CSR0 is 0xA after setting TxPacket Ready and DATAEND.

    In this case we are getting a new setup packet after programming a 18-Byte GetDescriptor Response. What will happens to that data after receiving the Setup Packet. What about the TXPACKETREADY BIT set in CSR0 register?

    Regards,

    GSR