electronics forum

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

Theory of debugging?


Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> Theory of debugging?
Author Message
sajeev



Joined: 29 Apr 2005
Posts: 103
Helped: 2
Location: Kerala-India


Post01 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
Google Adsense




Post01 Aug 2008 11:50   

Ads




Back to top
FvM



Joined: 22 Jan 2008
Posts: 5161
Helped: 767
Location: Bochum, Germany


Post01 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


Post01 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


Post01 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
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> Theory of debugging?
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
On-chip debugging (3)
In system Debugging In Keil (1)
keil's debugging problem (5)
no debugging symbols found ? (1)
Gate level debugging ??? (5)
Debugging using scope (5)
ICD 2 clone debugging (3)
Accemic MDE debugging (1)
Problems debugging Stratix FPGA (3)
Problem microchip ICD2 debugging (7)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS