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.

TDA4VM: Udma_ringDequeueRaw fails

Part Number: TDA4VM

Hello TI,

I am trying the example for UDMA memory copy available in the PDK, udma_memcpy_test.c, on MCU R5 and the transfer is not being completed, there is no update on the destination buffer and the completion queue is always empty (Udma_ringDequeueRaw returns UDMA_ETIMEOUT).

Is this an issue with the channel? And how can I solve it?

Thank you, 

Marina

  • Hi Marina,

    Are you seeing this issue with out of box example or did you make any changes in that?
    Also, can you please share the SDK version you are using?

    Regards,
    Parth

  • Hi Parth,

    I am seeing in the out of box example in pooling mode (UDMA_TEST_INTR = 0) .

    The SDK version is 8.02.00.21

    Regards,

    Marina

  • Hi Marina,

    Can you please check if this example is supported on mcu1_0? which navss is used in this case? 

    Regards,

    Brijesh

  • Hi Brijesh,

    MCU NAVSS is being used (instId = UDMA_INST_ID_MCU_0). The example works until the function Udma_ringQueueRaw, the forward queue occupancy increases, but the completion queue is alway empty.

    Regards,

    Marina

  • Hi Marina,

    Is the same example working fine on other cores? I had run it long time back on mcu2_0. Can you please check if channel is getting enabled? Because if it is not, it will not dequeue element from the forward queue. 

    Regards,

    Brijesh 

  • Hi Brijesh,

    The channel is being enabled.

    I did not test in other cores, our intention is to adapt this example to be used in MCU R5.

    Regards,

    Marina

  • Hi Marina,

    I just tried UDMA memcpy example on mcu1_0 from SDK8.6. I am able to run it fine. Please find below console log from this application run. I dont see issue in ringDequeueRaw. Is this is same udma_memcpy_testapp_freertos example you are using? 

    UDMA memcpy application started...
    UDMA App memcpy test statistics:
    Completed packet count       : 100
    Completed payload byte count : 102400
    Started byte count           : 102400
    UDMA App memcpy test statistics:
    Completed packet count       : 200
    Completed payload byte count : 204800
    Started byte count           : 204800
    UDMA App memcpy test statistics:
    Completed packet count       : 300
    Completed payload byte count : 307200
    Started byte count           : 307200
    UDMA App memcpy test statistics:
    Completed packet count       : 400
    Completed payload byte count : 409600
    Started byte count           : 409600
    UDMA App memcpy test statistics:
    Completed packet count       : 500
    Completed payload byte count : 512000
    Started byte count           : 512000
    UDMA App memcpy test statistics:
    Completed packet count       : 600
    Completed payload byte count : 614400
    Started byte count           : 614400
    UDMA App memcpy test statistics:
    Completed packet count       : 700
    Completed payload byte count : 716800
    Started byte count           : 716800
    UDMA App memcpy test statistics:
    Completed packet count       : 800
    Completed payload byte count : 819200
    Started byte count           : 819200
    UDMA App memcpy test statistics:
    Completed packet count       : 900
    Completed payload byte count : 921600
    Started byte count           : 921600
    UDMA App memcpy test statistics:
    Completed packet count       : 1000
    Completed payload byte count : 1024000
    Started byte count           : 1024000
    UDMA memcpy using TR15 block copy Passed!!
    All tests have passed!!
    

    Regards,

    Brijesh

  • Hello Brijesh,

    it worked with the example in PDK 8.6.

    Thank you and Regards,

    Marina