cancel
Showing results for 
Search instead for 
Did you mean: 

UART baud 115200 issue!!

SEsak
Associate

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.

1 REPLY 1
Erwan YVIN
ST Employee

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