Monitoring programs on the fly

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

Hi guys, I was wondering if there is a way to monitor a program while it is running. Id like to be able to see the values in registers, values of I/O pins .. etc.

Most of my programing experience is on industrial PLCs so not knowing how to check on this stuff while the program is running is a pain.

I'm not a cartoon character but I play one in real life.

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

Look into the JTAG/DebugWire functionality of the AVRs (most AVRs have one debugging capability). You'll need a JTAG unit such as the JTAG MKII or Dragon from Atmel -- check out my article in the tutorials forum about the different official tools Atmel offers, specifically the debugging units mentioned above.

- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

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

I just print stuff out the serial port

Imagecraft compiler user

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

Quote:
Monitoring programs on the fly
Unfortunately JTAG or DW will only show stuff after it stops, so Bob's advice may serve you best. Some high tech FLIES you have around there... :?

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

js wrote:
Quote:
Monitoring programs on the fly
Unfortunately JTAG or DW will only show stuff after it stops, so Bob's advice may serve you best. Some high tech FLIES you have around there... :?

I'm working on a system that will take an RS232 signal from a tag reader, format the data into a required string and send that string over Ethernet.

It would make my life a lot easier if I could see how the data looks going into and comming out of every conversion that it has to go through.

I'm not a cartoon character but I play one in real life.

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

Quote:
format the data into a required string and send that string over Ethernet.
So if you had a chip with 2 USART it would be very easy, just send the data to both, 1 for real work and the other for monitoring purposes.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

This article discuss some techniques to monitoring your program. May be interesting:

http://www.embedded.com/18720369...

Regards,
Alejandro.
http://www.ocam.cl