Napon

Fake it until you make it

about

CCS6.1 breakpoint problem

Debug problem of breakpoint

Problem:

  1. can't not set breakpoint in the function
  2. when click debug, No source available for main()
  3. even i can place breakpoint, it will always pointed at the beginning of a function, can not be in the middle.

Solution:

Do not optimize the debug, and code

  1. change the Debugging model to full symbolic debug or the DEFAULT one. Imgur

Imgur

Also, by default the debugger may set a breakpoint to halt at CIO functions, so a breakpoint will be used for this, allowing only one breakpoint to be available to the user. This breakpoint can be disabled by going into menu Run->Debug Configurations…, Target tab, and unchecking the box for “Enable CIO function use”. Also ensure that the box for “Halt at program termination” is also unchecked if you want access to both available breakpoints Imgur

done!

by the way

i found the default setting will alwasy debug the program to all the 8 core of the board. but at the beginning of test phase, only 1 core is necessary!

so go to the Target Config

cross bypass, then the unwanted core will be bypassed! Imgur