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.

CC26XX UART FIFO

Other Parts Discussed in Thread: CC2640, BLE-STACK

Hi,

I have interfaced a GSM module with CC2640 using UART. I am receiving maximum of 32 bytes when reading more than 32 bytes from UART.  UART drivers has limited it to 32 bytes.

/*! Size of the TX and RX FIFOs is 32 items */
#define UARTCC26XX_FIFO_SIZE 32

So can anyone suggest me how to receive more than 32 bytes using UART Read in CC2640 ?

Thanks in advance.

Jitendra

  • Hi there,

    The hardware UART FIFO depth is only 32 entries deep. This is set in silicon and cannot be changed. The FIFO interrupt levels are configurable at various FIFO fill depths as described in section 19.4.5 of the Technical Reference Manual.

    Looking at your code on the left of your screenshot it seems that you are using TI-RTOS. Can you confirm what RTOS and BLE Stack you are using, and confirm that you are using the RTOS UART drivers.
  • Hi Sean,

    I have tried with different FIFO depth as below. But didn't get solution.
    UART_TH_FIFO_RX1_8 = 4, /*!< RX FIFO threshold of 1/8 = 4 bytes */
    UART_TH_FIFO_RX2_8 = 8, /*!< RX FIFO threshold of 2/8 = 8 bytes */
    UART_TH_FIFO_RX4_8 = 16, /*!< RX FIFO threshold of 4/8 = 16 bytes */
    UART_TH_FIFO_RX6_8 = 24, /*!< RX FIFO threshold of 6/8 = 24 bytes */
    UART_TH_FIFO_RX7_8 = 28 /*!< RX FIFO threshold of 7/8 = 28 bytes */


    Yes. I am using TI-RTOS (tirtos_simplelink_2_11_01_09) and BLE stack(ble_cc26xx_2_00_00_42893) for my development.

    Can you please guide to come out from this issue?

    Thanks.

    Jitendra
  • Hi Jitendra,

    As an aside, it is highly recommended that you move to the latest version (V2.1.1) of the BLE-Stack if possible. Getting back to your issue, can you post a bit of sample code that re-creates your problem. Have you looked at the UART driver examples in the RTOS documents?

    file:///C:/ti/tirtos_simplelink_2_11_01_09/docs/doxygen/html/_u_a_r_t_c_c26_x_x_8h.html