9 Replies Latest reply on Feb 5, 2015 9:58 PM by userc_10213

    SPI master and DMA, tested ?

      I am using BCM943362WCD4, which uses STM32xxx MCU and SDK 3.1.1

       

      I am trying to enable DMA for SPI master and it just does not work. Transfer times out trying to send out first byte. Has DMA even been tested ? Line 394, I can read:


      dma_init.DMA_PeripheralBaseAddr = ( uint32_t )spi->port->DR;

       

      This is obviously wrong, passing port DR register content instead of DR register address, I replaced by

       

      dma_init.DMA_PeripheralBaseAddr = ( uint32_t )&(spi->port->DR);


      But that does not change anything, timeout again.


      I'll keep reviewing the code, but it would be nice to have some help on that topic, has anybody enabled DMA for SPI master ?



      Thanks.