Sign in

username:

password:



Not a member?

Search c55x



Search tips

Subscribe to c55x



c55x by Keywords

AIC23 | C5509 | CCS | CSL | EMIF | EVM | GEL | GPIO | HPI | Interfacing | JTAG | McBSP | OMAP | Omap15 | OMAP59 | RTDX | SDRAM | TMS320VC5509 | USB | XDS5

Ads

Discussion Groups

Discussion Groups | TMS320C55x | debug in CCS

Technical discussions about the TI C55x DSPs (including the c5501, c5502, c5503, c5507, c5509, c5510 and OMAP5910).

  

Post a new Thread

debug in CCS - iewil2000 - Sep 27 17:37:26 2007



Dear group,

Is there any way to be notified by CCS in debug mode when a particular 
address is written? One of my buffer seems be polluted by other data, 
but I don't know which line of code did it and in what circumstances.

Thanks,

Wei



(You need to be a member of c55x -- send a blank email to c55x-subscribe@yahoogroups.com )

Re: debug in CCS - Jeff Brower - Sep 27 17:53:15 2007

Wei-

> Is there any way to be notified by CCS in debug mode when a particular
> address is written? One of my buffer seems be polluted by other data,
> but I don't know which line of code did it and in what circumstances.

I found this:

http://www.eetimes.com/press_releases/prnewswire/showPressRelease.jhtml?articleID=X584895&C
ompanyId=1

  "...the UBM allows programmers to set watchpoints or data breakpoints..."

So evidently you need CCS 3.3.  As a new feature, my guess would be that 64x+ devices
are supported first... whether 55x is supported would be a question for TI.

-Jeff



(You need to be a member of c55x -- send a blank email to c55x-subscribe@yahoogroups.com )

Re: debug in CCS - smee642003 - Sep 30 10:37:57 2007

--- In c...@yahoogroups.com, Jeff Brower <jbrower@...> wrote:
>
> Wei-
> 
> > Is there any way to be notified by CCS in debug mode when a 
particular
> > address is written? One of my buffer seems be polluted by other 
data,
> > but I don't know which line of code did it and in what 
circumstances.

Anyone can do this with 55x under CCS 2.1 (I would assume it is in CCS3 
as well).  Under Tools, select C55xx Emulator Analysis then setup 
breakpoints based on the accesses you want trapped.

Look on the TI website for the following.
SPRA841 Debugging TMS320C55x Applications Using Emulation Analysis

Hope this helps,
Gary



(You need to be a member of c55x -- send a blank email to c55x-subscribe@yahoogroups.com )

Re: debug in CCS - iewil2000 - Oct 3 9:47:49 2007

Thanks for the input. SPRA841 is the one.

--- In c...@yahoogroups.com, "smee642003" <gstephany@...> wrote:
>
> --- In c...@yahoogroups.com, Jeff Brower <jbrower@> wrote:
> >
> > Wei-
> > 
> > > Is there any way to be notified by CCS in debug mode when a 
> particular
> > > address is written? One of my buffer seems be polluted by other 
> data,
> > > but I don't know which line of code did it and in what 
> circumstances.
> 
> Anyone can do this with 55x under CCS 2.1 (I would assume it is in 
CCS3 
> as well).  Under Tools, select C55xx Emulator Analysis then setup 
> breakpoints based on the accesses you want trapped.
> 
> Look on the TI website for the following.
> SPRA841 Debugging TMS320C55x Applications Using Emulation Analysis
> 
> Hope this helps,
> Gary
>



(You need to be a member of c55x -- send a blank email to c55x-subscribe@yahoogroups.com )

Re: Re: debug in CCS - Jeff Brower - Oct 3 10:40:47 2007

Gary-

> Anyone can do this with 55x under CCS 2.1 (I would assume it is in CCS3
> as well).  Under Tools, select C55xx Emulator Analysis then setup
> breakpoints based on the accesses you want trapped.
> 
> Look on the TI website for the following.
> SPRA841 Debugging TMS320C55x Applications Using Emulation Analysis

To add to the discussion, SPRA841 refers to "watchpoint triggers" and not data
breakpoints.  Watchpoint triggers are subject to pipeline latency and apparently need
to be monitored in asm instruction display, not C code display.

SPRA841 makes reference to data-matching improvements in future 55x devices:

  Watchpoint Limitations
  The present implementation is the first step on the roadmap to extensive
  debugging capabilities within the C55x family of DSPs. It still has some
  limitations as can be seen from the previous sections.

although I'm not sure that TI has actually added data breakpoints for the 55x family.

-Jeff



(You need to be a member of c55x -- send a blank email to c55x-subscribe@yahoogroups.com )

Re: debug in CCS - smee642003 - Oct 3 13:21:40 2007

Semantics aside...
Yes, you need to be aware of pipeline latencies.  That being said, 
you certainly can use it in C code display in a minimally-optimized 
project.  If you do have reason to question the location of the 
break, changing the view to mixed source/asm for a moment will clear 
up any doubts.

As far as what changes they may or may not have made to the family 
over time wrt this feature, I don't know.

Gary
--- In c...@yahoogroups.com, Jeff Brower <jbrower@...> wrote:
> To add to the discussion, SPRA841 refers to "watchpoint triggers" 
and not data
> breakpoints.  Watchpoint triggers are subject to pipeline latency 
and apparently need
> to be monitored in asm instruction display, not C code display.
> 
> SPRA841 makes reference to data-matching improvements in future 55x 
devices:
> 
>   Watchpoint Limitations
>   The present implementation is the first step on the roadmap to 
extensive
>   debugging capabilities within the C55x family of DSPs. It still 
has some
>   limitations as can be seen from the previous sections.
> 
> although I'm not sure that TI has actually added data breakpoints 
for the 55x family.
> 
> -Jeff
>



(You need to be a member of c55x -- send a blank email to c55x-subscribe@yahoogroups.com )