This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS: how can i transfer data between two launxhpad by uart?

Other Parts Discussed in Thread: LAUNCHXL-CC1352R1

Tool/software: Code Composer Studio

my two devices are launchxl-cc1352r1 .

have two same device and i want to communicate each other by uart .they all connected to pc by usb cable and  each have two com port (com20,22 and com 12,23 each other)

it is impossible to execute two device by ccs in sametime

so i don't know if i excuted one device by uart tx  code, how can another device receive data by uart?it's just connected to pc and nothing uart rx code excuted in it ?how can i transfer data between two by uart ?

  • You can only use one of the two COM ports for UART communication, the other is for CCS to use.
    Do you need to communicate via the back channel UART or is it just being used for Launchpad - to - Launchpad communication?
    If the com ports are only for LP to LP, you can remove the jumpers to the onboard debugger and connect the TX of one to the RX of the other and vice-versa.

    Another option is that you have two hardware UARTS on the 1352, you might be able to use the second UART for LP to LP communication.
  • Hello user,

    In order to communicate between two devices using uart, you will need to connect the uart pins between each other and disconnect the Rx and Tx jumpers from the launchpad. For this, you do not need to have them connected to CCS after you flash the devices. Make sure to share the same GND between the 2 devices.

    Another option could be to use a tool such as DockLight, this tool works as a terminal viewer such as Putty or TeraTerm but with the advantage of being able to connect two com ports together and sniff out the exchange between them.

    Regards,
    AB
  • Yes, it is impossible to execute two device by ccs in sametime but you have to open two CCS to do this.
  • 1.how can communicate by second uart?
    2.what's the second uart? two uart named data port and application/user port respectivly
  • thank you:) i will try to use docklight
  • The 1352 has two hardware UARTS. Only one is used for the backchannel UART leaving one that connects to the DIO's