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: EDMA issue: DMA_DREQ is not being triggered by McSPI module

Part Number: AM5728
Other Parts Discussed in Thread: 66AK2G12, TMDSEVM572X

Hi,

Please find the related question in this thread: https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1041008/am5728-edma-issue-dma_dreq-is-not-being-triggered-by-mcspi-module?tisearch=e2e-sitesearch&keymatch=%2520user%253A496786#

Hoping to get a quick solution for this problem

Thanks in Advance!!

Regards,

Dheeraj

  • Hello Dheeraj,

    K2G and AM57x are two different parts. I am assuming that your setup is not completely identical on the two different parts, so please provide additional information about cores, software used, steps to replicate, debug information, etc.

    Regards,

    Nick

  • Hi Nick,

    Yes I know they are 2 different parts but I am only concerned with similar error on Am572x.

    I am using Bare metal DSP C66x coding on AM5728 Sitara SoC

    Steps to replicate the problem:

    1. Configure EDMA of DSP by setting registers and by creating valid parameter set. I have made ACNt = 4 bytes and BCNT = 8 so as to send and fetch 32 bytes of data at once. Source address for EDMA is internal buffer pointer for 32 bytes and destination address is McSPITx buffer for channel 0.

    1a. Map McSPI4Tx_0 DMA-DREQ to DSP_EDMA_CC

    2. Initialise McSPI4 with proper values into register. I have configured SPI to Tx and Rx 32 bytes of data.

    3. Set EESR register of the particular channel to get DMA_DREQ from McSPI4

    4. Now Trigger the McSPI4_Tx_0 by setting '1' in the McSPI4_CHCTRL register(enabling the channel). Ideally, when we do this, we need to get McSPI_Tx_0 request to DSP_EDMa_CC. But unfortunatels no DMa_DREQ is getting generated.

    But when I Manually trigger the channel by writing into ESR register, the EDMA works fine and transfers data from internal buffer to McSPITx Buffer and data will be sent out.

    So please help me with this problem

  • Hello Dheeraj,

    Ok, It does not sound like you are using 66AK2G12 in your design. So I am guessing that you did not mean to select "EVMK2G" when you were creating your thread, and that you meant to select something like "TMDSEVM572X".

    I am going to edit your question to put AM57x in the title, and then I will send your thread over to the team that supports AM57x. Please ping the thread if they do not respond within several business days.

    Regards,

    Nick

  • Hi Nick,

    Sure thank you so much

  • Hello Dheeraj,

    Since this is a duplicate, I will close this thread. We have received the other thread as well.

    Regards

    Hemant

  • Hi Hemant,

    Sure you can close the thread, I am waiting for the reply from your side for the solution.

    Regards,

    Dheeraj

  • Hi Hemant,

    Just now I looked into it. This is not a duplicate thread. The other thread about EDMA issue is somthing different. Hence I request you to not to close this issue.

  • Hi,

    This is duplicate thread and the resolution is already commented by me here in the link(see below)

    e2e.ti.com/.../3851828