Content originally posted in LPCWare by madid87 on Thu Feb 21 13:26:37 MST 2013
Hello.
I have written an USB application which uses SD Card as memory for MSC device.
Currently when a PC want to write a file I store eight 64 byte packets in a buffer which is then written to the SD Card.
As this is single sector operation my transfer rate is only 150kB/s and I would like to implement multi-sector write, e.q. store 4kB in a buffer and then write 8 sectors at once.
My problem is that I don't know how many bytes or sectors will a host send me in total.
If someone could provide me with a link or information which will clarify it.
How can I access CBW (command block wrapper)which has dCBWDataTransferLength variable?
Thank you.