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.

TMS320F280049: Breakpoint does not work when the code is running in Flash

Part Number: TMS320F280049


Hi team,

A very strange debug behaviour when supporting customer, need your help:

1. When code is running in RAM, everything works fine;

2. All the code is loaded into flash, and some of them are copied to RAM for running. For code copied into RAM, the breakpoints works;

3. For code running in flash, here is what happened:

   1) If a breakpoint is set before running the project(haled in main()), the break point would work;

   2) If we run the code first, and then add a breakpoint, the code never stops at the breakpoint. We used a flag variable to track the code, the code actually run into the breakpoint, but MCU does not halt;

   3) If we halt the MCU, and add another breakpoint to the code running in Flash, it halts.

Basically, seems all the breakpoint added when the MCU is running does not work. It is really not very convinient sometimes.

Regards,

Brian