How to configure LPUART clock properly on KL17

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

How to configure LPUART clock properly on KL17

644 Views
ken_sloat
Contributor II


I am wondering how to properly configure the LPUART clock frequency on a KL17. I see in the driver where I can set the clock source:

   *  00: Clock Disabled

     *  01: IRC48M

     *  10: OSCERCLK

     *  11: MCGIRCCLK

 

Currently we have IRC48M, but since this seems to be an internal clock, we believe it may be inaccurate because we're seeing occasional junk characters on UART. I could change it to OSCERCLK, however with a 32K oscillator we won't be able to properly hit 115200 baud.

 

Btw this is using KSDK 2.0

Labels (1)
Tags (1)
0 Kudos
1 Reply

334 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Kenneth,

You can refer to the demo under KSDK :boards\frdmkl43z\driver_examples\lpuart

If still can not work , please tell me the part number of your chip, and show the code about

how to configure.

Hope it helps

Alice

0 Kudos