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!
Hello Erlend,
Please notice in the schematic of the board that J2 pin 14 is not connected to anything.
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!
-----------------------------------------------------------------------------------------------------------------------