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.

Where is the definition of 'sampleInstInitConfig' in EDMA3 example project, C6678?

Hi,

I learn EDMA3 example project of C6678 EVM. I cannot find the definition of the structure:

 

 

main.c:

extern EDMA3_DRV_InstanceInitConfig sampleInstInitConfig[][EDMA3_MAX_REGIONS];  

 

 // C:\ti\edma3_lld_02_11_05_02\packages\ti\sdo\edma3\drv\sample\src\platforms/sample_c6678_cfg.c

EDMA3_RM_InstanceInitConfig sampleInstInitConfig[NUM_EDMA3_INSTANCES][EDMA3_MAX_REGIONS] =

These definitions are different:

EDMA3_DRV_InstanceInitConfig

EDMA3_RM_InstanceInitConfig

 

 

Where is the definition of 'sampleInstInitConfig'?

It is really confusing. Please help me. Thanks.

  • I have read 'EDMA3_Driver_User_Guide.pdf'. On page 75/87, it has:

    /* Driver Instance Initialization Configuration */

    EDMA3_DRV_InstanceInitConfig sampleInstInitConfig =

    {

    /* Resources owned by Region 1 */

    /* ownPaRAMSets */

    /* 31 0 63 32 95 64 127 96 */

    {0xFFFFFFFFu, 0xFFFFFFFFu, 0xFFFFFFFFu, 0xFFFFFFFFu,

    /* 159 128 191 160 223 192 255 224 */

     

    But I do not find similar definition in the C6678 sample source files. What is the problem?

  • From the .map file, I find the following information, but I still cannot find its source file.

     

     

    .fardata   0    0083a9d0    00004764    

                      0083a9d0    00000fc0     edma3_lld_rm.ae66 : edma3_c6678_cfg.oe66 (.fardata:defInstInitConfig)

                      0083b990    00000fc0     edma3_lld_drv_sample.ae66 : sample_c6678_cfg.oe66 (.fardata:sampleInstInitConfig)

  • Sorry, I forgot to mention that the version of CCS is 5.5. The version of LLD EDMA3 is 02-11-05--02.

    I attach the source sample file for the driver library in order to get someone's help.0652.sample_c6678_cfg_0.zip

  • Hi Robert,

    You can find the EDMA3_DRV_InstanceInitConfig structure definition at edma3_lld_02_11_05_02\packages\ti\sdo\edma3\drv\edma3_drv.h

    Thanks,

    HR