- on Di 21 Juli 2015
Debug problem of breakpoint
Problem:
- can't not set breakpoint in the function
- when click debug,
No source available for main()
- 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
- change the Debugging model to full symbolic debug or the DEFAULT one.
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
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!