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.

warning "no matching section" in TISecondaryBootPADK.cmd

Other Parts Discussed in Thread: TMS320C6727, SPRC203

Hi,

I'm using PADK (TMS320C6727) and I want to boot up from flash. When compiling example "SwitchesAndLeds" in sprc203 provided by TI, I got following warnings:

<Linking>
"E:/padk/sprc203/TMS320C672xxBootUtils/TMS320C672xxBootUtils/Examples/Padk_examples/flashBoot/SwitchesAndLeds/TISecondaryBootPadk.cmd", line 80: warning #10068-D:
   no matching section
"E:/padk/sprc203/TMS320C672xxBootUtils/TMS320C672xxBootUtils/Examples/Padk_examples/flashBoot/SwitchesAndLeds/TISecondaryBootPadk.cmd", line 81: warning #10068-D:
   no matching section
'Finished building target: E:/padk/sprc203/TMS320C672xxBootUtils/TMS320C672xxBootUtils/Examples/Padk_examples/flashBoot/SwitchesAndLeds/SwitchesAndLeds/../Debug/SwitchesAndLeds.out'

the related code snippets in the linker cmd file are:

    .TIBootStrap {.+= 4;} load = 0x10000000
    .TIBoot      { *(.TIBoot)                                                        // line 80
                   .\TISecondaryBootPADK.obj(.switch)              // line 81
                 } load = 0x10002E00,
                   LOAD_SIZE(_TIBOOT_SEC_SIZE),
                   RUN_START(_TIBOOT_SEC_RUN_ADDR)

I used ofd6x.exe to see the sections in TISecondaryBootPADK.obj:

As shown in the picture, there is a section ".TIBoot" and two subsections ".switch:_TISecondary..." in that obj file, but the linker just cannot find them.

Why this happens? The version of compiler is 7.3.7, CCS version 5.2.1.00018.

Thanks for any suggestions.

  • P.S:

    If I remove "(.switch)" part in line 81, the compiler do not give warning to that line. (But I still got warning in line 80)

    Looking into the .map file, I got the following lines:

    SECTION ALLOCATION MAP

     output                                  attributes/
    section   page    origin      length       input sections
    --------  ----  ----------  ----------   ----------------
    .TIBootStrap
    *          0    10000000    00000004     UNINITIALIZED
                      10000000    00000004     --HOLE--

    .TIBoot    0    10002e00    00000400     UNINITIALIZED
                      10002e00    00000004     TISecondaryBootPADKNEW.obj (.bss)
                      10002e04    0000007c     --HOLE--
                      10002e80    00000380     TISecondaryBootPADKNEW.obj (.bss:tiSbootBss)

    It seems to me that the compiler only recognized .bss section in the obj file. I don't quite understand this.