2016-02-14 07:01 AM
Hi,
I tested the official USBD MSC exemple with a stm32f746-disco board in HS mode, and I got a very bad speed. For several high speed sd card, I got write:400KB/s, read: 1.6MB/s.Then I tried to increase the MSC_MEDIA_PACKET, then the board showed as unknown device, which works in FS mode (for a buffer of 16384 I got write:700KB/s).Is this a bug MSC_MEDIA_PACKET with HS mode ? #sdio #msc #usb2016-02-14 07:28 AM
Would suggest you quantify the speed of the SDIO implementation outside of the USB/MSC, so you can determine exactly where the drag on bandwidth is coming from.
2016-02-14 08:35 AM
Now the problem is as I cant change
MSC_MEDIA_PACKET(or USB is bugged in HS mode), sdio write only 512 bytes each time, so it can't benifit from Multi Block write command, in consequence the write speed is even lower then in FS mode.
2016-02-14 11:37 AM
Problem solved ! There is a bug with the IAR compiler, when optimization set to High-Speed,
the USB device not work.Now with a buffer of 0x4000, I got 8MB/s in read and write.2016-12-10 12:24 AM
I'm having problem with USB CDC driver when compiled with GCC -Os. Did you identify the function or the file that had the optimization issue? I've used highest level optimization with Atmel (SAM4) and never had a problem... STM code... no such luck.