I got some ideas from this post: 
Ki-Soo Lee said:Hi Mark,
The CCS debugger supports debugging of GCC ELF images. You can simply start a project-less debug session and load your GCC ELF executable to debug/run it:
processors.wiki.ti.com/.../Debug_Handbook_for_CCS
Thanks
ki
However, things do not go well finally.
Hi Mark,
When I am debugging Contiki with CCS, the program stops before "while(1){......}", no matter how many times I press the "step over" or some other buttons.
When I move "while(1){......}" to somewhere else, it happened again. Do you have some ideas of it? Thanks.
/yanqiu
