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.

RTOS/CC2650: SPICC26XXDMA_transfer does not return

Part Number: CC2650

Tool/software: TI-RTOS

I am in the process to create a SPI middleware driver for a sensor device.  Have been using the "ext_flash.c" as example to create my own.

When I start to transfer data using SPI function SPICC26XXDMA_transfer( ), it got stuck and never return.

The last stop is the line :

if (!Semaphore_pend(Semaphore_handle(&(object->transferComplete)), object->transferTimeout)) {
/* Cancel the transfer, if we experience a timeout */

Since this is a write process, should it be completed whether success or not ?

Is there some configuration I missed, which cause this problem ?

Thanks