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.

Compiler/TMS570LS3137: CCS: Loading of executable files

Part Number: TMS570LS3137
Other Parts Discussed in Thread: TMS320F28335,

Tool/software: TI C/C++ Compiler

Consider this scenario: I have few .out files e.g., a.out, b.out and c.out which I loaded followed by the symbols to execute them on the controller board. Observation is- after the loading of symbols I am not able to execute and control did not behaves as expected. Instead, if I removes all the symbols and only loads the symbol of one .c file, then I am able to execute properly. Why such an behavior? I believe for execution of .c files all related .out files as well as symbols are required. I am trying to understand from controller point of view why an such an odd behavior erupts in ARM TMS570LS3137 ? In DSP TMS320F28335 everything works fine. Help me in this regard.

Thanks.

  • Hello,

    How are you loading the symbols? Note that if you are using "Load Symbols" options, then only the symbols for the last loaded symbols would be loaded. This is because the debugger will remove all existing loaded symbols before loading a new one.

    Hence if you did the following with "Load Symbols"

    PREETISH SANKHUA said:
    I have few .out files e.g., a.out, b.out and c.out which I loaded followed by the symbols to execute them on the controller board.

    Then only the symbols for c.out would be loaded (if c.out symbols were loaded last).

    PREETISH SANKHUA said:
    I believe for execution of .c files all related .out files as well as symbols are required

    If you wish to have symbols for all three loaded at the same time, then after you load the first symbols, you must use the option "Add Symbols" for the other two. This option will preserve any existing loaded symbols and the new symbols to the symbol table. You will need to add the proper relocation information when adding symbols (this is based on your environment, hence it is something you need to determine).

    Thanks

    ki

  • Hi Ki,

    Thanks for your valuable response. Now, I understand the difference between loading and adding the symbols as you mentioned. I am using a javascript file to load all the relevant programs and symbols. Actually through the .js file I am "Loading" all the programs and "Adding" all the symbols. But, then also I am unable to execute and control is getting stuck in the code flow. I am using CCS- v5.4.0.00091, Compiler Version- TI v5.0.4, Debugger- Spectrum Digital XDS560v2 STM. Does any of these setup environment components has any role to play in this? Kindly help.


    Thanks,
    Preetish
  • PREETISH SANKHUA said:
    then also I am unable to execute and control is getting stuck in the code flow

    This type of issue usually has a root cause with the application, though I can't say this definitely.

    PREETISH SANKHUA said:
    I am using CCS- v5.4.0.00091, Compiler Version- TI v5.0.4, Debugger- Spectrum Digital XDS560v2 STM. Does any of these setup environment components has any role to play in this?

    Your CCS version is pretty old... though it is unlikely related to the root cause. If you can update your CCS version, that would be a good idea just so you are on a supported CCS version. Can you provide more details about the failed execution and where it gets stuck? Are you debugging with CCS IDE but using a javascript for initialization?

    Thanks

    ki

  • Hi Ki,

    Yes I am doing debugging in CCS IDE and using the javascript only for initialization of programs and symbols. Upgrading CCS IDE is not possible because it is project dependent. When you say- "I need to add the proper relocation information when adding symbols.", do you mean I need to provide the Code offset and Data offset addresses to load/add the symbols properly. How can I achieve this? In the code flow control is getting stuck as soon as I am trying to start execution of the .c files I have in the project.

    Thanks,

    Preetish

  • Preetish - I forgot to mention that if the symbols you are adding is a *.out file with full debug symbols for the executable, then you should not have to specify relocation information since that information is in the symbols and the symbol loader should read it automatically.

    As for why it still gets stuck if you have all three symbols loaded, I can't really provide much more suggestions without more details. The best thing is to get a reproducible test case if you can provide one.

    Thanks
    ki