Hi ALL,
I tested the DRA756 by connecting the USB storage device to the USB 3.0 port.
The SW environment configuration used for the test is as follows.
-. RTOS SDK : pdk_dra7xx_1_0_10
-. Example project : USB_HostMsc_evmDRA75x_armExampleProject
-. Used USB Mass Storage :
1) Sandisk UBS 3.0 64GB,
2) Samsung USB3.1 1 TB SSD
In the case of the storage device 1, it is well recognized and both Read and Write operate well.
However, in the case of device 2, there is a problem with recognition.
When I checked the debug message by activating the debug mode of the USB driver,
there seems to be a problem with write in the case of storage device 2.
Attach usb driver debug messages for two storage devices. Please help to recognize USB storage devices.
DRR756-USB-DebugMSG-SandDisk64GB-FAT32.log
[Fri Sep 17 17:21:08.104 2021] create taskFxn_USB [Fri Sep 17 17:21:08.117 2021] taskFxn_USB +++ [Fri Sep 17 17:21:08.155 2021] !!!! USB_open OK !!!!!!!! [Fri Sep 17 17:21:09.113 2021] g_ulMSCInstance=0x810decec [Fri Sep 17 17:21:09.115 2021] -> xhci_pending_event <-!! [Fri Sep 17 17:21:09.118 2021] got intr. portNum = 0. ptrEvent=0x40500e80 [Fri Sep 17 17:21:09.121 2021] -> PSC on port 2 [Fri Sep 17 17:21:09.123 2021] Command_Completion_Handler. byEventRingIdex=0. xhciData->PtrEvent=0x40500e80 [Fri Sep 17 17:21:09.130 2021] Using USB3.0 initialization sequence [Fri Sep 17 17:21:09.143 2021] about to do enable slot. PORTSC2=0x1203 [Fri Sep 17 17:21:09.147 2021] Command_Completion_Handler. byEventRingIdex=1. xhciData->PtrEvent=0x40500e90 [Fri Sep 17 17:21:09.154 2021] about to set Address [Fri Sep 17 17:21:09.156 2021] Command_Completion_Handler. byEventRingIdex=2. xhciData->PtrEvent=0x40500ea0 [Fri Sep 17 17:21:09.162 2021] about to get device descriptor [Fri Sep 17 17:21:09.166 2021] Command_Completion_Handler. byEventRingIdex=3. xhciData->PtrEvent=0x40500eb0 [Fri Sep 17 17:21:09.172 2021] about to get Configuration descriptor [Fri Sep 17 17:21:09.175 2021] Command_Completion_Handler. byEventRingIdex=4. xhciData->PtrEvent=0x40500ec0 [Fri Sep 17 17:21:09.182 2021] USBHostConfigureEndpoint. EP=1. pks=1024. epType=6 [Fri Sep 17 17:21:09.187 2021] Command_Completion_Handler. byEventRingIdex=5. xhciData->PtrEvent=0x40500ed0 [Fri Sep 17 17:21:09.194 2021] USBHostConfigureEndpoint. EP=2. pks=1024. epType=2 [Fri Sep 17 17:21:09.199 2021] Command_Completion_Handler. byEventRingIdex=6. xhciData->PtrEvent=0x40500ee0 [Fri Sep 17 17:21:09.205 2021] about to set Configuration [Fri Sep 17 17:21:09.208 2021] Command_Completion_Handler. byEventRingIdex=7. xhciData->PtrEvent=0x40500ef0 [Fri Sep 17 17:21:09.215 2021] about to set enumIsDone [Fri Sep 17 17:21:09.217 2021] USBHCDMain=0x0 [Fri Sep 17 17:21:09.219 2021] USBHCDMain 0x0/0x810decec [Fri Sep 17 17:21:09.222 2021] g_eState=0x0 [Fri Sep 17 17:21:09.223 2021] g_ulMSCInstance=0x810decec [Fri Sep 17 17:21:09.225 2021] usb --> MSCCallback (1) [Fri Sep 17 17:21:09.228 2021] usb --> MSCCallback:STATE_DEVICE_ENUM [Fri Sep 17 17:21:09.231 2021] USBHCDMain=0x0 [Fri Sep 17 17:21:09.233 2021] USBHCDMain 0x0/0x810decec [Fri Sep 17 17:21:09.235 2021] usb STATE_DEVICE_ENUM [Fri Sep 17 17:21:09.238 2021] Command_Completion_Handler. byEventRingIdex=8. xhciData->PtrEvent=0x40500f00 [Fri Sep 17 17:21:09.245 2021] USBHostWrite.xhciData->byEpOUTRingIndex=0 [Fri Sep 17 17:21:09.249 2021] Command_Completion_Handler. byEventRingIdex=9. xhciData->PtrEvent=0x40500f10 [Fri Sep 17 17:21:09.256 2021] USBHostRead. xhciData->byEpINRingIndex=0. TRB addr=0x40500b80 [Fri Sep 17 17:21:09.261 2021] Command_Completion_Handler. byEventRingIdex=10. xhciData->PtrEvent=0x40500f20 [Fri Sep 17 17:21:09.268 2021] USBHostRead. xhciData->byEpINRingIndex=1. TRB addr=0x40500b90 [Fri Sep 17 17:21:09.274 2021] Command_Completion_Handler. byEventRingIdex=11. xhciData->PtrEvent=0x40500f30 [Fri Sep 17 17:21:09.281 2021] USBHostWrite.xhciData->byEpOUTRingIndex=1 [Fri Sep 17 17:21:09.284 2021] Command_Completion_Handler. byEventRingIdex=12. xhciData->PtrEvent=0x40500f40 [Fri Sep 17 17:21:09.291 2021] USBHostRead. xhciData->byEpINRingIndex=2. TRB addr=0x40500ba0 [Fri Sep 17 17:21:09.297 2021] Command_Completion_Handler. byEventRingIdex=13. xhciData->PtrEvent=0x40500f50 [Fri Sep 17 17:21:09.304 2021] USBHostWrite.xhciData->byEpOUTRingIndex=2 [Fri Sep 17 17:21:09.308 2021] Command_Completion_Handler. byEventRingIdex=14. xhciData->PtrEvent=0x40500f60 [Fri Sep 17 17:21:09.315 2021] USBHostRead. xhciData->byEpINRingIndex=3. TRB addr=0x40500bb0 [Fri Sep 17 17:21:09.321 2021] Command_Completion_Handler. byEventRingIdex=15. xhciData->PtrEvent=0x40500f70 [Fri Sep 17 17:21:09.328 2021] USBHostRead. xhciData->byEpINRingIndex=4. TRB addr=0x40500bc0 [Fri Sep 17 17:21:09.333 2021] Command_Completion_Handler. byEventRingIdex=0. xhciData->PtrEvent=0x40500e80 [Fri Sep 17 17:21:09.339 2021] USBHostWrite.xhciData->byEpOUTRingIndex=3 [Fri Sep 17 17:21:09.344 2021] Command_Completion_Handler. byEventRingIdex=1. xhciData->PtrEvent=0x40500e90 [Fri Sep 17 17:21:09.351 2021] USBHostRead. xhciData->byEpINRingIndex=5. TRB addr=0x40500bd0 [Fri Sep 17 17:21:09.356 2021] Command_Completion_Handler. byEventRingIdex=2. xhciData->PtrEvent=0x40500ea0 [Fri Sep 17 17:21:09.363 2021] USBHostRead. xhciData->byEpINRingIndex=6. TRB addr=0x40500be0 [Fri Sep 17 17:21:09.369 2021] Command_Completion_Handler. byEventRingIdex=3. xhciData->PtrEvent=0x40500eb0 [Fri Sep 17 17:21:09.376 2021] USBHostWrite.xhciData->byEpOUTRingIndex=4 [Fri Sep 17 17:21:09.379 2021] Command_Completion_Handler. byEventRingIdex=4. xhciData->PtrEvent=0x40500ec0 [Fri Sep 17 17:21:09.386 2021] USBHostRead. xhciData->byEpINRingIndex=7. TRB addr=0x40500bf0 [Fri Sep 17 17:21:09.392 2021] Command_Completion_Handler. byEventRingIdex=5. xhciData->PtrEvent=0x40500ed0 [Fri Sep 17 17:21:09.399 2021] the device is already enummerated!! [Fri Sep 17 17:21:09.402 2021] --> FSShellAppUtilsProcess:FS_SHELL_APP_UTILS_STATE_MAX [Fri Sep 17 17:21:09.407 2021] USBHostWrite.xhciData->byEpOUTRingIndex=5 [Fri Sep 17 17:21:09.411 2021] Command_Completion_Handler. byEventRingIdex=6. xhciData->PtrEvent=0x40500ee0 [Fri Sep 17 17:21:09.418 2021] USBHostRead. xhciData->byEpINRingIndex=8. TRB addr=0x40500c00 [Fri Sep 17 17:21:09.424 2021] Command_Completion_Handler. byEventRingIdex=7. xhciData->PtrEvent=0x40500ef0 [Fri Sep 17 17:21:09.430 2021] USBHostRead. xhciData->byEpINRingIndex=9. TRB addr=0x40500c10 [Fri Sep 17 17:21:09.436 2021] Command_Completion_Handler. byEventRingIdex=8. xhciData->PtrEvent=0x40500f00 [Fri Sep 17 17:21:09.443 2021] USBHostWrite.xhciData->byEpOUTRingIndex=6 [Fri Sep 17 17:21:09.447 2021] Command_Completion_Handler. byEventRingIdex=9. xhciData->PtrEvent=0x40500f10 [Fri Sep 17 17:21:09.454 2021] USBHostRead. xhciData->byEpINRingIndex=10. TRB addr=0x40500c20 [Fri Sep 17 17:21:09.459 2021] Command_Completion_Handler. byEventRingIdex=10. xhciData->PtrEvent=0x40500f20 [Fri Sep 17 17:21:09.466 2021] USBHostRead. xhciData->byEpINRingIndex=11. TRB addr=0x40500c30 [Fri Sep 17 17:21:09.472 2021] Command_Completion_Handler. byEventRingIdex=11. xhciData->PtrEvent=0x40500f30 [Fri Sep 17 17:21:09.479 2021] USBHostWrite.xhciData->byEpOUTRingIndex=7 [Fri Sep 17 17:21:09.482 2021] Command_Completion_Handler. byEventRingIdex=12. xhciData->PtrEvent=0x40500f40 [Fri Sep 17 17:21:09.489 2021] USBHostRead. xhciData->byEpINRingIndex=12. TRB addr=0x40500c40 [Fri Sep 17 17:21:09.496 2021] Command_Completion_Handler. byEventRingIdex=13. xhciData->PtrEvent=0x40500f50 [Fri Sep 17 17:21:09.503 2021] USBHostRead. xhciData->byEpINRingIndex=13. TRB addr=0x40500c50 [Fri Sep 17 17:21:09.508 2021] Command_Completion_Handler. byEventRingIdex=14. xhciData->PtrEvent=0x40500f60 [Fri Sep 17 17:21:09.515 2021] --> FSShellAppUtilsProcess:TEST PASS [Fri Sep 17 17:21:09.519 2021] 0:> [Fri Sep 17 17:21:12.232 2021] --> FSShellAppUtilsProcess:TEST PASS [Fri Sep 17 17:21:12.235 2021] 0:> [Fri Sep 17 17:21:12.759 2021] --> FSShellAppUtilsProcess:TEST PASS [Fri Sep 17 17:21:12.763 2021] 0:> [Fri Sep 17 17:21:12.984 2021] --> FSShellAppUtilsProcess:TEST PASS [Fri Sep 17 17:21:12.988 2021] 0:> [Fri Sep 17 17:21:13.160 2021] --> FSShellAppUtilsProcess:TEST PASS [Fri Sep 17 17:21:13.164 2021] 0:>ls [Fri Sep 17 17:21:13.920 2021] USBHostWrite.xhciData->byEpOUTRingIndex=8 [Fri Sep 17 17:21:13.923 2021] Command_Completion_Handler. byEventRingIdex=15. xhciData->PtrEvent=0x40500f70 [Fri Sep 17 17:21:13.930 2021] USBHostRead. xhciData->byEpINRingIndex=14. TRB addr=0x40500c60 [Fri Sep 17 17:21:13.936 2021] Command_Completion_Handler. byEventRingIdex=0. xhciData->PtrEvent=0x40500e80 [Fri Sep 17 17:21:13.942 2021] USBHostRead. xhciData->byEpINRingIndex=0. TRB addr=0x40500b80 [Fri Sep 17 17:21:13.948 2021] Command_Completion_Handler. byEventRingIdex=1. xhciData->PtrEvent=0x40500e90 [Fri Sep 17 17:21:13.955 2021] D-HS- 2021/09/17 17:14 0 System Volume Information [Fri Sep 17 17:21:13.961 2021] [Fri Sep 17 17:21:13.961 2021] 0 File(s), 0 bytes total [Fri Sep 17 17:21:13.964 2021] 1 Dir(s), 60056064K bytes free [Fri Sep 17 17:21:13.968 2021] --> FSShellAppUtilsProcess:TEST PASS
DRR756-USB-DebugMSG-SamSung-1TB-SSD-FAT32.log
[Fri Sep 17 11:44:02.527 2021] create taskFxn_USB [Fri Sep 17 11:44:02.540 2021] taskFxn_USB +++ [Fri Sep 17 11:44:02.577 2021] !!!! USB_open OK !!!!!!!! [Fri Sep 17 11:44:03.535 2021] g_ulMSCInstance=0x810decec [Fri Sep 17 11:44:03.537 2021] -> xhci_pending_event <-!! [Fri Sep 17 11:44:03.540 2021] got intr. portNum = 0. ptrEvent=0x40500e80 [Fri Sep 17 11:44:03.543 2021] -> PSC on port 2 [Fri Sep 17 11:44:03.545 2021] Command_Completion_Handler. byEventRingIdex=0. xhciData->PtrEvent=0x40500e80 [Fri Sep 17 11:44:03.552 2021] Using USB3.0 initialization sequence [Fri Sep 17 11:44:03.565 2021] about to do enable slot. PORTSC2=0x1203 [Fri Sep 17 11:44:03.569 2021] Command_Completion_Handler. byEventRingIdex=1. xhciData->PtrEvent=0x40500e90 [Fri Sep 17 11:44:03.575 2021] about to set Address [Fri Sep 17 11:44:03.578 2021] Command_Completion_Handler. byEventRingIdex=2. xhciData->PtrEvent=0x40500ea0 [Fri Sep 17 11:44:03.584 2021] about to get device descriptor [Fri Sep 17 11:44:03.594 2021] Command_Completion_Handler. byEventRingIdex=3. xhciData->PtrEvent=0x40500eb0 [Fri Sep 17 11:44:03.601 2021] about to get Configuration descriptor [Fri Sep 17 11:44:03.604 2021] Command_Completion_Handler. byEventRingIdex=4. xhciData->PtrEvent=0x40500ec0 [Fri Sep 17 11:44:03.611 2021] USBHostConfigureEndpoint. EP=1. pks=1024. epType=6 [Fri Sep 17 11:44:03.616 2021] Command_Completion_Handler. byEventRingIdex=5. xhciData->PtrEvent=0x40500ed0 [Fri Sep 17 11:44:03.623 2021] USBHostConfigureEndpoint. EP=2. pks=1024. epType=2 [Fri Sep 17 11:44:03.627 2021] Command_Completion_Handler. byEventRingIdex=6. xhciData->PtrEvent=0x40500ee0 [Fri Sep 17 11:44:03.634 2021] USBHostConfigureEndpoint. EP=1. pks=1024. epType=6 [Fri Sep 17 11:44:03.639 2021] Command_Completion_Handler. byEventRingIdex=7. xhciData->PtrEvent=0x40500ef0 [Fri Sep 17 11:44:03.646 2021] USBHostConfigureEndpoint. EP=2. pks=1024. epType=2 [Fri Sep 17 11:44:03.650 2021] Command_Completion_Handler. byEventRingIdex=8. xhciData->PtrEvent=0x40500f00 [Fri Sep 17 11:44:03.657 2021] USBHostConfigureEndpoint. EP=3. pks=1024. epType=6 [Fri Sep 17 11:44:03.662 2021] Command_Completion_Handler. byEventRingIdex=9. xhciData->PtrEvent=0x40500f10 [Fri Sep 17 11:44:03.669 2021] USBHostConfigureEndpoint. EP=4. pks=1024. epType=2 [Fri Sep 17 11:44:03.673 2021] Command_Completion_Handler. byEventRingIdex=10. xhciData->PtrEvent=0x40500f20 [Fri Sep 17 11:44:03.680 2021] about to set Configuration [Fri Sep 17 11:44:03.683 2021] Command_Completion_Handler. byEventRingIdex=11. xhciData->PtrEvent=0x40500f30 [Fri Sep 17 11:44:03.690 2021] about to set enumIsDone [Fri Sep 17 11:44:03.692 2021] USBHCDMain=0x0 [Fri Sep 17 11:44:03.694 2021] USBHCDMain 0x0/0x810decec [Fri Sep 17 11:44:03.696 2021] g_eState=0x0 [Fri Sep 17 11:44:03.698 2021] g_ulMSCInstance=0x810decec [Fri Sep 17 11:44:03.700 2021] usb --> MSCCallback (1) [Fri Sep 17 11:44:03.703 2021] usb --> MSCCallback:STATE_DEVICE_ENUM [Fri Sep 17 11:44:03.707 2021] USBHCDMain=0x0 [Fri Sep 17 11:44:03.708 2021] USBHCDMain 0x0/0x810decec [Fri Sep 17 11:44:03.710 2021] usb STATE_DEVICE_ENUM [Fri Sep 17 11:44:03.713 2021] Command_Completion_Handler. byEventRingIdex=12. xhciData->PtrEvent=0x40500f40 [Fri Sep 17 11:44:03.720 2021] USBHostWrite.xhciData->byEpOUTRingIndex=0 [Fri Sep 17 11:44:03.724 2021] Command_Completion_Handler. byEventRingIdex=13. xhciData->PtrEvent=0x40500f50 [Fri Sep 17 11:44:03.731 2021] USBHostWrite returns 4 [Fri Sep 17 11:44:04.691 2021] usb_osalDelayMs : Wait about 100ms [Fri Sep 17 11:44:04.694 2021] --> FSShellAppUtilsProcess:FS_SHELL_APP_UTILS_STATE_MAX [Fri Sep 17 11:44:04.699 2021] Command_Completion_Handler. byEventRingIdex=14. xhciData->PtrEvent=0x40500f60 [Fri Sep 17 11:44:04.706 2021] USBHostWrite.xhciData->byEpOUTRingIndex=1