UART2 (PTD2&3)NOT WORKING

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

UART2 (PTD2&3)NOT WORKING

793 次查看
asthraprojects
Contributor I

i am using frdmk20d50m board ,when i send data from uart2  it is working but receiving of UART2 not working

my reading is like this for(PTD2 &3)

while()

{

LedUart_ReceiveBlock(LedUart_DeviceData,&Buf,5);

printf("%s",Buf);

}

it is not printing any data

i AM USING Kinetis design studio2.0

0 项奖励
回复
1 回复

664 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi asthra,

I am using FRDM-K20D50M(SCH Rev D) with KDS3.2.0.

Refer the Typical Usage of Component Serial_LDD.

Serial_LDD Typical Usage.jpg

After input 'e' at UART2_RX(PTD2 Pin8 J2), I can receive the 'Hello world' from UART2_TX(PTD3 Pin10 J2).

UART2 PTD2 PTD3 polling.jpg

I have attached the test project.

Best Regards,

Robin

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复