[Icc-avr] Debug using Jtag
Jim Patchell
patchell at cox.net
Thu Sep 27 07:05:19 PDT 2007
If you are using AVR Studio 4.12 or better (well, these are the ones I
am familiar with, all versions of AVR studio will do this), in the
breakpoints and tracepoints window, you should see where you can set
data breakpoints. You can set a break point to break on reads and/or
writes to a single memory location....very handy.
-Jim
Steven Lose wrote:
> Hi.
>
>
>
> I have a SW bug… Yes, I know, never happened before.
>
>
>
> Bug is that PORTD on my ATMEGA128 is overwritten somewhere; I have
> debugged for a long time now and found out, that it is not the regular
> function that is called by mistake or something like that.
>
> Only 2 pins are output on the Port, TX of Uart1 and Bit 7 witch is port
> direction, so there is only 1 function that writes the port.
>
> I would like to somehow set up the JTAG to break when PORTD is written
> to, but if possible not when the normal function is accessing the PORTD.
>
>
>
> Is it possible to set up the JTAG in such a manner?
>
> Med venlig hilsen / Best regards / mit freundlichen Grüßen
>
> *EC POWER A/S*
>
> *Steven Lose*
>
> Software Ingeniør
>
> Tlf.: +45 87434100
>
> Direkte tlf. +45 58286608
>
> Email: sl at ecpower.dk <blocked::mailto:bsl at ecpower.dk>
>
> www.ecpower.dk <http://www.ecpower.dk>
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Icc-avr mailing list
> Icc-avr at imagecraft.com
> http://dragonsgate.net/mailman/listinfo/icc-avr
More information about the Icc-avr
mailing list