UART2 (PTD2&3)NOT WORKING

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

UART2 (PTD2&3)NOT WORKING

387 Views
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 Kudos
1 Reply

258 Views
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 Kudos