This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

66AK2H06 EDMA3 Example Project

Other Parts Discussed in Thread: 66AK2H06

Hi,

I designed the 66AK2H06 on my board and have a application as the following. I found it is hard to relate the parameters defined in the csl_edma3.h with that in the Keystone II data sheet. I wonder if you can create an example project for the following use case, don't need to be perfect, with which I can follow and understand the relation of the csl_edma3.h with data sheet. I am using CCS v6.1.3.00033 now.

  1. Set up timer 0 or 1 for 8KHz interrupt to trigger the EDMA3 (optimized channel?) data transfer from PCIe (or internal share memory, or L2) to share memory inside SOC ( or DDR3A). The 8KHz also output to timer 0 or 1 output pin.
  2. After above DMA completed, trigger the DSP interrupt to a 8KHz_ISR_service.
  3. In the end of the above 8KHz_ISR_service, start EDMA3 transfer from internal share memory (or L2) to PCIe, or DDR3A.
  4. Set up timer 1 or 0 for 100Hz interrupt to start 100Hz_ISR_service.
  5. Set up error handling interrupt error_ISR_service if possible.
  6. 8KHz_ISR_service has higher priority than 100Hz_ISR_service.

Thank you very much!

  • We do have EDMA based UART examples in processor SDK package, you can refer that examples for your reference.
    C:\ti\pdk_k2hk_4_0_1\packages\MyExampleProjects\UART_BasicExample_K2H_c66xDMATestProject
    C:\ti\pdk_k2hk_4_0_1\packages\MyExampleProjects\UART_BasicExample_k2h_armDMATestproject

    Also we do have the latest processor SDK PCIe example based on EDMA, it will do transactions with EDMA.
    C:\ti\pdk_k2hk_4_0_1\packages\MyExampleProjects\PCIE_K2H_wSoCFile_C66BiosExampleProject
    C:\ti\pdk_k2hk_4_0_1\packages\MyExampleProjects\PCIE_K2H_wSoCFile_armExampleProject

    PCIe EDMA source files.
    C:\ti\pdk_k2hk_4_0_1\packages\ti\drv\pcie\example\EDMA

    Download link for the latest Processor SDK
    software-dl.ti.com/.../index_FDS.html
  • Welcome to the TI E2E forum. I hope you will find many good answers here and in the TI.com documents and in the TI Wiki Pages (for processor issues). Be sure to search those for helpful information and to browse for the questions others may have asked on similar topics (e2e.ti.com). Please read all the links below my signature.

    Note: We strongly recommend you to create new e2e thread for your queries instead of following up on an old/closed e2e thread, new threads gets more attention than old threads and can provide link of old threads or information on the new post for clarity and faster response.

  • Hi,

    I think, there are sample EDMA_LLD sample application available for K2H for big endian as well little endian. May be, you could check the KeystoneII_MCSDK_03_01 package through which, you could get the EDMA sample test example projects  from the below path:

    K2H

    ~\edma3_lld_02_11_13_17\examples\edma3_driver\evmTCI6636K2H\sample_app

    ~\edma3_lld_02_11_13_17\examples\edma3_driver\evmTCI6636K2HBE\sample_app

    You could use the above examples to explore EDMA transfer testing with LLD driver API's.

    May be, you could refer the CSL based EDMA transfer test code available at Keystone_MCSDK_02_01 package : C:\ti\pdk_C6678_1_1_2_6\packages\ti\csl\example\edma and this could be used as reference which can be ported to keystone II platform devices.

    http://processors.wiki.ti.com/index.php/EDMA_sample_test_application

    In general, there is no test code available from TI to test EDMA for keystone2 devices but you could refer the attached example which is for C6657 which you can port it for keystone II platform devices and the example uses CSL API's to setup EDMA configuration to verify the data transfer. May be, you can try the below EDMA test code with SPI setup for C6657:

    /cfs-file/__key/communityserver-discussions-components-files/791/6175.3122.3542.8004.Edma_5F00_spi.zip

    Thanks & regards,

    Sivaraj K

    ------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question

    -------------------------------------------------------------------------------------------------------