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 i'm having a program for ST10 which has lots of variables defined. It works fine when I run it using MOnitor program i.e. through an external RAM. But when i change the settings to run it from flash, it is giving a warning after linking as follows: "L5: section located outside class area." I have changed my memory model to the largest option available, but stil the same problem. Pls help Regards Sonali
Hi Mike, thanks for the help. I have used arrays wherever possible. Can you give me more hints on memory management in internal as well as external RAM?
Sorry for the delay. I cannot give much advice since I don't know your application's memory layout. The warning message 'section located outside class area' means that you've run out of memory (provided you had allocated all the memory intended for the class). Make sure you have enough RAM to store all your non-const variables as well as the two stacks. To find out how the compiler allocates sections and classes, read the compiler manual (advanced programming techniques/section, group and class names). Check your project's target settings to make sure that you've specified correct memory layout. Regards, Mike.