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.

[FAQ] F05: Why can't I set more than 2 breakpoints in flash?

Q: Why can't I set more than 2 breakpoints in flash?  Why can't I single step code in flash?

  • A:

    Note: This answer applies to devices with F05 flash.  Refer to:  [FAQ] F05 Flash: Which C2000 devices have "F05 flash"?

    Code Composer Studio supports software breakpoints and hardware breakpoints. When debugging code running from flash memory hardware breakpoints must be used. The F05 based devices have access to 2 hardware breakpoints. Stepping also requires setting a hardware breakpoint.

    Code Composer Studio automatically sets two breakpoints: (a) end of program and (b) CIO (used for printf). This can prevent you from having any breakpoints for debugging an application in flash. This behavior can be changed by disabling the "CIO" and "end of program" breakpoints in the debugger options->program/memory load options.   It should be noted that by following this procedure, you will lose the capability to output CIO text (e.g. printf, etc..).  It will also prevent the program from halting automatically on exit.

    Note: More recent C28x-based devices, such as the F28004x, do not have this limitation!! These devices have a module called ERAD. Check the data manual and TRM for more details.

    For more F05 related FAQs refer to [FAQ] F05 Flash: Frequently Asked Questions