2017-01-08 09:36 AM
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
)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 #stm322017-01-08 12:44 PM
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!