Tool/software:
Hi Champ,
I am asking for my customer.
It is knew that we should use compiler intrinsics MDEBUGSTOP as CLA breakpoint.
However, customer prefers to add either SW or HW breakpoint for convenience when debugging in CLA.
It is tested in either way (SW/HW breakpoint), CLA code is hard to stop at breakpoints in every time. Most of the time won't stop at breakpoints.
The SW breakpoint may disappear is well explained in the thread. I am good on that.
However, as the thread suggested, we follow to use hardware breakpoints instead as below snippet. We still don't see the code halt where the HW breakpoint is set.
(1). Would the expert kindly try to explain why the CLA code won't stop at HW breakpoint ? From breakpoints window, the H/W BP is enabled indeed.
Are the steps listed in the end of the thread (sth for GEL files) is a must-do as well ? not just use hardware breakpoints ONLY.
(2). We also found out not every lines of code is capable to set breakpoints (HW/SW) in CLA, especially the line to configure the peripheral registers isn't allowed. However, CLA has the access to peripheral registers.
For example, line 86 and line 91 are not allowed to set breakpoint. Double click the line where to set breakpoint, the breakpoint is not exist. However, line 69 is allow and HW breakpoint exists.
We are trying to get clear the reason why it can't set HW breakpoint in anywhere in CLA. We won't face such problem in CPU debugging.
Would the expert try to explain for that ? Customer and I are curious about the root casue.
Thanks and regards,
Johnny