How do I insert a software breakpoint in source code for the C2000 (F28M36, C28 side)? I'm debugging code in flash/rom, and the number of available hardware breakpoints (1) is insufficient for my needs. I want to do something like:
if (!ReadPosition(&posn)) {
Log("Unable to read position, error = %d\n", getLastError());
SW_BREAKPOINT(); // software breakpoint instruction
}
While I'm asking: how do you do the same for the ARM (M3) side of things?
Thanks.