Watch window auto update ??

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

Hello all,
I am new to AVR environment. I am using AVR studio 4.12 SP3 + WinAVR 20060421. I am using JTAG mkII and CC2420DBK board with Atmega 128L.

I am able to compile,download and execute the code. When I add some variables to the watch window and single step through the code, I see the variable change its value.
When I run the code, I do not see the variable refresh automatically, until I halt the procesor.

I expect to see the variable to update when it has changed in the watch window. Is this feature not available in AVR studio ??

I have seen this feature on other development systems .

I did search for an answer, could not find any thing conclusive.

Thanks in advance.

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

What you seek is not possible (in fact I can't off hand think of ANY debugger+JTAG combo I've ever used where it is possible). To keep updating the watch window while the program "runs" what would actually have to happen is that it "runs" a single instruction then reads the state of all the watch window items, then runs the next instruction then reads the state of all the watch window items and so on. As such the software on the AVR would actually run at 100's if not 1000's of times slower than "realtime". If you do want it to operate like this then just use "step" (though you'll probably wear out your mouse clicking finger!)

Cliff

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

clawson wrote:
What you seek is not possible (in fact I can't off hand think of ANY debugger+JTAG combo I've ever used where it is possible). To keep updating the watch window while the program "runs" what would actually have to happen is that it "runs" a single instruction then reads the state of all the watch window items, then runs the next instruction then reads the state of all the watch window items and so on. As such the software on the AVR would actually run at 100's if not 1000's of times slower than "realtime". If you do want it to operate like this then just use "step" (though you'll probably wear out your mouse clicking finger!)

Cliff

Hi Cliff,

I have worked with quite a few different Microcontrollers + development environments which have this feature. Here are a few systems I have worked on,

1> TI TMS320LF24xx + JTAG + TI Code Composer Studio.
2> Renesas M16C family ( SKP16C62P starter kit) + ROM Monitor + HEW development environment.
3> TI MSP430 family + JTAG + IAR Workbench.
4> Tern Controllers - (www.tern.com) + ROM Monitor + Paradigm C/C++ environment.

All these had the feature of auto update. The update rate was NOT after every instruction but at a certain rate for the ROM Monitor systems. For JTAG based systems, I dont know the exact way it was done.

I believe this feature is not implemented in AVR Studio or It might not be possible with AVR architecture. I might also be totally wrong.

Sandeep

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

But for a "snapshot" to be taken the CPU execution has to be stopped then the JTAG is clocked to get visibility of the CPU so if you had a JTAG system that offered this it would have been intrusive into full speed operation.

Cliff