DSPRelated.com
Forums

Debugging questions for the C6711

Started by trutano March 20, 2004
Hi,

I am using the C6711 DSK with a THS1206 Daughter card (ADC with
sampling rate up to 6Msps). Currently, my sampling frequency is
100kHz. To perform the data acquisition, I am using an EDMA Channel
(configured a channel and a reload) to transfer the data continously
from the ADC to the memory of the DSP using a Ping-Pong buffering
scheme. During my debbuging phase, I have seen strange things in my
results which makes me ask the following questions:

1) I noticed that when I halted the CPU to make some debugging and
used the Graph Tool of Code Composer Studio to look at my buffers,
the buffers where still updating themselves meaning that the EDMA
channel was still transfering data continously. My question is: When
the DSP is halted, does the peripherals inside the DSP such as the
EDMA, Timers, McBSP, etc. are also halted or they continue doing
their work?

2) If I didn't halt the CPU and looked at the buffers using the Code
Composer's Graph Tool in real-time, I noticed certain jumps in my
signals in a particular pattern (jumps where found approximately
every 50 samples). I think that the buffer is updating itself faster
than the speed at which the DSP is transfering the data to the Code
Composer's Graph Tool. I have my C6711 DSK connected to the parallel
port of my computer. My question is: How fast is the JTAG Emulation
Port? Can the communication between the DSP and my computer be too
slow for real-time debbuging and analysis of buffered data?

Any help will be greatly appreciated.

-Juan Torres




> Date: Sat, 20 Mar 2004 05:18:20 -0000
> From: "trutano" <>
> Subject: Debugging questions for the C6711
>
> 1) I noticed that when I halted the CPU to make some debugging and
> used the Graph Tool of Code Composer Studio to look at my buffers,
> the buffers where still updating themselves meaning that the EDMA
> channel was still transfering data continously. My question is: When
> the DSP is halted, does the peripherals inside the DSP such as the
> EDMA, Timers, McBSP, etc. are also halted or they continue doing
> their work?

Juan,

Refer to the Emulation section in the DMA and EDMA chapters of the
C6000 peripherals guide.

A DMA channel (620x/670x) can be configured to either pause or
continue running during an emulation halt. An EDMA channel
(621x/641x/671x) always continue running during an emulation halt.

This might be not very helpful though.

Regards,

Andrew

> Any help will be greatly appreciated.
>
> -Juan Torres



Hi, I am also using C6711 DSK, but application in image processing.
I could answer several question related to my experience.

Q:
> 1) I noticed that when I halted the CPU to make some debugging and
> used the Graph Tool of Code Composer Studio to look at my buffers,
> the buffers where still updating themselves meaning that the EDMA
> channel was still transfering data continously. My question is:
When
> the DSP is halted, does the peripherals inside the DSP such as the
> EDMA, Timers, McBSP, etc. are also halted or they continue doing
> their work?

A: Related to my previous experience in EDMA, the EDMA doesnt stop
even the Code Composer already stop running. In order to make the
EDMA stop running you must link the EDMA table to the empty Table.
Or the easy way you could just use the CSL library command which is
EDMA_clearPram(Your_EDMA_channel) and set the breakpoint after this
line. Example:
1 ....
2 ....
3 EDMA_clearPram(Your_EDMA_channel)
4 => Put breakpoint in this line
5 ....
AFter the program stop in the breakpoint, the EDMA will immediately
stop running. I am using this way just for debugging purpose, so I
could make sure the EDMA get the correct data.

Q:
> 2) If I didn't halt the CPU and looked at the buffers using the
Code
> Composer's Graph Tool in real-time, I noticed certain jumps in my
> signals in a particular pattern (jumps where found approximately
> every 50 samples). I think that the buffer is updating itself
faster
> than the speed at which the DSP is transfering the data to the
Code
> Composer's Graph Tool. I have my C6711 DSK connected to the
parallel
> port of my computer. My question is: How fast is the JTAG
Emulation
> Port? Can the communication between the DSP and my computer be too
> slow for real-time debbuging and analysis of buffered data?

A:
How fast is the JTGA Emulation Port it will depend on the interface.
If you are using JTAG Emulation which connected using paraller port,
the maximum speed will same as the parallel port speed (EPP mode)
which is apprx 500kB - 700kb or maybe could be slower. If you need a
real time debugging and analysis, I suggested you to buy XDS510
(http://focus.ti.com/docs/toolsw/folders/print/xds510.html), or
XDS560 (http://focus.ti.com/docs/toolsw/folders/print/xds560.html).
Which XDS is suitable with you, it will depend on you.

I hope it could solve your problem

Best Regards,

Henrry Andrian
Graduated Student - ISCI LAB (http://isci.cn.nctu.edu.tw)
National Chiao Tung University - Hsinchu, ROC.

Lab Phone. +886-3-5712121 ext.54358
Cellular Phone. +886-931-198986