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.

RTOS/TMDXIDK5718: EDMA3 driver usage from DSP

Part Number: TMDXIDK5718

Tool/software: TI-RTOS

Hi

I'm using the IDK5718 development kit.
There I would like to use the EDMA3 driver for the C66 DSP.

I read the documentation but I cannot find the correct library for that device,

I have to inclue two libraries: one for the driver and one for the resource manager,

The driver I found here:

C:\ti\edma3_lld_2_12_03_27\packages\ti\sdo\edma3\drv\lib\66\release

But for the resource manager I could not figure out which is the correct one:

Within the directory C:\ti\edma3_lld_2_12_03_27\packages\ti\sdo\edma3\rm\lib
I can find am437x-evm and am335x-evm but nothing for am57x. And there are lots of
C66xx variants but I'm not sure what is the correct one?

Regards,
Markus

  • The RTOS team have been notified. They will respond here.
  • Markus,

    There are several driver examples for EDMA usage with the PDK drivers. You can look at MCASP, UART or SPI  EDMA examples.

    Yes, EDMA and the Resource manager libraries are required to be linked to the BIOS project using following script and you also need the EDMA Sample channel mapping to be included. Refer: pdk_am57xx_1_0_7\packages\ti\drv\uart\test\am572x\armv7\bios\uart_arm_dma_evmAM572x.cfg

    var Edma = xdc.loadPackage ("ti.sdo.edma3.drv.sample");
    var drv = xdc.loadPackage ("ti.sdo.edma3.drv");
    var rm = xdc.loadPackage ("ti.sdo.edma3.rm");

    Based on the RTSC platform, this will bring in the rm library from  tda2xx-evm/66/debug/edma3_lld_rm.ae66.  EDMA uses the same libraries for AM57xx, DRA7xx, and TDA2xx which all have the same memory addressing and EDMA architecture.

    In addtiion the following header files and structures :

    Refer to main_uart_test under  pdk_am57xx_1_0_7\packages\ti\drv\uart\test\src

    /* EDMA3 Header files */
    
    #include <ti/sdo/edma3/drv/edma3_drv.h>
    
    #include <ti/sdo/edma3/rm/edma3_rm.h>
    
    #include <ti/sdo/edma3/rm/sample/bios6_edma3_rm_sample.h>
    
    extern EDMA3_RM_InstanceInitConfig sampleInstInitConfig[][EDMA3_MAX_REGIONS];
    
    extern EDMA3_RM_GblConfigParams sampleEdma3GblCfgParams[];

    Refer UartApp_edmaInit in the file for the EDMA driver handle creation.

    Inside, EDMA driver you can refer to the examples for AM57xx here:

    edma3_lld_2_12_04_28\examples\edma3_driver\evmAM571x_DSP

    Hope this helps.

    Regards,

    Rahul