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.

LAUNCHXL2-570LC43: Cannot set breakpoints before main()

Part Number: LAUNCHXL2-570LC43

I am working with the example hercules_examples/Application/TMS570LC43x_PMU_Demo obtained from https://git.ti.com/git/hercules_examples/hercules_examples.git

While this example works as expected, I am not able to set a breakpoint in any code before main() (for example, in _c_int00). The breakpoint I am setting show up in the breakpoint window as HW breakpoints (and the action is 'remain halted'), but the code runs all the way to main() before halting. I am trying this with a Debug build with full source visibility.

What am I doing wrong?

  • Hi Durga Choudhury,

    I too saw the same thing you mentioned, for the first time when you are launching debug mode the CCS not considering breakpoints before the main and it directly come out and pointing the first instruction in main function. 

    But you can do below thing to debug the code before main function

    After launching the debug mode click on "system reset" option shown below

    This will reset the entire controller and move the execution to the reset entry point as shown below

    And now you can do whatever you want, i mean step by step debugging or set break points in _c_int00 function and it will work as you expected.

    --

    Thanks & Regards,

    Jagadish.