Hi ,
I am using ARM Cortex M4 . When I compile my code I get "No space in Execution region with .ANY selector matching section .const data .When I decrease the code size I am able to compile the code properly.I think I am overusing the data section which in my controller is 32KB.
I want to know where are all local variables stored in ARM KEIL IDE.Is it stored in Stack dynamically or stored in DATA memory Statically .
Thanks in advance
Regards, Dhanush
Your solution btw is in Per's answer. Try to get the amount of initialized variables reduced as these values are stored in the RO memory.
Local/auto variables are stored on the stack. The stack allocation is typically made in the startup_arch.s
You can reduce static allocations by using dynamic heap allocations, but as Per notes if you want them to contain some specific values, they have to come from somewhere.
If your project exceeds the Eval limit, then you'll need to get a suitably licensed version, or use the GNU/GCC tool chain.