Hi Ti Support Team,
We are going to test USB on AM62-SK EVM.
We use the way as below:
USB1:
- devmem2 0x31100420 w 0xA0
- devmem2 0x31100020 w 0x4
- devmem2 0x31100424 w 0x40000000
Step #1, #2 work well, but #3 returns “Bus error” message.
We also give a try for USB0, but get the same result.
Why do I get the "Bus error" after #3 manipulation?
Please refer to the attached log file, USB_TEST_20230705.log
root@Triton:~# devmem2 0x31100420 w 0xA0 /dev/mem opened. Memory mapped at address 0xffff92fc6000. Value at address 0x31100420 (0xffff92fc6420): 0xE03 Written 0xA0; readback 0x80 root@Triton:~# [ 36.242925] usb 1-1: USB disconnect, device number 2 [ 36.842025] usb 1-1: new high-speed USB device number 3 using xhci-hcd [ 36.999634] usb 1-1: New USB device found, idVendor=8564, idProduct=1000, bcdDevice=11.00 [ 37.007964] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 37.015266] usb 1-1: Product: Mass Storage Device [ 37.020139] usb 1-1: Manufacturer: JetFlash [ 37.024477] usb 1-1: SerialNumber: 11S4CRAA4X56WT9N [ 37.043246] usb-storage 1-1:1.0: USB Mass Storage device detected [ 37.050108] scsi host0: usb-storage 1-1:1.0 [ 38.409652] scsi 0:0:0:0: Direct-Access JetFlash Transcend 16GB 1100 PQ: 0 ANSI: 6 [ 38.424773] sd 0:0:0:0: [sda] 30851072 512-byte logical blocks: (15.8 GB/14.7 GiB) [ 38.433777] sd 0:0:0:0: [sda] Write Protect is off [ 38.439485] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 38.478046] sda: sda1 [ 38.483918] sd 0:0:0:0: [sda] Attached SCSI removable disk [ 38.822073] FAT-fs (sda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck. root@Triton:~# devmem2 0x31100020 w 0x4 /dev/mem opened. Memory mapped at address 0xffff93525000. Value at address 0x31100020 (0xffff93525020): 0x5 Written 0x4; readback 0x4 root@Triton:~# devmem2 0x31100424 w 0x40000000 /dev/mem opened. Memory mapped at address 0xffff86519000. Bus error root@Triton:~# root@Triton:~# root@Triton:~# root@Triton:~# devmem2 0x31000420 w 0xA0 /dev/mem opened. Memory mapped at address 0xffff8cf0b000. Value at address 0x31000420 (0xffff8cf0b420): 0x280 Written 0xA0; readback 0x80 root@Triton:~# devmem2 0x31000020 w 0x4 /dev/mem opened. Memory mapped at address 0xffffae61e000. Value at address 0x31000020 (0xffffae61e020): 0x0 Written 0x4; readback 0x4 root@Triton:~# devmem2 0x31000424 w 0x40000000 /dev/mem opened. Memory mapped at address 0xffffbd3c6000. Bus error root@Triton:~#



