JTAGICE mk2 data breakpoints or tracepoints

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I got my new toy - jtagice mk2 !
it works ok. I can go step-by-step. I can set program breakpoints. I can set trace. I try to set data breakpoints, but did not get what I want.

to be more specific: I want to set breakpoints when some C variable reach particular value. how can I do that ?

I open Debug Configurations and create one from active Project. On Trace tab I check: General - enable trace, trace method: Nanotrace. On Data Trace Options, I chose: memory access type: write, also set lower and upper boundary. On NanoTrace Options I press button Detect, to get buffer start. Press button Apply, and that's it.

Now, In source pane I right-click on first column to get pop-up menu, and select ADD TRACEPOINT. new pop-up open, and there I can check: Tracepoint is enabled, Trigger event: Data write, Tracepoint Type: DataTrace, and so on.

When I try to set trigger value, I get Warning: does not support value comparison !

Last Edited: Mon. Mar 7, 2011 - 12:17 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

cont.
There must be some trick to get what I want. It is no use to trace every write to my variable. I want to start trace only when overflow start.

It is possible to set program breakpoint, but I want to work with data in intelligent way.

Any hint ? Is it possible ?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

well, it is not possible.

never mind, if you put program breakpoint at right line of code, you can get what you want.

HINT: on DEBUG view in Variables panel, right-click mouse. new pop-up open. select ADD GLOBAL VARIABLES and magic come to you !