Multiple UART on NRF52833

Hello Everyone,

                   I am using NRF52833 in my project and I have my NRF module connected to 2 other microcontrollers on UART peripherals. The details are mentioned as below:-

1) NRF52833 connected to MCU A

   RX pin of nrf- P0.29

   TX pin of nrf- P0.28

2) NRF52833 connected to MCU B

   RX pin of nrf- P0.30

   TX pin of nrf- P0.31.

I have successfully configured connection to MCU and I am able to transmit data from NRF to MCU A and receive data on NRF from MCU A.

Now I have to add another UART in the code so as to communicate with MCU B. What will be the steps to add one more UART configuration?? What is the procedure to do so.

Thanks & Regards,

Snehal.

  • Hi Jared,

                  I have solved all the errors of libuarte and the code is running properly without any errors. But when I try to transmit hex data from libuarte, i am not able to transmit or receive any data. I am trying to transmit hex data (0x73,0x01,0x0a,0x0d) 

    What might be the issue?I am not seeing any errors but the other mcu is not receiving any data.

    Regards,
    Snehal

  • Hi,

    Do you see any activity on the TX line when you try to send data? Can you use a logical analyzer or a scope and verify?

    regards

    Jared

  • Hi Jared,

      Unfortunately I am not having scope or analyzer to check the lines. 

    Regards,

    Snehal.

  • Can you use the debugger and see what the transmits functions returns and how the TX buffer that is passed to the function look like? 

  • yes I can check that. Meanwhile If I want to check the received data from other MCU on nrf52833,how can I check if hex data is being received. The libuarte handler is as follow:-

    Like if I want to print the received data on the RTT terminal, how can I do that?

    Regards,

    Snehal.

1 2 3 4 5