Post Go back to editing

BF707 EZ-KIT SPI Flash read/write in DMA mode

Hi,

Is it possible to do the Flash read/write in BF707 EZ-KIT using SPI DMA mode?

I had tried combining the SPI Flash readback code and SPI DMA mode sample code available in CCES. But couldn't access the Flash. 

Also the SPI DMA sample code seems to be incomplete. It would be really helpful if you could share a sample code for the flash read/write or for the proper configuration of DMA.

Parents Reply Children
  • Hi Anand,

    Can you confirm whether you have configured the softconfig switches (U3, U4, U5) in your code.

    Yes I did. So can you please clarify what difference does it make for the QUAD SPI with DMA enabled?

    I have attached SPI flash Quad mode example code for ADSP-SC589 processor. This can be directly run on ADSP-SC589 Ez-Kit.

    Thanks. I am using BF707 EZ-KIT. I presume I have to modify the code for the BF707. 

    In the code you have shared, I could see the DMA is configured only for the Rx but not for Tx. Does that mean the DMA + Quad mode won't work?

  • Hi,
     
    For Quad mode, SPI data lines D2 and D3 will not connect to Flash, if we didn't configure the soft config switches(U4, U5).

    And DMA can be used to read data from the flash memory but writing data to the flash device using DMA is not possible because writing to flash requires sending a series of commands to flash device the timing of which may not be met when using DMA.

    Regards,
    Anand Selvaraj.

  • DMA can be used to read data from the flash memory but writing data to the flash device using DMA is not possible because writing to flash requires sending a series of commands to flash device the timing of which may not be met when using DMA.

    This is only in the case of DMA + QUAD SPI Mode, correct? because, I was able to write to flash in DMA + STD SPI mode using the ADI SPI device driver. And in this case the time taken for a page write is twice as that with DMA disabled.