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: creating output section ".adc_cal" without a SECTIONS specification

Hello!

I'm programming the F28335 via Matlab's TargetSupport and Embedded IDE Link. I can load my program to RAM without any problems. If I try to load it to flash I get this warning:

warning: creating output section ".adc_cal" without a SECTIONS specification

What am I doing wrong?

content of my cmd-file:

_RTDX_interrupt_mask = ~0x000000008; /* int used by RTDX */
MEMORY
{
PAGE 0:
    BEGINRAM:  origin=0x0, length=0x2
    RAMM0:  origin=0x2, length=0x3fe
    OTP:  origin=0x380400, length=0x400
    FLASH:  origin=0x300000, length=0x3fff6
    BEGINFLASH:  origin=0x33fff6, length=0x2
    CSM_PWL:  origin=0x3f7ff8, length=0x8
    IQTABLES:  origin=0x3fe000, length=0xb50
    IQTABLES2:  origin=0x3feb50, length=0x8c
    FPUTABLES:  origin=0x3febdc, length=0x6a0
    ROM:  origin=0x3ff27c, length=0xd44
    RESET:  origin=0x3fffc0, length=0x2
    VECTORS:  origin=0x3fffc2, length=0x3e
    RAML4L7:  origin=0xc000, length=0x4000
    ADC_CAL:  origin=0x380080, length=0x9
    ZONE7P:  origin=0x200000, length=0x10000
PAGE 1:
    RAML0L3:  origin=0x8000, length=0x4000
    RAMM1:  origin=0x400, length=0x400
    ZONE7D:  origin=0x210000, length=0x10000
}
SECTIONS
{
    .vectors:  load = 0x000000000
    .text:  > FLASH, PAGE = 0
    .switch:  > FLASH, PAGE = 0
    .bss:  > RAML0L3, PAGE = 1
    .ebss:  > RAML0L3, PAGE = 1
    .far:  > RAML0L3, PAGE = 1
    .cinit:  > FLASH, PAGE = 0
    .pinit:  > FLASH, PAGE = 0
    .const:  > FLASH, PAGE = 0
    .econst:  > FLASH, PAGE = 0
    .reset:  > RESET, PAGE = 0, TYPE = DSECT
    .data:  > RAML0L3, PAGE = 1
    .cio:  > RAML0L3, PAGE = 1
    .sysmem:  > RAML0L3, PAGE = 1
    .esysmem:  > RAML0L3, PAGE = 1
    .stack:  > RAMM1, PAGE = 1
    .rtdx_text:  > FLASH, PAGE = 0
    .rtdx_data:  > RAML0L3, PAGE = 1
    IQmath:  > FLASH, PAGE = 0
    codestart:  > BEGINFLASH, PAGE = 0
    csmpasswds:  > CSM_PWL, PAGE = 0
    csm_rsvd:  > RAMM0, PAGE = 0
    ramfuncs:  LOAD = FLASH,
  RUN = RAMM0,
  LOAD_START(_RamfuncsLoadStart),
  LOAD_END(_RamfuncsLoadEnd),
  RUN_START(_RamfuncsRunStart),
  PAGE = 0
    .adc_cal:  > ADC_CAL, PAGE = 0 , TYPE = NOLOAD
    IQmathTables:  > IQTABLES, PAGE = 0 , TYPE = NOLOAD
    IQmathTables2:  > IQTABLES2, PAGE = 0 , TYPE = NOLOAD
    FPUmathTables:  > FPUTABLES, PAGE = 0 , TYPE = NOLOAD
    DMA_SEC_A: load = 0xFFF4, PAGE = 0
    DMA_SEC_B: load = 0xFFF0, PAGE = 0
}

 

  • Hi Thomas

    Somewhere in the code you assign a variable to the section .adc_cal, however this section is not defined in the linker cmd file (usually the command file for flash configuration is different than for ram configuration). So you either assign the variable to another section or you define the section in the command file, and the warning should be gone away.

    Best regards

    Andreas

  • Hello ,

     

    I have the same problem exactly.

    Code Composer shows me the warning: 

    "warning: creating output section ".adc_cal" without a SECTIONS specification" and the code is halted in the first execution of ADC_CAL (at begginning code).

    ¿Do you solve this problem?

     

    Thanks and regards,

    Ivan

  • if you are using matlab, double click the Target Preference block in your model. the second tab shows all defined memory tags. the last one is ADC_CAL which points to 0x380080 with a length of 0x09. The next tab is section, notice there is a .adc_cal needs to be placed to ADC_CAL section. 

  • Hi Leong,

    Thanks for replying but I configure Target Preferences block in the same way and it isn´t working.

    Have you got that works correctly standalone including any ADC?

     

  • I'm using 2010b and I chose the 28335 custom board. I had it worked fine with my ADC. The setup I have is a 28335 usb docking station+control card. In matlab i do ccs4 makefile only for now and i load the program directly from the ccs4 debugger.

    if you are using ccs4, It may also help if you create a separate CCS4 project and import all -Ds from the rtwproj. then link all source files and add necessary path to the project. After the RTW build, you can compile the separate project in CCS4. Then you can hand modify some code and see the effect.

    hth

    Leong

    ps. below is the cmd file i got.

    MEMORY

    {

    PAGE 0:

        BEGINRAM: origin=0x0, length=0x2

        RAMM0: origin=0x2, length=0x3fe

        OTP: origin=0x380400, length=0x400

        FLASH: origin=0x300000, length=0x3fff6

        BEGINFLASH: origin=0x33fff6, length=0x2

        CSM_PWL: origin=0x3f7ff8, length=0x8

        IQTABLES: origin=0x3fe000, length=0xb50

        IQTABLES2: origin=0x3feb50, length=0x8c

        FPUTABLES: origin=0x3febdc, length=0x6a0

        ROM: origin=0x3ff27c, length=0xd44

        RESET: origin=0x3fffc0, length=0x2

        VECTORS: origin=0x3fffc2, length=0x3e

        RAML4L7: origin=0xc000, length=0x4000

        ADC_CAL: origin=0x380080, length=0x9

    PAGE 1:

        RAML0L3: origin=0x8000, length=0x4000

        RAMM1: origin=0x400, length=0x400

    }

    SECTIONS

    {

        .vectors: load = 0x000000000

        .text: > FLASH, PAGE = 0

        .switch: > FLASH, PAGE = 0

        .bss: > RAML0L3, PAGE = 1

        .ebss: > RAML0L3, PAGE = 1

        .far: > RAML0L3, PAGE = 1

        .cinit: > FLASH, PAGE = 0

        .pinit: > FLASH, PAGE = 0

        .const: > FLASH, PAGE = 0

        .econst: > FLASH, PAGE = 0

        .reset: > RESET, PAGE = 0, TYPE = DSECT

        .data: > RAML0L3, PAGE = 1

        .cio: > RAML0L3, PAGE = 1

        .sysmem: > RAML0L3, PAGE = 1

        .esysmem: > RAML0L3, PAGE = 1

        .stack: > RAMM1, PAGE = 1

        .rtdx_text: > FLASH, PAGE = 0

        .rtdx_data: > RAML0L3, PAGE = 1

        IQmath: > FLASH, PAGE = 0

        codestart: > BEGINFLASH, PAGE = 0

        csmpasswds: > CSM_PWL, PAGE = 0

        csm_rsvd: > RAMM0, PAGE = 0

        ramfuncs: LOAD = FLASH,

    RUN = RAMM0,

    LOAD_START(_RamfuncsLoadStart),

    LOAD_END(_RamfuncsLoadEnd),

    RUN_START(_RamfuncsRunStart),

    PAGE = 0

        .adc_cal: > ADC_CAL, PAGE = 0 , TYPE = NOLOAD

        IQmathTables: > IQTABLES, PAGE = 0 , TYPE = NOLOAD

        IQmathTables2: > IQTABLES2, PAGE = 0 , TYPE = NOLOAD

        FPUmathTables: > FPUTABLES, PAGE = 0 , TYPE = NOLOAD

    }

    -l "C:\Program Files (x86)\MATLAB\R2010b\toolbox\idelink\extensions\ticcs\c2000\c2833xPeripherals.cmd"

  • Hi Leong,

    my cmd. file looks exactly the same but I haven´t got that it works.

    Questions:

    1. When you said " import all -Ds from the rtwproj", which files do you import? Could you list them please? CCS4 doesn´t build me the project without errors...
    2. Must I hand-modify a lot of code?

    Thanks again, I appreciate very much your help!

  • Hi tomas,

    I have similar problem and I solved this by restarting the CCS. Hope it helps.  :D