Hi,
I am using BISOPSP and OMAPL138.
OMAPL138 is in master mode. It transfer data to slave which works perfect.
When i want to read data from slave. I just write data to slave to get data from slave FIFO. I check with oscilloscope(Slave transfer data perfectly) .But master OMAP always receive FF . I have two task.Task one transmit data. Task two wait for GPIO interrupt from slave.Interrupt occur perfectly. When interrupt occur ,task 2 read the data ..to read the data , code is below... i initialize spi handle only in my task1.
i put my receive code here.. May be some one give suggestion....
dataparam.bufLen = SPI_MAX_CMD_LEN;
//Pointer to the buffer to hold the input data.
dataparam.inBuffer = &loopRead[0];
//Pointer to the output buffer specified by the application
dataparam.outBuffer = &loopWrite[0];
//Flags to indicate the current operatio
dataparam.flags = Spi_CSHOLD;
//The data format to be used by the SPI
dataparam.dataFormat = Spi_DataFormat_0;
dataparam.chipSelect = 0x40u;
size = dataparam.bufLen;
/* write data to FLASH */
Stream_write(spiHandle, &dataparam, size, BIOS_WAIT_FOREVER, &eb);
so it should write data and read the data...Why read data always FF ?