2012-06-26 04:07 PM
I was looking to use the STM32F4 Discovery board as an output device which requires a significant bandwidth from the supporting PC. I don't have specifics nailed down on this task, 115.2Kbaud might be sufficient but ''more would be better''.
I see the STLink offers some 2-way communication for ICD, but I don't know much about it.Isn't the STLink just a virtual com port? Can we run it at other speeds? Or is it very limited for data transfer because it needs to retain the programming and debug capability?Would it just make more sense to use the second USB port, configured as a generic HID and not a Host? Again, what kind of bitrate could I expect to see?2012-06-26 05:17 PM
Isn't the STLink just a virtual com port?
The last one I looked at was a Mass Storage Controller with a couple of overloaded SCSI commands. The full speed USB is around 12 Mbps. The serial ports are easily capable of 460800 baud. Try hooking up a USB-to-CMOS Serial adapter (FTDI, SiLabs) to USART3 and give 921600 a spin. The ST-Link connection on the Discovery board doesn't really provide much in the way of usable connectivity to the STM32F4 chip.2012-06-27 10:45 AM
Wow does an FTDI/Silabs bridge really go up to nearly 1Mbit/sec?
There is a possible latency issue here, though. I should have mentioned that. The bridge chip's latency is a question mark, and it seems unnecessary, since there's that second (south) USB connection on the board which should function as a USB peripheral directly. I saw a Silabs doc for the CP210x:https://www.silabs.com/Support Documents/TechnicalDocs/an205.pdf
The 1msec timeout is listed, but that's not a latency. That's saying if you send 10 bytes and DON'T fill the buffer but just pause with no data, it'll wait 1ms before sending the partial buffer. That doesn't tell me how big the tx/rx buffers are, nor the transit delay.The south USB port on the STM32F4 Discovery board, that is ''really fast'', correct?Edit: Hmmm....Says with the Silabs CP2102 bridge on Linux he got 6.7ms latency as worst-case, and 5ms average. That's not terrible.2012-06-27 12:04 PM
The CP2101 is rated up to 921.6Kbps, with Rx/Tx buffers of 512 bytes, according to the data sheet.
I've used a number of USB adapters at 460800 to program micros in production, the one on my desk has a Prolific chip. You want to use CMOS level connectivity, as RS232 level converters filter at ~1Mbps. The STM32F4-Discovery does not have an external PHY, so it doesn't do 480 Mbps, but 12 Mbps. Reading from an SDHC card based Mass Storage Controller I'm seeing a read >800KBps (bytes not bits) on an STM32F22012-06-27 12:39 PM
Which part is limited to 12Mbps? The south USB?
2012-06-27 02:12 PM
Which part is limited to 12Mbps? The south USB?
Unless I completely lost the plot here, CN5 is a FS (Full Speed) 12 Mbps connection. CN1 isn't connected to the STM32F407VGT6 at all.