Tool/software: Code Composer Studio
We are using TMS570ls3137 microcontroller and code composer studio (CCS version: 6.0.1.00040 and ARM compiler version TI v5.1.1[TI v5.16] ) in our project. We are facing issues in setting breakpint.
In few scenarios we could not set the break-point at function end. when we try to set the break point at function end (by double click) in the debug mode, it is populating a message that "No code associated with..... line number in any loaded symbols" from the break-point manager. But in the disassembly window, the code execution flow is happening as expected.
Example pseudocode:
void function (unsigned x)
{
switch (x)
{
case 1:
printf("1");
break;
case 2:
printf("2");
break;
case default :
printf("default");
break;
}
}
from above pseudocode, if the x value is 1 then, it executes case 1 and again program control is going back to "switch (x)" statement, subsequently for the single step operation, control gets back to called function. Hence we could not set break point at function end (function end brace).
is it CCS tool bug? is there any workaround to resolve this issue ?
Please guide me to resolve this issue.