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.

CC2650: CC2650 UART

Part Number: CC2650


Hello,

I am using CC2650 Launchpad with ble_sdk_2_02_01_18 stack and tirtos_cc13xx_cc26xx_2_20_01_08 RTOS.

I am using UART_write() function to write 21bytes.

I write 21bytes using 5 UART_write() function. one after the other.

        UART_write(uart,&abc,1);
        UART_write(uart,xyz,sizeof(xyz));
        UART_write(uart,qwe,sizeof(qwe)-2);
        UART_write(uart,&tyu,1);
        UART_write(uart,&ghj,1);

This loop is running every 200ms, but sometimes i get 42bytes instead of 21bytes.

What could be the issue ?

Thanks and Regards

Gourang

  • Hello Gourang,
    How do you receive the UART data?
    How to you schedule the writes to occur every 200 ms?
    Is it simply the same 21 bytes sent twice back2back?
  • Hi Eirik V,
    Thanks for the Reply.

    I receive the UART data on another external IC UART pins.

    I have created an periodic event which runs every 200ms.

    I receive two packets of 21bytes in one event (both are different) instead of one packet.

    Thanks,
    Gourang
  • Hello Gourang,
    Can you show me your UART settings (uartParams)?
    What is the baud rate?
    Where is the UART_writes called from?

    Make sure to disable all other activity in your code as your code might be preempted.

    You can connect a logic analyzer to the external line to verify if this is due to the transmitter sending double at once or if the receiver is simply buffering twice before reporting. Also you can use a serial emulator on your computer to use as a test receiver instead during debug (putty, realterm, python script, etc).