| Author |
Message |
sajeev
Joined: 29 Apr 2005 Posts: 103 Helped: 2 Location: Kerala-India
|
01 Aug 2008 11:50 Theory of debugging? |
|
|
|
|
Hi
I am using MPLab IC2 for debugging pic micros.But I dont know how the debugger works.Can anybody explain me of the working of a debugger? What kind of support that a micro controller should have for debugging?
Regards
Sajeev
|
|
| Back to top |
|
 |
Google AdSense

|
01 Aug 2008 11:50 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
FvM
Joined: 22 Jan 2008 Posts: 5161 Helped: 767 Location: Bochum, Germany
|
01 Aug 2008 14:53 Theory of debugging? |
|
|
|
|
| Consider one or more hardware breakpoint registers as most important function, anything else can be performed by software. Additionally, some free code memory for the supporting software (the monitor) and a suitable interface between debugger and debuggee ist obviously required.
|
|
| Back to top |
|
 |
sajeev
Joined: 29 Apr 2005 Posts: 103 Helped: 2 Location: Kerala-India
|
01 Aug 2008 16:15 Re: Theory of debugging? |
|
|
|
|
So you mean extra registers are there to control break point?How the cpu clock is controlled during debugging?
When a break point occurs,then the clock is halted or not?
|
|
| Back to top |
|
 |
FvM
Joined: 22 Jan 2008 Posts: 5161 Helped: 767 Location: Bochum, Germany
|
01 Aug 2008 18:57 Re: Theory of debugging? |
|
|
|
|
| When a breakpoint interrupt occurs, the monitor programm is entered, but the processor is continuing operation at regular speed. Monitor program is performing I/O in polled mode (no interrupts), so application interrupts are usually halted in break state.
|
|
| Back to top |
|
 |