How can I configure the S32K146 to use the LPUART at 921600

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How can I configure the S32K146 to use the LPUART at 921600

1,154 Views
raulcastanon
Contributor II

Hello,

 

I'm using a development board S32K146 and working with the LPUART, i did the configuration using the SDK 8.5.
The configuration is:

Baud rate: settled as 256000 (no option to set it as 921600)

Parity: no parity
Stop bits: 1

Data: 8 bits

8 bit data + 1 stop bits + start bit

I've change the pins to LPUART0
Tx -> PTB1 output

Rx -> PTB0 input

I configured the FIRCDIV2_CLK at 48MHz as input clk

 

 

Using the code example lpuart_echo_s32k146, to get the desired baud rate I write before the initialization of the instance:
lpuart0_InitConfig0.baudRate = 921600U;

 

Tx communication is successful, frames are written correctly, but when I send the "Hello Board \r\n" string, I don't have the response back.

 

If I just low the baud rate to the fastest in the SDK the code works as expected...

Any suggestions?

Labels (2)
0 Kudos
2 Replies

840 Views
wjandsq
Contributor IV

you can  use  the value "919540",   it  work is very well.

919540.bmp

0 Kudos

840 Views
wjandsq
Contributor IV

it support  460800bps,I do belive .  921600 bps不稳定。1000000 bps 似乎可以,忘记了。

0 Kudos