electronics forum

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

How debugger works?


Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> How debugger works?
Author Message
sajeev



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


Post27 Jan 2008 10:06   

How debugger works?


Hi I am using ICD2 for a couple of years.I buit it with the help of EDA people.But I dono how it works really.I mean the internal details of debugger.I was asked a Qn "How a debugger works " in an interview.Now I am in a situation to make a Debugger.I want to study and atlest try to make a one by writting my own firmware,communication links...etc.Can anybody help me in this case..

First I want to know the basic idea of making a debugger.
Then whatevr thing I need to know to make a debugger.


Regards...
Back to top
Google
AdSense
Google Adsense




Post27 Jan 2008 10:06   

Ads




Back to top
FvM



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


Post27 Jan 2008 11:36   

Re: How debugger works?


Hello,

I want to mention a few keywords.

At the processor side, you need hardware debugging capabilities. Minimum would be the ability of single step code execution and existence of a break instruction. To set breakpoints in ROM (or flash) code without changing the ROM content, you need breakpoint registers. A versatile option would be a breakpoint on data space operations. PIC processors have some hardware debugging capabilties excluding data space breakpoints.

As a supplement to hardware debugging capabilities, most debugers use a onchip firmware component, a debug monitor. The monitor has been written using regular procssor instructions, but may access special debugging registers. It could be either permantly resident on chip or loaded to flash when required, as with PIC. Finally, you need a communication channel to external debugger component. Can be a proprietary debugging interface as Microchip ICSP, generalized debugging as JTAG or a standard interface present at the processor as UART, USB or Ethernet.

These are, I think, the basic components needed for in-circuit debugging. The external debugger component could use either in-circuit debugger or a simulator. Cause it only exists in software, it's operation can be understood without knowing about hardware details.

Regards,
Frank
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 -> How debugger works?
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
ICD 2, how to use it as DEBUGGER (2)
HOW to make in-circuit debugger of PIC16F877!!! (21)
HOW to make On-Chip debugger for PIC16F877??? (7)
Is the program that works in PIC16F works with PIC18F? (7)
Unstable timer1/interrupt.. Works/works not... grrr (2)
how it works (8)
How mosfet works? (17)
How BJT works ? (10)
How a 'c' compiler works ? (2)
Powermeter: how it works (4)


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