AnsweredAssumed Answered

Can you store structures in sdram?

Question asked by sauwen on Jan 19, 2011
Latest reply on Jan 20, 2011 by Andreas



I am trying to initialize my structures to be stored in sdram because they get quite large in my program.  My problem is that I don't know how to implement this.


Usually, to store variables and arrays, you'd just do this:

#pragma section ("sdram0")

int a[100];

int b[100];

int c[100];


When I try to do this:

#pragma section ("sdram0")

typedef struct test {
  char     file[MAX_STRING];
  int  a[100];
  int  b[100];
} test_t;
and then build the project (F7), I get a warning: #pragma section before type "test_t" has no effect.
What is the way to store structures in sdram?