Hi,
Is any option like __flash in IAR to store data in the program memory instead of ram??... Want to store 300 bytes of data "uint16_t data[150]={0x3349, 0x4430...." and read it later. I'm trying think like that:
__flash uint6_t data[150].. code uint6_t data[150]..
But compiler don'r recognizes any...
Thanks
Use const.
With const the data is also stored in data segment... don't want this, want to free some data bytes storing it in code segment.
With const the data is also stored in data segment...
This would happen if you declared a local variable as const. You have to declare them as static const.
Declaring the data like "static const uint16_t data[150].." inside or outside function the compiler stores it is the data segment... no in the code segment as I need.