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
Hi, Ok, now the data is in the code segment (RO section), but, the ZI remains the same at 8702 bytes... why the ZI not changes?...
what is "the ZI"?
Erik
forgot my last question... is absurd..
Keep up smart guy. Zi=Zero Init.
So when you did your mentoring, was it in any way related to technology? (that's a rhetorical question)
ZI = Zero-Initialized, i.e. the segment used for global variables that haven't been given an initial value. The C language standard requires all global variabls to have a known value before you get to main(), so the startup code have to zero-initialize variables without explicit assign.
To answer your question about the size of the ZI region - your map file should tell what the memory is used for. Do a quick check, and you will find out.