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.

AM5728: Getting handle for DSP1 EDMA from edma3init

Part Number: AM5728

I am working with MCASP2 on DSP1 on the AM5728.

I am trying to configure EDMA for receiving and transmitting on this MCASP port.

To configure MCASP2, I use the chip support libraries that are part of the AM5728 PDK and not the MCASP driver library. This means that I must configure the EDMA myself. To set up the EDMA, I am using the EDMA driver libraries.

The AM5728 has several EDMA modules, I want to use the EDMA module that is in DSP1.

To set up the EDMA transfers, I call functions from the driver library like EDMA3_DRV_getPaRAM, EDMA3_DRV_requestChannel, EDMA3_DRV_linkChannel, and so forth.

The first parameter provided to the EDMA3_DRV_* functions is a handle to the EDMA module.

The question is: on the AM5728, how do I get the handle for the EDMA module in DSP1?

I currently have this MCASP/EDMA set up running very nicely on the older 66AK2G SOC and I am porting it to the AM5728.

In the 66AK2G code, at the program startup, I call a function from the EDMA driver library named edma3init and this function edma3init returns the EDMA module handle used in the EDMA3_DRV_* functions. edma3init ultimately calls EDMA3_DRV_open to get the handle.

The first parameter to edma3init is an ID that identifies the DMA module to be used. For the 66AK2G I think there are two DMA modules.
I don’t think I found any constants to use for parameter 1 so I just pass 0 to the edma3init function and everything seems to work.

It’s not clear what ID value to pass to edma3init to use the DSP1 EDMA and I’m not sure I can just pass 0 to get the DSP1 EDMA module.

I am using the Processor SDK for RTOS 06_03_00_106 (software-dl.ti.com/.../index.html).

Thanks in advance,

sjf