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/Madam the hardware break points use internal FPB comparators so that the address we update there are internally comare with program counter if value == program counter then automatically the core will be halted and ready to debug the internal registers.
coming to the software break point this will use "BKPT" instrruction so that when ever the address match with program counter user has to execute __ASM("BKPT"); which will case the target break and enter into halt so that user can further access the debug registers.
my doubt was how should i continuously check the program counter continuously so that i could break the target when ever address i supplied was match.
Correct me if i was wrong.
Thanks and Regards.
Harshan.
Thanks for reply,
if i understand clearly above, let say if i want to break the perticular address location on the target then i have to redirect that address to BKPT assembly instruction, The point is how could i redirect that address to BKPT assembly Instruction let say my target is stm32f4xx and i want to break at address 0x08000228. where my customized debugger follows serial wire debug protocol now what are the steps i should have to be follow in order to break the stm32f4xx at address 0x08000228, i hope the question is very clear??
Harshan
Greetings,,
Let me first explain some essential points
hope this helped..
Regards..
Mustafa S.
Thanks for Reply,
In Hardware Break Point after setting the first break point the core was halted successfully but when i tried to run the target it won't hit the second break point until i clear the first break point. what might be the issue??
Harshan_Behra