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.

EVMK2H: EDMA example on ARM processor.

Part Number: EVMK2H
Other Parts Discussed in Thread: SYSBIOS

Hi all,

Can you please provide the example of EDMA on ARM processor on EVMK2H board? So far I only can find the example of EDMA for DSP from pdk_k2hk_4_0_15

Thanks a lot.

  • Hi, Chanh,

    If you meant the example for ARM/RTOS, then you can specify arm as the processor when running pdkProjectCreate.sh, 

    # * module - all
    # *              -or-
    # *              aif2 / bcp / cppi / csl / dfe / emac / fatfs / fm / fftc /
    # *              gpio / hyplnk / i2c / icss_emac / iqn2 / mcasp / mcbsp / mmap / mmcsd /
    # *              nimu / nimu_icss / nwal / osal / pa / pcie / pktlib / pruss / qm / rm /
    # *              sa / serdes-diag / spi / srio / tcp3d / tfw / transportqmss /
    # *              transportsrio / tsip / uart / usb / wdtimer / vps / dcan / dss / lcdc
    # * project type - all / example / test
    # * processor - arm / dsp / m4 / mcu / mpu

    If you meant for ARM/Linux, there isn't example. 

    Hope this answers your question.


    Rex

  • Hi Rex,

    Can you provide more detail on ho to use pdkProjectCreate.sh? Will it build the example into bin file, and where i can find the source file of example for ARM (as I may need to modify based on the need)?

    Is the edma example is under csl?

    Thanks.

  • Hi, Chanh,

    The pdkProjectCreate.sh is self-explanatory. Please take a look at the file. The script only pull the needed files into the modules folders. It doesn't build binary, but only creates the project folders with source code in them. My understanding of the PDK is that the CSL is lowest layer which accesses the hardware registers. EDMA should be above it.

    Rex

  • Dear Rex,

    Since I use Windows OS so I run the batch file pdkProjectCreate.bat on command promt and encouter the error:

    Do I miss any step?

    Thanks.

  • Hi, Chanh,

    I think you miss one argument when execute the .bat file. The path showed up as packages\\MyExampleProjects. Check the .bat file for correct argument to pass.

    Rex

  • Hi Rex,

    I found the issue is with the CCS directory defined in the bat file, I am using CCS 9.2, but the file define the directory of CCS 9.1.

    After import all sample project, I still can not find the DMA for ARM example that similar to C:\ti\pdk_k2hk_4_0_15\packages\ti\csl\example\edma (which I already can run on DSP).

    Thanks.

  • Hi, Chanh,

    I'll have the RTOS expert to help you.

    Rex

  • Hi,

    For the bare-metal case:

    • pdk_k2hk_4_0_15\packages\ti\csl\example\edma\edma_test.c you referred to only works for C66x. It is not for A15. 
    • pdk_k2hk_4_0_15\packages\ti\csl\example\edma\edma_test folder is intended for AM57x, not for K2H.

    If you can work with EDMA LLD (need SYSBIOS):

    • edma3_lld_2_12_05_30E\examples\edma3_driver\evmTCI6636K2H_A15 is what you are looking for. You need to read the EDMA user guide under edma3_lld_2_12_05_30E\packages\ti\sdo\edma3\drv\docs
    • Or, you can refer to some K2H peripheral driver examples which used EDMA, e.g. PCIE, by just looking at the EDMA setup and transfer part. 

    Regards, Eric

  • Hi Eric,

    I have modify the PCIE example to test the EDMA3.

    Thanks a lot.