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.

AM625: USB test mode

Part Number: AM625

How to enter USB test mode for eye diagram test on PSDK 8.3.0.19?

  • Hi Tony,

    Is the USB in host or device mode? the procedure is different.

  • On customer's board, one is host, one is device, so I think need both mode.

  • Hi Tony,

    For USB0 in host mode, run the following commands to trigger test packets:

    devmem2 0x31000420 w 0xA0                                                       
    devmem2 0x31000020 w 0x4                                                        
    devmem2 0x31000424 w 0x40000000

    For USB1 in host mode, run the following commands to trigger test packets (base address is different):

    devmem2 0x31100420 w 0xA0                                                       
    devmem2 0x31100020 w 0x4                                                        
    devmem2 0x31100424 w 0x40000000 

    For USB0 in device mode, run the following command to trigger test packets:

    echo "test_packet" > /sys/kernel/debug/usb/31000000.usb/testmode

    For USB1 in device mode, run the following command to trigger test packets (base address is different):

    echo "test_packet" > /sys/kernel/debug/usb/31100000.usb/testmode