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