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.

F29H850TU: CCS 20.4 - insert hardware breakpoint in RAM?

Part Number: F29H850TU

I have a breakpoint set in code that is copied from flash to RAM.  CCS uses a SW breakpoint since the code is in RAM - but the SW breakpoint opcode is overwritten whenever the device is reset.

I've been toggling the breakpoint off/on before I run from main (i.e. reset --> restart --> manually toggle breakpoint off and back on --> run) The copy from flash is done before this point. 

Is there a way to force the use of a HW breakpoint in this case? Or a way to automatically toggle any set breakpoint off and back on after a restart?

  • Hi Lori,

    Perhaps one workaround is force the debugger to always use a HW breakpoint. You can do this by disabling the debugger option I highlighted in the image below:

    This will force the debugger to only use HW breakpoints. If you run out of HW breakpoints afterwards and wish to then set some SW breakpoints, then you can disable this option.

    Would this work?

    Thanks

    ki

  • Thank you - Ki - this helps!!