how do i use usart2 on a lpcxpresso4337?

cancel
Showing results for 
Search instead for 
Did you mean: 

how do i use usart2 on a lpcxpresso4337?

73 Views
Contributor I

I'm trying to use both usart0 and usart 2 for two different freertos tasks, but only usart0 sends/receives any message!

uart_init is set with LPC_USART2, USART0_IRQN and USART2_IRQHandler. uart cable connected to J2 pin 14. Help!

0 Kudos
1 Reply

5 Views
NXP TechSupport
NXP TechSupport

Hello Erlend, 

Please notice in the schematic of the board that J2 pin 14 is not connected to anything.

pastedImage_1.jpg

The pins you need to use for the UART2 are J2 13 and 15, that correspond to P2_10 and P2_11 respectively. If you reference the user manual: https://www.nxp.com/docs/en/user-guide/UM10503.pdf  In the page 310 you will see that both pins need to be set in function 2 in order to work with the UART2. 

Hope it helps!

Victor.

 

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

0 Kudos