This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How do you insert a Software Breakpoint for F28M36 (C28 as well as M3)?

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.