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.

TMS570 DMA

Hi, guys!

 

I am kinda new at controllers and sorry if my question is stupid.

I've got new TMDX570LS20SUSB ( TMS570 Microcontroller USB Kit ). And I'm reserching DMA. For this purpose I tried to execute some exaples that were in the KIT. There are 2 exaples there: DMA_MPU and DMA_Parity (if you don't know what is it, just ask me and I'll paste code here). I realised that DMA_Parity work with an error on purpose, so I commented the code that causes an error, but neither DMA_MPU nor DMA_Parity examples do not work (no data transfer occurs). If you know, what should I edit in that code to success in DMA transfer, please let me know! 

In fact it would be anough for me to have a simple example of DMA data transfer from one data array to another.

Thanks in advance!

  • Hi Polkovnikov,

    Please check for the following register settings.

    1. Global Control register - Whether DMA Enable bit set or not and also the DMA Debug Mode.

    2. Corresponding Port assignment register - whether it is set to PortB or not ( i.e '0x04' )

    3. DMA pending Register - whether a DMA request has been generated or not. if set then check the DMA Request Assignment Register for DMA Request mapping to DMA channel.

    Please share the source code and also highlight the code which you have commented.

    Regards

    Hari

     

                            

  • Hi Polkovnikov,

    Hari gave you a good answer. I do a DMA example code as your requirement as below:

    2781.TMS570LS20USB_DMA_DATA.zip

    Hope that this may help you.

    Best Regards,
    Shelford