LPUART0 Configuration

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

LPUART0 Configuration

跳至解决方案
1,108 次查看
pciampanelli
Contributor I

Hi,

I'm using freedom development board FRDM-K32L2A4S.

Using MCUXpresso IDE v11.6.1 i created my own test project to be uploaded on the board.

I'm trying to use LPUART0, so I configured it in polling mode, 115200 8N1, tx and rx enabled. 

Using pinmux tool i selected GPIO A14 as TX and GPIO A15 as RX.

I generated the code and I tried to send a char with:

LPUART_WriteByte(LPUART0_PERIPHERAL, 'J');

but nothing seems to come out of GPIO A14.

 

Any hint on how to make it work?

 

thanks 

 

Paolo

0 项奖励
回复
1 解答
1,087 次查看
CarlosGarabito
NXP TechSupport
NXP TechSupport

Hi @pciampanelli, You can use the example as a reference to check how is the code and the pins' connection,

 

As you can see in the pictures below

CarlosGarabito_0-1670937504505.png

 

 

CarlosGarabito_1-1670937504505.png

 

 

By other hand, if you have a project and want to add the lpuart, you can use the manager SDK components

 

CarlosGarabito_2-1670937504505.png

 

 

CarlosGarabito_3-1670937504506.png

 

And select the pins components

 

CarlosGarabito_4-1670937504506.png

 

 

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,088 次查看
CarlosGarabito
NXP TechSupport
NXP TechSupport

Hi @pciampanelli, You can use the example as a reference to check how is the code and the pins' connection,

 

As you can see in the pictures below

CarlosGarabito_0-1670937504505.png

 

 

CarlosGarabito_1-1670937504505.png

 

 

By other hand, if you have a project and want to add the lpuart, you can use the manager SDK components

 

CarlosGarabito_2-1670937504505.png

 

 

CarlosGarabito_3-1670937504506.png

 

And select the pins components

 

CarlosGarabito_4-1670937504506.png

 

 

0 项奖励
回复