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.

CCS/TMS320F280049C: Cannot set a breakpoint in two of my interrupts

Part Number: TMS320F280049C


Tool/software: Code Composer Studio

In the past, I have been able to debug interrupts in my code by simply inserting breakpoints so that the code is "paused" when the interrupt is triggered.

I have done this in multiple example files with no issues. I am now working on a much larger code that was written long before I started working on it. The reason I mention this is because I am not sure if any of the settings have been altered from the defaults of the example files.

I inserted a pair of interrupts that should be triggered by the HLC in a CLB block (as per several of the CLB example files).  The code builds with no errors, but when I try to debug the interrupts using breakpoints while the code is running on the platform, I get this response:

When I try to enable the breakpoint, I get an error message in a dialog box saying that no code is associated with line 612 in my file.  Can someone explain to me what is going on and what I can do to resolve this issue?

  • Hello Anthony,

    The two most common reasons for this is either:

    1) code is optimized to the level where source line debug is impacted

    2) the source file that you are trying to set the breakpoint in is not recognized by the debugger as the one associated with the debug symbols

    Regarding #2, are you able to set a breakpoint on any line in that source file (peripheral_driver.c) or is it just in that ISR that you are having trouble with?

    Thanks

    ki 

  • All good. I was told to turn optimization off, and that resolved the issue.