Rules | Recent posts | topic RSS | Search | Register  | Log in

ICD 2, how to use it as DEBUGGER

 
Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers
Author Message
mrcube_ns



Joined: 10 Apr 2002
Posts: 416
Helped: 10
Location: Dark side of the Moon


Post06 Oct 2008 20:38   ICD 2, how to use it as DEBUGGER

I bought ICD2 LE.

It works nice as programmer Smile.

Is there any manual or instructions how to use it as debugger, to see values of variables in code, with breakpoints and similar.


Thanks in advance.


Mr.Cube
Back to top
blueroomelectronics



Joined: 17 Sep 2006
Posts: 1229
Helped: 60
Location: Toronto, Canada


Post07 Oct 2008 3:47   ICD 2, how to use it as DEBUGGER

From MPLAB choose the Debug/ICD2 tool. You can VIEW watch variables and double click to set a breakpoint.
Back to top
TekUT



Joined: 17 Jun 2008
Posts: 314
Helped: 22


Post07 Oct 2008 7:27   Re: ICD 2, how to use it as DEBUGGER

Also, if you're working with C some compiler should be set to use ICD debugging feature, usually this is a check that you've to set into the compiler option. Attached a screen shot example for the Hi-Tech PICC compiler, you've to set the flag in order to debug correctly the code, for production simply remove the flag and rebuild the project.

Bye
Pow



Sorry, but you need login in to view this attachment

Back to top
Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers
Page 1 of 1 All times are GMT + 1 Hour


Abuse
Administrator
Moderators
topic RSS 
sitemap