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.
Hello, I have a SK-AM64B board and want to debug a Hello World application in CCS. When starting the debug mode the program stops at the entry point of main(). If I now click on play, the program runs through but does not stop at the set breakpoints. The breakpoints appear blue. In the breakpoints window under Breakpoints Properties I get the following message: "Breakpoint is not attached to an active debug context. Please launch the debug session where this breakpoint is attached."
What can I do to make the breakpoints work?
Sandro,
Thanks for your Query allow me some time to get back to you.
Regards
Anshu
Sandro,
would it be possible for you to share the exact steps with some screenshots to understand the problem better.
In the meantime please see the response in the thread below
Regards
Anshu
Hello, thank you for your reply.
I have imported in CCS the project "gpio_led_blink_am64x-evm_r5fss0-0_nortos_ti-arm-clang" from the examples. Then I set a breakpoint at the function "gpio_led_blink_main()" in Line 44. When I debug the program, the program execution stops at the start of the main() function in line 40. Now when I click play, the program no longer stops at line 44, even though the breakpoint is reached and the function was called. I can stop the program execution at any time. In the breakpoint window there is also an error message.
Sandro,
Apologies for not being able to get back to you earlier. were you able to resolve this issue.
Regards
Anshu
Hello, yes I was able to solve the problem.
When I set breakpoints and then started the debug sesion, they did not work. If I removed the breakpoints again during the degug session and added them again, then it worked. I think this is still an incorrect behavior?
Thanks for explaining your solution, I will try to see if i can get some comment from the team which supports CCS.
Regards
Anshu
I have imported in CCS the project "gpio_led_blink_am64x-evm_r5fss0-0_nortos_ti-arm-clang" from the examples. Then I set a breakpoint at the function "gpio_led_blink_main()" in Line 44. When I debug the program, the program execution stops at the start of the main() function in line 40. Now when I click play, the program no longer stops at line 44, even though the breakpoint is reached and the function was called
You need to being an active debug session before setting a source line breakpoint. Otherwise the debugger does not know what debug session the breakpoint applies to. Hence the error message in your second screenshot. This is expected behavior.
Thanks
ki