We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Greetings,
Sir,i am working on SWD, after Research on Break Point & Watch Point i found One Thing That There are Some Comparators will Do These Things but I am not Very Sure That How These are Work ?? lets say while we put a Breakpoint on software ide automatically the Code Will Run Till BreakPoint Instruction is present and Then Stop, Coming To The Watch Points if we watch a particular Variable Then if There any changes are Occurred We can observe it But Internally How These are Working?? Could you Please Explain me or Suggest any Reference So that It Could Helpful For Me???
Thanks and Regards,
Harshan.
Greetings,,
Refer to Definitive Guide to ARM Cortex-M3 and Cortex-M4 3rd edition (chapter 14)in a nutshell the debugger will be involved in R/W operation with the debug registers (detials are in the above refrence & ARMv7-M Architecture Reference Manual page 737 Debug Architecture) there you would find the details for registers that the debugger is R/W from/into using SWD/JTAG but I have to say it's really a lot and heavy material and need to be read thoroughly in order to understand it.. some of these registers are related to Data watch point which can hold the address of the data you are monitoring and halt the processor if required.. also mention in the reference I've provided details about break Point and FPB unit.. most of these registers are meant for debugger not the programmer.. and there is a sequance of programming them and reading from them (it's not that straight R/W operation)
Regards..
Mustafa S.