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.

AM5716: DSP EDMA configuration

Part Number: AM5716
Other Parts Discussed in Thread: SYSCONFIG

Hi,

I need to use DSP1 EDMA to transfer data between EDMA and McASP1 on AM5716. In my code, I am trying to configure the DSP1 EDMA , such as set up PaRAM, etc. However, after my configuration function is executed , I check the configuration using emulator, I found all filed are still 0. It seems my configuration data was not written into. My other code is ruing on DSP well, such as toggle LEDs. 

I read some reference, and a refence says, DSP EDMA must be removed from idle, etc. My question is :

is DSP1 EDMA needed to be active before configure it?  if yes, how do I check is the EMDA is active?

I also tried to set DSP core in No idle state by set IDLEMODE(0x1) in  DSP_SYS_SYSCONFIG  to : NO_IDLE in my init code, but it is still 0.

any help is highly appreciated!

Ron

  • Hi Ron,

    Did you try to set DSP_SYS_SYSCONFIG[3:2] IDLEMODE to 0x3? For details about wakeup check TRM section 5.3.3.4.3 DSP IDLE Wakeup at:
    www.ti.com/.../spruhz7g.pdf

    BR
    Tsvetolin Shulev
  • Hi Tsvetolin,

    thanks for your response. Yes, I did try to set DSP_SYS_SYSCONFIG[3:2] IDLEMODE to 0x3, but it stay unchange, that is 0x0. the same issue as my init code try to programm DSP1 EDMA, but all fields remain 0x0. I can configure system EDMA without any problem. It seems there is no access to those registers.

    I had similar issue when I set McASP1, but after I did power on and pinmux for McASP1, I am able to configure McASP1. I am wondering if I need to something to active DSP1 EDMA before setting it up?

    Thanks,

    Ron
  • Rong,

    There are plenty of examples of configuring EDMA from DSP in the Processor SDK RTOS. Can you please check the examples to see what you are missing with this setup.

    If you are using baremetal No-OS CSL then I recommend that you look at the example here:
    pdk_am57xx_1_0_9\packages\ti\csl\example\mcasp\mcasp_transmit

    If you are using MCASP LLD and EDMA LLD then the examples under MCASP driver at following location may be similar to your setup:
    pdk_am57xx_1_0_9\packages\ti\drv\mcasp\example

    The examples run from both ARM and the DSP so when looking at the code look for difference by tracking the macro _TMS320C6X

    Regards,
    Rahul