AM625: AM625: USB TEST MODE

Part Number: AM625

I need to perform USB waveform testing and output standard USB test signaling patterns.
The required test patterns include:
Test_SE0_NAK, Test_J, Test_K, Test_Packet, Test_Force_Enable.
According to the datasheet, I should configure the register:
VBP2AHB_CONTROLLER_VBP_USB3_CORE_DEV_DCTL.
However, configuring this register does not work. I have confirmed the values are correctly written into the register, as the readback values match exactly:
Write 0x3110c704 → Readback 0x00F00004
Write 0x3110c704 → Readback 0x00F00006
Write 0x3110c704 → Readback 0x00F0000A
I found a recommended register configuration from technical forums as below:
0x31100420 → 0xA0
0x31100020 → 0x4
0x31100424 → 0x40000000
This configuration can indeed output the USB test waveform, but it only works for RWE Port Test.
I need to separately configure and generate the standard USB test signaling patterns:
Test_SE0_NAK, Test_J, Test_K, Test_Packet, Test_Force_Enable.
Please advise what prerequisite dependencies this dedicated pattern configuration requires, and provide the official/standard configuration procedure.
  • Hello Ryan,

    Give me some time to connect to the USB expert and to review your thread.

    Thank you for your patience!

    Best Regards,

    Borislav Lazarkov 

  • Hi Ryan,

    Please follow below USB controller MMR write sequences for compliance testing (TEST_PACKET and TEST_SE0_NAK) when in host mode for AM62x.

    TEST_PACKET Compliance Mode (EL_2 to EL_7):


    USB0
       >> devmem2 0x31000420 w 0xA0
       >> devmem2 0x31000020 w 0x4
       >> devmem2 0x31000424 w 0x40000000
    USB1
       >> devmem2 0x31100420 w 0xA0
       >> devmem2 0x31100020 w 0x4
       >> devmem2 0x31100424 w 0x40000000


    TEST_SE0_NAK Compliance Mode (EL_9):


    USB0
       >> devmem2 0x31000420 w 0xA0
       >> devmem2 0x31000020 w 0x4
       >> devmem2 0x31000424 w 0x30000000
    USB1
       >> devmem2 0x31100420 w 0xA0
       >> devmem2 0x31100020 w 0x4
       >> devmem2 0x31100424 w 0x30000000

    Please note that our PHY does not support EL_8 (TEST_J, TEST_K). This test was obsoleted by the USB-IF organization in 2010 and is no longer required as a condition for USB2.0 certification.

    Best regards,

    Luis Parga