Now i am able to read/write in SPI full duplex mode. but issue is here
Spi_SetupEB and SyncTransmit" which i am using to write and read data.
In this function a parameter length is assigned to both Tx/Rx buffer.
What should i do if I am writing command 1 byte of data and expecting more than 1 byte to receive?. Basically Command Read /Write for external flash.
I am expecting like byte by byte transfer operation like below mentioned.
Ex.
W25qxx_Spi(0x4B);
for(uint8_t i=0;i<4;i++)
W25qxx_Spi(W25QXX_DUMMY_BYTE);
for(uint8_t i=0;i<8;i++)
w25qxx.UniqID[i] = W25qxx_Spi(W25QXX_DUMMY_BYTE);
If am doing this with S32k312 SPI am not getting any data over SPI.
But if am doing like below then am getting data.
Spi_DataBufferType W25Qxx_WriteUniqueIDCmd[13] = {0x4B,0x00,0x00,0x00,0x00};
Spi_DataBufferType W25Qxx_ReadUniqueID[13] = {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
ret = Spi_SetupEB(SpiConf_SpiChannel_SpiChannel_master, W25Qxx_WriteUniqueIDCmd, W25Qxx_ReadUniqueID, 13u);
Spi_SyncTransmit(SpiConf_SpiChannel_SpiChannel_master);