• AVR Freaks

Hot!H3: USB MSD, no errors, stick contents not changing for append

Author
Jon_S
New Member
  • Total Posts : 24
  • Reward points : 0
  • Joined: 2019/12/03 04:51:40
  • Location: 0
  • Status: offline
2020/08/13 05:04:28 (permalink)
0

H3: USB MSD, no errors, stick contents not changing for append

I have the USB configured to automount with default settings. SYS_FS_FileOpen is requested as SYS_FS_FILE_OPEN_APPEND_PLUS.
With the default Host Layer settings I was getting occasional "USB Host MSD: MSD Instance 1 is busy. Cannot schedule BOT.", changing 'Max Number Of Transfers' from 10 to 20 seems to have stopped that.
 
When the stick does NOT have the filename already on it things seem to work fine.
 
When the file is already present SYS_FS_FileWrite returns the expected number of bytes. SYS_FS_FileClose returns SYS_FS_RES_SUCCESS. But the stick contents is unchanged!
Can anyone suggest where to begin troubleshooting?
 
The debug output when nothing happens is:
 
USB Host Layer: Bus 0 Device Attach detected. Starting Enumeration.
USB Host Layer: Bus 0 Device Reset Complete.
USB Host Layer: Bus 0 Requesting Device Descriptor.
USB Host Layer: Bus 0 Device Descriptor obtained. Setting device address.
USB Host Layer: Bus 0 Setting Device Address to 2.
USB Host Layer: Bus 0 Set Address complete
USB Host Layer: Bus 0 Post Set Address Delay completed.
USB Host Layer: Bus 0 Device 2 Requesting Full Device Descriptor.
USB Host Layer: Bus 0 Device 2 Full Device Descriptor obtained.
USB Host Layer: Bus 0 Device 2 contains 1 configurations.
USB Host Layer: Bus 0 Device 2 Short Configuration Descriptor Request passed.
USB Host Layer: Bus 0 Device 2 Getting Full Configuration Descriptor.
USB Host Layer: Bus 0 Device 2 Get Full Configuration Descriptor Request passed.
USB Host Layer: Bus 0 Device 2 No errors detected in Configuration Descriptor 0.
USB Host Layer: Bus 0 Device 2 Looking for Device Level Driver.
USB Host Layer: Bus 0 Device 2 Setting first configuration
USB Host Layer: Bus 0 Device 2 Obtained Configuration Descriptor header
USB Host Layer: Bus 0 Device 2 Assigning Interface to TPL entry 0
USB Host MSD: MSD Host Instance 0 Assigned.
USB Host MSD: MSD Instance 0 Trying to send Get Max LUN Request.
USB Host MSD: Get Max LUN Request was passed. LUNs = 1.
USB Host MSD: Initializing SCSI for LUN 0.
USB Host MSD: MSD Instance 0 is Ready.
 USB_HOST_SCSI_STATE_INQUIRY_RESPONSE
 CSW: bCSWStatus = 0x0
USB Host SCSI: SCSI Instance 0 Inquiry Response Successful
 USB_HOST_SCSI_STATE_READ_CAPACITY
 CSW: bCSWStatus = 0x0
USB Host SCSI: SCSI Instance 0 Read Capacity Successful
USB Host SCSI: SCSI Instance 0 Capacity is 30720000 blocks
 USB_HOST_SCSI_STATE_MODE_SENSE
 CSW: bCSWStatus = 0x0
USB Host SCSI: SCSI Instance 0 Mode Sense Passed. Media is not write protected.
USB Host SCSI: SCSI Instance 0 is ready for block commands
 USB_HOST_SCSI_DETACH_TASK_STATE_TEST_UNIT_READY_SEND
 CSW: bCSWStatus = 0x0
  USB_HOST_SCSI_READ10_COMMAND
 CSW: bCSWStatus = 0x0
  USB_HOST_SCSI_READ10_COMMAND
 CSW: bCSWStatus = 0x0
  USB_HOST_SCSI_READ10_COMMAND
 CSW: bCSWStatus = 0x0
  USB_HOST_SCSI_READ10_COMMAND
 CSW: bCSWStatus = 0x0
 USB_HOST_SCSI_DETACH_TASK_STATE_TEST_UNIT_READY_SEND
 CSW: bCSWStatus = 0x0
 USB_HOST_SCSI_DETACH_TASK_STATE_TEST_UNIT_READY_SEND
 CSW: bCSWStatus = 0x0
 USB_HOST_SCSI_DETACH_TASK_STATE_TEST_UNIT_READY_SEND
 CSW: bCSWStatus = 0x0
 USB_HOST_SCSI_DETACH_TASK_STATE_TEST_UNIT_READY_SEND
 CSW: bCSWStatus = 0x0
 USB_HOST_SCSI_DETACH_TASK_STATE_TEST_UNIT_READY_SEND
 CSW: bCSWStatus = 0x0
 USB_HOST_SCSI_DETACH_TASK_STATE_TEST_UNIT_READY_SEND
 CSW: bCSWStatus = 0x0
  USB_HOST_SCSI_READ10_COMMAND
 CSW: bCSWStatus = 0x0
  USB_HOST_SCSI_READ10_COMMAND
 CSW: bCSWStatus = 0x0
  USB_HOST_SCSI_WRITE10_COMMAND 
 CSW: bCSWStatus = 0x0
  USB_HOST_SCSI_WRITE10_COMMAND 
 CSW: bCSWStatus = 0x0
 USB_HOST_SCSI_DETACH_TASK_STATE_TEST_UNIT_READY_SEND
 CSW: bCSWStatus = 0x0
 
 
 
--LAST TWO LINES REPEAT--

post edited by Jon_S - 2020/08/13 05:17:04
#1

0 Replies Related Threads

    Jump to:
    © 2020 APG vNext Commercial Version 4.5