1 Reply Latest reply on Aug 24, 2015 2:03 AM by Madhu Lakshmipathy

    Setting up DMA


      If I were trying to set up the FX3 to have a EEPROM on i2c, an FPGA and SPI flash chip both set up on SPI, how and what files would I need to include in my project to enable the set up of the DMA to manage this?  Does the uC even need to interact with the interfaces, or can the DMA manage it on its own?

        • 1. Re: Setting up DMA
          Madhu Lakshmipathy



          The uC need to interact with the interface for doing communication over SPI and I2C Interfaces. The files to be added are cyu3spi.h and cyu3i2c.h.


          For example projects on SPI, please refer "C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\firmware\serialif_examples\cyfxusbspidmamode" and C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\firmware\serialif_examples\cyfxusbspiregmode" (The first one is DMA Mode in which we write large volume of data contiuously. The second one is register mode where we write wrd by word using registers)


          Similarly for I2C Interface, please refer the examples in "C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\firmware\serialif_examples\cyfxusbi2cdmamode" and C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\firmware\serialif_examples\cyfxusbi2cregmode"




          -Madhu Sudhan