cancel
Showing results for 
Search instead for 
Did you mean: 

how to use high speed transmit for stm32 to pc?

ctc.ctc
Associate II
Posted on January 08, 2017 at 18:36

Usually, I use uart for my stm32 to communicate with my PC(ubuntu),

I set 115200 baudrate, and use a USB to TTL tool(PL2303HX

https://goo.gl/TRnN4w

In PC, use the minicom to get data from stm32,

But now, I have to transmit much more data, I need more than 1Mbps speed,

I found some article say that stm32 can set to 2Mbps even 4Mbps,

I thought I can just set a more fast baudrate like, such as 1152000 for both PC and stm32,

but I found I cannot get correct data,

I have no idea where can I fix it?  is there any limit for uart?

Or is there any way for me to communicate for stm32 and PC with high transmit speed ?

#uart #communicate #stm32
1 REPLY 1
S.Ma
Principal
Posted on January 08, 2017 at 21:44

Have you checked the max baud rate supported by the ttl-usb device? Also the higher the baud rate the more precise the mcu reference clock needs to be. I tried Hc-06 TTL to BT module and up to 1mbps is achievable. However it cannot manage continuous data flow due to its internal fifos. Maybe the ttl usb dongle too has limits there. High baudrate would probably be by choosing VCP on HS USB STM32.families. 

All the best!