[ADuCM3029]Spi read operation not working


I'm trying to do a read operation from an IC. I can see the MISO data at the bus using an oscilloscope, but I can capture this in my application.

I'm using Analog Devices API functions:

  • adi_spi_MasterSubmitBuffer
  • adi_spi_GetBuffer

I need to send and receive data at the same transaction, so I send two Tx bytes and configures to receive two Rx bytes. But Rx bytes doesn't have the same data at the bus.

I'm using continuous mode, Dma, ADuCm3029 is the master and the chip select used is a GPIO, so I use ADI_SPI_CS_NONE.

The MISO pin has a 100k pull-up resistor.