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.

size of .const section in binary, CC3200/ TI-RTOS CCS6 project

Other Parts Discussed in Thread: CC3200

I'm using CC3200 + TI-RTOS + SimpleLink with a CCS6 project.  I'm facing image size constraints on the flash and peered into the map file.

I find that the .const section contains a piece from "xdc_runtime_Text_charTab__A" which is by far the largest chunk.

.const 0  20015514   00002576     
          20015514   000018cb     app_pem4.oem4 (.const:xdc_runtime_Text_charTab__A)
          20016ddf   00000101     rtsv7M4_T_le_eabi.lib : ctype.obj (.const:.string:_ctypes_)
          20016ee0   00000100     driverlib.a : pin.obj (.const:g_ulPinToPadMap)
            ...

I'm interested in reducing the .const footprint, and everything in my application is obviously much smaller (the listing above is sorted on descending size of item).

In my workspace, the project "ti_rtos_config" is linked to the SDK version of the same project, as instructed by the "Getting started guide".
if I misconfigure the app.cfg, I mess up the SDK itself. I think that's a bad idea, so I'd like to go on a sure foot and seek expert advise on how to go about this.

How do I optimize the .const footprint? Thanks for reading.

  • Hi,

    This section is for human readings string in case of exceptions. I think this section is really not necessary in final product firmware. You can disable it by this code in app.cfg:

    var Text = xdc.useModule('xdc.runtime.Text');
    Text.isLoaded = false;

    Information how to mineralise memory utilisation of TI-RTOS you find in this document (http://www.ti.com/general/docs/lit/getliterature.tsp?baseLiteratureNumber=SPRUEX3 ) - chapter "Minimizing the Application Footprint".

    By the way ... also do not forget use first 16kB (0x20000000 - 0x20004000) for your RAM stuff (.stack, .data, etc.).

    Jan