Good morning,
I wanted to test the uart communication of my mcuxc242 board. I have connected lpuart1 with uart2 on my board, lpuart transmits and uart2 receives. The uart2 receive works correctly and I tested it using a modbus terminal by making a request to send data and I see it correctly. Transmission I have tested it by connecting the oscilloscope, the receive printout and the same terminal, but it does not happen correctly. Could you please tell me if I am using the LPUART_WriteBlocking function correctly?
Please find the attached code.
Thanks for your support
Best regards
Solved! Go to Solution.
hi @Transidico
If I understood properly you have the following wiring and setup
You have not tested yet the below correct? So we do not know if transmitt is well done.
I also understand that you saw the Trasmission of LPUART1 TX to works, well correct? I mean with certain the baudrate and polarity settings on a terminal.
Based on the above, I would recommend to check the baudrate, polarity and the GPIO pin settings, for example internal and external pull resistor configuration As well, the pins on the board, see that they are not shared with other elements on the board.
Diego
hi @Transidico
If I understood properly you have the following wiring and setup
You have not tested yet the below correct? So we do not know if transmitt is well done.
I also understand that you saw the Trasmission of LPUART1 TX to works, well correct? I mean with certain the baudrate and polarity settings on a terminal.
Based on the above, I would recommend to check the baudrate, polarity and the GPIO pin settings, for example internal and external pull resistor configuration As well, the pins on the board, see that they are not shared with other elements on the board.
Diego