SV: [Icc-avr] Debug using Jtag
Jim Patchell
patchell at cox.net
Thu Sep 27 21:14:50 PDT 2007
I am afraid that is not, to my knowledge, possible. Debugging code in
micro controllers is not easy. It took me a month just recently to find
a very strange bug in an ARM9. You just have to be persistent.
-Jim
Steven Lose wrote:
> Hi Jim.
>
> How do you tell that it should not break when the write is from the function that is allowed to do the write, and break when the write is not from this function?
>
>
> 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
>
> www.ecpower.dk
>
> -----Oprindelig meddelelse-----
> Fra: icc-avr-bounces at imagecraft.com [mailto:icc-avr-bounces at imagecraft.com] På vegne af Jim Patchell
> Sendt: 27. september 2007 16:05
> Til: Discussion list for ICCAVR and ICCtiny Users. You do NOT need tosubscribe to icc-announce if you are a member of this.
> Emne: Re: [Icc-avr] Debug using Jtag
>
> 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
>
> _______________________________________________
> Icc-avr mailing list
> Icc-avr at imagecraft.com
> http://dragonsgate.net/mailman/listinfo/icc-avr
>
>
> _______________________________________________
> Icc-avr mailing list
> Icc-avr at imagecraft.com
> http://dragonsgate.net/mailman/listinfo/icc-avr
>
>
More information about the Icc-avr
mailing list