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.

Placing a structure member in particular memory segment

Hi,

 I wanted to allocate a particular structure member in my choice of memory, so i declared the structure as followed,

struct xyz

{

#pragma DATA_SECTION( x, ".sbsram")

    int x[10000];

    int y[10000];

    int z[10000];

};

 

When i compile i get the error

#837-D pragma can only be applied to a file level symbol, not 'x,',

How to rectify it, and place a stucture member in the particular segment of memory.

 

Regards,

Deepa