DSPRelated.com
Forums

How to debug DMA using APEX_ICE

Started by hifijp2002 March 26, 2003
Hello

I'm debuging DMA of ADSP21161N'SPORT at using APEX_ICE.
I set a Breakpoint in my program.
My program Run.
but Debugger stop at the breakpoint,core hung.
How to debug DMA at using APEX_ICE.
I want you to your suggestion.
Thank you
hifijp2002



On Wed, 26 Mar 2003, hifijp2002 wrote:

> I'm debuging DMA of ADSP21161N'SPORT at using APEX_ICE.
> I set a Breakpoint in my program.
> My program Run.
> but Debugger stop at the breakpoint,core hung.
> How to debug DMA at using APEX_ICE.
> I want you to your suggestion.

It could be a couple of things. Does the 21161 have a BHO bit
to allow you to turn off the core hang?

Can you set up your DMA controller to move only 1 word at a time
to make sure the DMA is actually moving data?

Let the DMA finish, then break the processor. This will prevent the core
from fighting the dma controller for the internal bus when you break.

This is a tough problem to debug, good luck!

Patience, persistence, truth,
Dr. mike


--- In , "hifijp2002" <hifijp2002@y...> wrote:
> Hello
>
> I'm debuging DMA of ADSP21161N'SPORT at using APEX_ICE.
> I set a Breakpoint in my program.
> My program Run.
> but Debugger stop at the breakpoint,core hung.
> How to debug DMA at using APEX_ICE.
> I want you to your suggestion.
> Thank you
> hifijp2002

Try getting your DMA transfers to work using the simulator. You can
feed data by using the I/O streams capability of the simulator. This
way you can debug your DMA control registers settings independent of
hardware.
The emulator has an option to 'stop DMA transfers on breakpoint' -
you may want to enable this while debugging DMA transfers.
Without any details, it's hard to offer too many more suggestions.

Cheers
Bhaskar