Other Parts Discussed in Thread: C2000WARE
Hi Champ,
There are some questions about setting breakpoint in RAM/Flash, I would want to clarify.
Please correct me if the following description is something wrong.
1). In RAM, the breakpoint with no limited times setting is software beakpoint ; In Flash, the breakpoint is hardware breakpoint and it is limited up to 10 breakpoints, correct ?
2). In debug mode, set a breakpoint by double clicking in the line number field to the left of the code line. Is the action of doing this always set as a hardware breakpoint no matter the code is executed in RAM or Flash ?
3). Following the second question, by right click in the line number field, the first breakpoint means software beakpoint which is shown in red block, is it correct ?
4). Since I have moved the whole ISR code into RAM by using #progma CODE_SECTION successfully, including every functions in ISR. If the first question statement is correct, actually I should set a software breakpoint at somewhere in ISR because the part of code is executed in RAM. However, from my test, when run code, it wouldn't stop there by setting software breakpoint. It would only stop by setting hardware breakpoint. Isn't this behavior contradicting with the first question ? Why
Would you please clarify the understanding of breakpoint for me ?
Thanks for any comment and correction.
Best Regard.