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.

Use of debug mode in DMA module of TMS570LS20216

Other Parts Discussed in Thread: TMS570LS20216

Hi

I m working on TMS570LS20216 microcontroller. In the Global Control Register of DMA module, bit 8-9 is DEBUG MODE. I want to know what value should be set for these bits and what each one 00,01,10,11 represent. How is it useful in the DMA operation. what exactly happens in the suspend mode and how this debug mode helps?

Thanks and Regards

Pallavi

 

  • Pallavi,

    These bits determine what the DMA controller does when the CPU halts (for example on a breakpoint, or because the halt button was pressed).

    You can make it ignore the CPU halt completely, in which case it will keep servicing the peripherals it has been configured to service,  or make it finish the current frame or block, or just stop immediately.   If in doubt leave it as it's default;  if you get into a particular debug problem later, you'll probably know which setting you want based on the problem you are trying to debug.

    The DMA also has a useful watchpoint feature for debug purposes, through registers DCTRL, WPR, WMR.  These work the opposite way, they let you halt the CPU whenever the DMA accesses a memory address or range.  You can then inspect the DMA's working pointers.  This can help if you are unsure of how you've programmed the DMA's frame and element counts and want to see if the DMA is really accessing the address you programmed it to (or though you programmed it to).

    Best Regards,

    Anthony