Hi folks,
I have this question since starting using CCS and I have found similar questions and answer here: https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/314281/difference-between-program-load-and-symbol-load#:~:text=the%20difference%20is%20basically%20whether,symbolic%20debug%20information%20as%20well.
I just want to double check on the adopted answer to follow up on further details. I am using CCS working with AM62x board / C2k by the way. Below the bold font are questions of mine.
1. Q: Suppose target already has the running program, if we again use the option: load program, then what will happen ? Will the program runs again from start ?
The target will be halted, the program will be loaded to the target and the program counter set to the entry point of program. Depending on your debugger options, it may auto-run to main or some other specified label
I am trying to understand "target already has the running program" -- for example, I am working with the m4 mcu on AM62x board. I put the binary (.out) file which built from CCS project to /lib/firmware, and changed the symbolic link so directs to that binary, reboot the board -- after that, is it considered as "target already has the running program"?
2. Q:Suppose target already has the running program, if we again use the option: load Symbol, then what will happen ?
The symbols will be loaded without halting the target
3. Q: If the target does not have the program, then in this case, what is the difference between load program and load symbol ?
load program loads code to the target and symbols to the debugger. load symbol loads symbols to the debugger and nothing to the target
Since symbols loaded but nothing on target, seems the second scenario (load symbol loads symbols to the debugger and nothing to the target) will not function, does it?
4.Q: What is meant by 'symbolic debug information' ?
The information that the debugger needs to provide debug visibility to the program (source code correlation, etc)
I am still trying to understand it, is symbolic debug info like watching variables / expressions?
Thanks
ki