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.
Good afternoon,
I'm trying to follow the CCSv6 guide to u-boot JTAG debug found here
http://processors.wiki.ti.com/index.php/Sitara_Linux_Training:_uboot_linux_debug_with_ccsv5
I'm able to load program and symbols, run the code, and step through the code line by line, but I'm unable to set any hardware breakpoints. Oddly, it shows the the hardware breakpoints are set in the board.c file (see image), but the program doesn't stop when encountering these lines. Also, right-clicking and selecting 'Breakpoint Properties', it says "Breakpoint is not attached to an active debug context. Please launch the debug session where this breakpoint is attached."
I'm using the latest version of CCS v6.2.0.0005 with the XDS100v2 JTAG debugger. Please let me know if anyone has found similar problems with the hardware breakpoints.
Best regards,
Chris
Chris Lightcap said:CCS must have not properly referenced the board.c in my Project Explorer when I imported as a Makefile project.
That is exactly it. When you set breakpoints from a source file, you need to make sure that the debugger has made a correlation with the source file and the loaded symbols. You can always set debug source search paths ahead of time. Though what you did by browsing to the file when prompted by the debugger is the best technique. Once you set it once that way, the debugger will remember for subsequent debug launches (unless the launch cache is cleared).
Thanks
ki