data breakpoints?

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

Forgive me if this has been asked before, but search isn't working for me at the moment.

How do I make data breakpoints in avr studio 5?

I'm currently using a JTAGICE mkII.

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

What do you mean with "data breakpoint"?
I think a breakpoint can be placed only on line with valid command.

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

Quote:

What do you mean with "data breakpoint"?

Execution breaks when a certain variable changes it's value.

I think (but am not sure) this is not available in AS5.

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

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

https://www.avrfreaks.net/index.p...

(that's from Atmel but the caveat is that he refers to 5.0 there - perhaps it is in 5.1 though I can't remember reading that in the release note).

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

Aww, Atmel get to work, you're advertising this as a feature :(

And this particular feature would have saved me days of debugging.

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

We have not gotten around to data breakpoints in Studio 5. AvrStudio 4 had limited support for data breakpoints though (depending on device), so you could try it if it saves you time.
You could e.g. compile in AS5, and load and debug the ELF file in AS4.

Dan

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

danv wrote:
We have not gotten around to data breakpoints in Studio 5. AvrStudio 4 had limited support for data breakpoints though (depending on device), so you could try it if it saves you time.
You could e.g. compile in AS5, and load and debug the ELF file in AS4.

Dan

Any plans to support data breakpoints - tracing - watchpoints to AS 5.2? Release?

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

AFAIK watchpoints are supported. (With the usual remark that they are not updated while the AVR is free-running).

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

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

JohanEkdahl wrote:
AFAIK watchpoints are supported. (With the usual remark that they are not updated while the AVR is free-running).

I think you mean watch-points as the variables watch window?

I am confused.
From here http://sourceware.org/gdb/onlinedocs/gdb/Set-Watchpoints.html
it written that watch-point its also called data break-point. What's the difference?
What are Catchpoints?

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

No, I was probably wrong and "watchpoints" should be interpreted the same as "data breakpoints".

Re "catchpoints" the documentaiton you yourself link to says

Quote:
You can use catchpoints to cause the debugger to stop for certain kinds of program events, such as C++ exceptions or the loading of a shared library.

The continued text reveals that catchpoints stop at certain "events" that can be the throwing of a C++ exception, the catching of a C++ exception, an Ada exception, an unhandled exception, a failed Ada assertion, a call to 'exec', a "syscall" (an operating system call) or a call to 'fork'.

Some of these makes little or no sense for 8-bit AVR work, but remember that GCC is a compiler that is aimed for many different taget architectures.

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

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

Does anyone knows if the AS6 Final or the next version (AS6.1 BETA?) will have data breakpoints and tracing features?

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

I can confirm that databreakpoints (that is breaking when a memory location is accessed), and trace is not going to make it into 6.0 :(

Both features are on our catch-up list.

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

Thanks for the reply!

To have these features with all the AVRs is ONLY with IAR AVR & AVR32 Compilers-IDEs right?

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

OKB wrote:
I can confirm that databreakpoints (that is breaking when a memory location is accessed), and trace is not going to make it into 6.0 :(

Both features are on our catch-up list.

So I just tried out AVR Studio 6 SP2 hoping that data breakpoints had been added (I knew they were missing in 5) and I was disappointed to see that they are still not here. This means I am still stuck using AVR Studio 4 as I consider this feature a must have for detecting when the stack grows too big and starts interfering with application data (the data breakpoint feature of AVR Studio 4 and the AVR Dragon _totally_ saved me).

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

Quote:
So I just tried out AVR Studio 6 SP2

Try GDB.
gzhcl

No RSTDISBL, no fun!