STM32 SPI2 Not Receiving Data via DMA Despite Clock Generation.
I have an ADC connected to an STM32-L4P5DK. Data should be read in the background by the DMA controller. SPI TX is assigned to DMA1 CHANNEL2, and SPI RX is assigned to DMA1 CHANNEL3. Both DMA1 CHANNEL2 and CHANNEL3 are synchronized with EXTI1 (DRDY signal from the ADC). The STM32 SPI2 is configured as a full-duplex master. Both SPI TX(to transmit dummy bytes) and RX are synchronized with the external interrupt (pin PD1 is assigned to DRDY).
The problem is that I can see the data on the scope, but SPI2 is not receiving any data.
I start TX using the function:
HAL_SPI_Transmit_DMA(&hspi2, tx, 0x1b);
And receive the transmission using:
HAL_DMA_Start_IT(&hdma_spi2_tx, (uint32_t)adc_buf, (uint32_t)&(SPI2->DR), 0x1b);
SET_BIT(SPI2->CR2, SPI_CR2_RXDMAEN);
DMA1 CHANNEL1, set to very high priority, is used to pull the chip select pin low on the DRDY falling edge. This channel generates a DMA request to control the CS pin.

Yellow - DRDY from ADC , Green - CS , Red - SCK , Blue - MISO.
SPI RX config:

SPI TX config.

Regards,
Aji
