2014-09-03 03:06 PM
2014-09-03 11:24 PM
Hello,
The DMA configuration will be different for SPI receive mode. Please configure the DMA as Below: //DMA2 setup for SPI1 (DMA2_Channel3_Stream2)DMA_DeInit(DMA2_Stream2);DMA_InitStructure.DMA_Channel = DMA_Channel_3;DMA_InitStructure.DMA_DIR = DMA_DIR_PeripheralToMemory; //TransmitDMA_InitStructure.DMA_Memory0BaseAddr = (uint32_t)SPI2_Buffer;DMA_InitStructure.DMA_BufferSize = (uint16_t)(sizeof(SPI2_Buffer)-1);DMA_InitStructure.DMA_PeripheralBaseAddr = (uint32_t)&SPI1->DR; Thanks & Regards, Balmukund Prasad