Cannot read MISO

Hello everyone,

Im trying to use adrv9371 board on zc706 dev board.

SPI write procedure works properly but I have a problem about CMB_SPIReadByte function in ad9528.c file. 

I can observe CS-CLK-MOSI signals on oscilloscope but everytime MISO signal is stable.

	uint8_t ad9528err;
	if (  ad9528err = AD9528_initDeviceDataStruct(&clockAD9528_, 122880000,30720000,122880000) != ADIERR_OK)
	{
		return ADIERR_FAILED;
	}

	AD9528_resetDevice(&clockAD9528_);
	AD9528_initialize(&clockAD9528_); //writes all registers to desired values, leaves clock outputs off.

	AD9528_enableClockOutputs(&clockAD9528_, 1);
	AD9528_waitForPllLock(&clockAD9528_);

Here is my HAL_initSpi function ;

uint32_t HAL_initSpi(uint8_t chipSelectIndex, uint8_t spiMode, uint32_t spiFreq) {


	pSPI_cfg = XSpiPs_LookupConfig(XPAR_PS7_SPI_0_DEVICE_ID);
	if (pSPI_cfg == NULL) {
		return XST_FAILURE;
	}

	Status = XSpiPs_CfgInitialize(&SPI_Device, pSPI_cfg, pSPI_cfg->BaseAddress);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}

	Status = XSpiPs_SelfTest(&SPI_Device);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}

//	XSpiPs_SetOptions(&SPI_Device,(XSPIPS_MASTER_OPTION | XSPIPS_CLK_ACTIVE_LOW_OPTION
//									| XSPIPS_CLK_PHASE_1_OPTION | XSPIPS_MANUAL_START_OPTION));

	XSpiPs_SetOptions(&SPI_Device,(XSPIPS_MASTER_OPTION | 0<<14));

	XSpiPs_SetClkPrescaler(&SPI_Device, XSPIPS_CLK_PRESCALE_256);

	Status = XSpiPs_SetSlaveSelect(&SPI_Device, slaveSS);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}

	XSpiPs_Enable(&SPI_Device);
	return XST_SUCCESS;
}

Here are HAL_spiWrite and HAL_spiRead functions;

 uint32_t HAL_spiWrite(unsigned char *txbuf, uint32_t n_tx)
 {
	 XSpiPs_SetSlaveSelect(&SPI_Device,slaveSS);
	 XSpiPs_PolledTransfer(&SPI_Device,txbuf,NULL,n_tx);

	 return(COMMONERR_OK);
 }

 uint32_t HAL_spiRead(unsigned char *txbuf, uint8_t n_tx, unsigned char *readdata)
 {
//	 XSpiPs_SetSlaveSelect(&SPI_Device,slaveSS);
	 XSpiPs_PolledTransfer(&SPI_Device,txbuf,readdata,n_tx);

	 return (COMMONERR_OK);
 }

Yellow one is CS

Blue one is MOSI

Purple one is SCK

Green one is MISO

AD9528_ADDR_STATUS_READBACK0    0x508

CMB_SPIReadByte(device->spiSettings, AD9528_ADDR_STATUS_READBACK0, &reg508);