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.

CODECOMPOSER: Determining Code Offset and Data Offset for dynamic loading modules

Part Number: CODECOMPOSER
Other Parts Discussed in Thread: TMDSEMU110-U

Tool/software:

Hello,

I am using the following setup:

  • Board: Beaglebone Black
  • Debugger: TMDSEMU110-U
  • OS: RTEMS 6
  • IDE: Code Composer Studio Version 12.8.0.00012

Issue Description:

I am configuring dynamic loading modules and need to set the Code Offset and Data Offset correctly. I’ve obtained these offsets from the ELF file as shown below. However, even after entering them, the symbols appear as 0xffffffff. While I can debug the executable and see symbols in the debug window (Load Symbols), I can’t find the symbols when adding the dynamic loading modules (Add Symbols).

  "cfs_lib.elf.txt": {
    ".text": {
      "Type": "PROGBITS",
      "Address": "00000000",
      "Offset": "000034",
      "Size": "000798",
      "EntrySize": "00",
      "Flags": "AX",
      "Link": "0",
      "Info": "0",
      "Alignment": "4"
    },
    ".data": {
      "Type": "PROGBITS",
      "Address": "00000000",
      "Offset": "0007f7",
      "Size": "000000",
      "EntrySize": "00",
      "Flags": "WA",
      "Link": "0",
      "Info": "0",
      "Alignment": "1"
    }
  },

Question:

  1. Am I using the correct offsets?
  2. What could be causing the 0xffffffff issue?
  3. Are there any additional steps I should take?

Thanks for your assistance!

Br,
Dat Nguyen

  • Hello,

    I discussed a bit with a compiler expert. Note the the "Offset" field in the information above is not a target address.  It is the byte offset in the ELF file where the raw data for that section begins. When adding the symbols with offset information, you would need the offset for that whole module. This information should be known when the module is being created.

    Thanks

    ki