Skip to main content
SEsak
Visitor II
September 4, 2019
Question

UART baud 115200 issue!!

  • September 4, 2019
  • 1 reply
  • 905 views

Hi,

  I'm using SPC560B54L5 Discovery board.

  I'm trying to get serial communication to work at baud rate 115200. And it works well with other baudrate like 9600,38400 and 57600.

#define SPC5_PERIPHERAL1_CLK_DIV_VALUE   2U

#define SPC5_LINFLEX0_CLK   (SPCGetSystemClock() / SPC5_PERIPHERAL1_CLK_DIV_VALUE)

  SPCGetSystemClock() returns 16000000U

  I have changed SPC5_PERIPHERAL1_CLK_DIV_VALUE to 1U,2U and 4U but the data received is incorrect in all the case.

  Data is transmitted properly but the received data is incorrect.

  So how to achieve serial communication at baud 115200? 

I imported sample code SPC560Bxx_RLA SERIAL Test Application for Discovery.

    This topic has been closed for replies.

    1 reply

    Erwan YVIN
    ST Employee
    September 25, 2019

    Hello ,

    This test application is set at 37600

    Could you send me your serial configuration ?

    Did you use Synchronous or Asynchronous ?

    0690X000009jBNvQAM.png

    Best regards

    Erwan