2015-11-02 12:11 PM
When using the Cube libraries and a baud rate above 260000 on USART1, the serial port needs to be connected to another device or looped back on itself or the code locks up when trying to transmit. If I lower the baud rate the port works fine and never locks up whether connected or disconnected. All flow control is turned off so I cannot figure out what would cause this.
#uart-usart-baud2015-11-03 05:35 AM
Hello David,
What board are you use? Evalution KIT or custom board? Check value of capacitors on UART lines. BR, Denis2015-11-03 05:41 AM
The STM32F4-DISCO has an issue using PA9.
It always helps to be specific about the board and chip in question. ST has dozens of boards, and hundreds of STM32 variants. Common USART to test with are USART2 PA2/PA3, USART6 PC6/PC72015-11-03 12:44 PM
In my experience, USART1 is only useful for baudrates below 2400. I've used it in the past for a half-duplex 1200baud signal. Will generally not function at higher rates than this.
2015-11-03 01:00 PM
Yes, because there's a very large capacitor hung on PA9, but USART1 should be viable on PB6/PB7