Strange behaviour (bug?) AVR Studio + JTAG AVR Mk2

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

Hi,
I was debugging a program on a Mega16 using Timer0 ints at 625 Hz.
When running the prog under AVR Studio with one HW Breakpoint and a watch window with automatic update, some ~100 ints where lost. Without the break everything was running normally. Is this normal behaviour?
What is the time needed with JTAG to get data from a running chip?
Thx, Fried

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

That is normal behaviour. To do the auto update of the watch window it effectively runs an instruction, breaks, draws the window, runs another one so it's no longer operating at anything like real time. You can't mix realtime debug and auto updates. I think you'll find the same occurs if you put a count/condition on a breakpoint too.

Cliff