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.

CC2652P: Data integrity with UART2

Part Number: CC2652P
Other Parts Discussed in Thread: MSP430F5419A

I am migrating code written for the MSP430f5419a to the CC2652P. The application receives data through a UART in interrupt mode and stores it in a circular queue. In the MSP430 I protect the integrity of the queue by disabling the RX interrupt when removing data from the queue. On the CC2652 I am using UART2 in callback mode with CCS and TIRTOS. Since the UART2 driver does not allow for disabling interrupts, what is the recommended way to prevent corruption caused by a callback interrupting a Dequeue operation? 

  • Hello Dwight Diener,

    I hope you are doing well. Have you started evaluating the device with the "uart2callback" example located in the SDK example projects? This example is a good starting point for the CC2652 device; I would then recommend giving the "UART2.h" file a good read, as it has detailed explanations of the blocking and non-blocking settings when using UART.

    You can try a setting the readmode and writemode parameter which should protect the rx/tx to "UART2_Mode_BLOCKING". 

    Alex F