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.
I am new developing C code on the TMS320F2808 using Code Composer 5.3 and the Spectrum Digital XDS510USB Emulator. I had very little problem using the example code getting up to speed on the basics, but now I am in much deeper waters attempting to build on some prior existing code that compiles & links but gives me problems prohibiting the setting break points where one would expect should be not an issue. Upon entering a debug session the console immediately provides this initial error message:
C28xx: Trouble Setting Breakpoint with the Action "Finish Auto Run" at 0x3f43a0: Error 0x00000008/-1066 Error during: Break Point, Cannot set/verify breakpoint at 0x003F43A0
Searching through the help I found no immediate answers as well as searched the forum blogs. As I examined the "main" function I noted that I could NOT place a breakpoint on the first two function calls in but the 3rd was OK. The error messages from failing to apply the 2 breakpoints are below:
C28xx: Trouble Setting Breakpoint with the Action "Remain Halted" at 0x3f43a0: Error 0x00000008/-1066 Error during: Break Point, Cannot set/verify breakpoint at 0x003F43A0
C28xx: Trouble Setting Breakpoint with the Action "Remain Halted" at 0x3f43a2: Error 0x00000008/-1066 Error during: Break Point, Cannot set/verify breakpoint at 0x003F43A2
I could play divide and conquer on these functions, but it would be highly more useful and efficient if I could interpret the error message and get at the root of this problem and be more effective for the next ones to come. The for the record the "main" function is simply:
void main(void) {
/*#[ operation main() */
HwInitialize();
HwConfigure();
MainTask();
/*#]*/
}
Some helpful hints would truly be appreciated!
YUSUF FARRAH said:Upon entering a debug session the console immediately provides this initial error message:
C28xx: Trouble Setting Breakpoint with the Action "Finish Auto Run" at 0x3f43a0: Error 0x00000008/-1066 Error during: Break Point, Cannot set/verify breakpoint at 0x003F43A0
When working with F28xx devices and code in Flash you are limited to two hardware breakpoints. CCS sets some breakpoints by default which are also included in this limit. You could see this type of error when you exceed the allowed number of breakpoints.
You can check which breakpoints are inherently set by CCS by going to menu Run->Debug Configurations, then select the appropriate debug configuration in the left pane and go to the Target tab in the right pane. Under 'Program/Memory Load Options" see if "Halt at program termniation" and "Enable CIO function use" are both enabled? If so try disabling one or both. If you have C I/O routines like printf in your code, you will need to keep "Enable CIO function use" enabled, but the other one can be disabled.
Also see this related thread for similar information.
What you suggested seems to help quite a bit, although I may still see a similar error from time to time I can set break point with much less hindrance. By the way all of the breakpoints I was setting, at least by the display representation were software NOT hardware breakpoints. I guess this did not matter since it was the default CCS breakpoints that were driving the issue since I am running out of Flash?
Thanks for the prompt reply!
Roc,
Used the recommended solution with a slight modification. I left "Enable CIO function ..." option checked since I was using the serial port and this seemed to cause unintelligible output. Also of note was I took care to leave disabled all but a minimum of breakpoints typically 1 or 2 as I entered a debug session. That seemed to reduce my issue to an occasional annoyance. Your feedback was quite helpful.
Yusuf