Sending large amount of data with USB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-04 11:40 AM
I'm currently facing a big problem. I've an MCU (STM32L4) connected to an SD card (SDIO) which stores tons of data (5Gb) from a microphone (ST MEMS). I need to send this data as fast as possible from SD card to my PC. With a serial port this is to slow, since the max baud rate of my MCU is 115kb/s.
How can I solve this? I'm thinking about using an FTDI module but for what I'm reading the speed is always limited by MCU baud rate. Best Regards
- Labels:
-
Microphones
-
STM32L4 series
-
UART-USART
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-04 12:21 PM
Hardly is there a faster transfer method than to pull the SD card from the STM32 board, and push it into the PC (maybe through a USB-connected reader).
You can use UART with a UART-USB bridge at few-MHz rate, with s bit of care. There are also parallel-connected FTDI devices, possibly to be connected through FMC (although I'm not sure about the details).
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-04 1:02 PM
Eject the card, insert it into PC. Insert new empty card into STM32.
-- pa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-04 1:05 PM
I cant. It must be with usb cable. I just need anything like 5MB/s
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-04 1:09 PM
If your USB is full speed... good luck. Try to reduce the data before sending out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-04 1:14 PM
There are SD card readers with USB cable. Multiplex the SD card pins between STM32 and the reader.
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-04 6:52 PM
You can get around 100 Mbps with high speed USB. Won't get more than around 6-8 Mbps with full speed.
Implement USB directly on the chip if you want fast speed. Transferring it over UART to an FTDI chip will be even slower.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-05 3:40 AM
Hum... I'm seeing what your are talking https://www.amazon.com/Anker-Portable-Reader-RS-MMC-Micro/dp/B006T9B6R2. Do you have any idea how this modules works to ensure such high speeds?
Best Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-05 4:10 AM
> Do you have any idea how this modules works to ensure such high speeds?
It's a custom chip implementing USB3 SuperSpeed protocol (plus of course the whole USB stack including MSC, plus the SD "master").
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-05 2:51 PM
Do you have any idea if it will be hard to implement USB on chip. Has ST anything to help me on that. Furthermore, has ST any drivers to install on PC to support USB protocol?
