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.
Hi all,
In CCS, there are two options while loading.
One is Load - Program and another one is Load - Symbol.
What is the difference between program load and symbol load ?
When Can I use Load - Program and when I have to use Load - Symbol ?
Please explain.
Thanks in advance.
Regards,
Rajanikanth.
Hi Rajanikanth,
the difference is basically whether the symbolic debug information gets loaded.
Eg, if you simply want to load and run the code (without debugging) you can load only the program.
If you wish to debug, you need the symbolic debug information as well. One reason for this option is so that if you have a target which already has the program you wish to run, you can avoid reloading the program, load the symbols and continue debugging.
Does this help clarify?
Best Regards,
Lisa
Hi Lisa,
Thanks for your prompt response and clarification.
Can you please further clarify the below points ?
1. "....if you have a target which already has the program you wish to run, you can avoid reloading the program,..."
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 ?
2. Q: Suppose target already has the running program, if we again use the option: load Symbol, then what will happen ?
3. Q: If the target does not have the program, then in this case, what is the difference between load program and load symbol ?
4.Q: What is meant by 'symbolic debug information' ?
Thanks & Best regards,
Rajanikanth.
rajanikanth g said: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
rajanikanth g said: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
rajanikanth g said: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
rajanikanth g said: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)
Thanks
ki
Thanks Lee and Lisa for your help.
Its clarified.
Thanks & Best regards,
Rajanikanth.
Hi Rajanikanth,
glad to hear and all the best with development.
Best Regards,
Lisa