We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi All
If I declare a variable (or a data struct) static, the data is placed in the IRAM. I guess the static data is moved to the IRAM before the "main" in called and probally also before the SDRAM is up running.
But is it possible to locate any static declared data to RAM instead of IRAM?
Thomas
I have my doubts, not aboot locating the variable, but the initialization thereof.
I is my impression that initialization of variables take place before the external memories are enabled.
If I'm right, then, of course you can, yourself, initialize the external memories after enableing them.
Erik
PS just a footnote: if there are a lot of variables to go in external RAM, I would locate them in a sparate module and use "options for file" to avoid a bunch of __attribute__((section(". .....