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 warning when I am sending a variable to the IRAM

Other Parts Discussed in Thread: CCSTUDIO

Hey,

I am using a DM6446 that is on a custom designed board. The system uses a lot of tasks and SWI and HWIs. The issue that I am facing is that there is a variable that I have declared as an int in one file and I am using it in multiple places.

I have taken the necessary precautions with extern and volatile and all. The system works fine besides a bug that presents itself at times. To address that,  I tried shifted the data to the IRAM with #pragma DATA_SECTION.

Upon compilation it gives me the following warning.

[Linking...] "C:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -@"Debug.lkf"
<Linking>
>> warning: Detected a near (.bss section relative) data reference to the symbol
            _hoppingDataPending defined in section .onchip.  The reference
            occurs in C:\\Documents and Settings\\User\\Desktop\\LINUX\\Post
            Demo\\MOD CODES\\656_HoppingData\\Debug\\asp.obj, section .text,
            SPC offset 0000063c.  Either make the symbol near data by placing
            it in the .bss section, or make the references to the symbol far.
            For C/C++ code use 'far' or 'near' modifiers on the type definition
            of the symbol or compile with the --mem_model:data switch.

Any ideas as to WHY it would be complaining about this?