This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Use a static variable directly out of the flash memory area

Hello small question,
for my program I use eight large static arrays like,

static unsigned long SP1[64]

and these arrays contains constant values that I need for some calualation in my program this values are never changed. The program code are located in program flash memory. If I remember correctly during the runtime the variable are located (or. copy) in the internal RAM or SRAM (if I use xhuge command for declaration, I found this with the keyword: memory model).

Now my question, is it possible to get this values out of the external flash memory area during the runtime of the program?.

Parents Reply Children
  • OK, first thanks for your answer thats helps

    second the position of XCONST is

    XCONST (0X4200-0XEFFF, 0X10000-0X7F1FE)
    

    Could you explain to me what are the differenc between
    the first and the second settings by XCONST

    XCONST (first settings, second settings)
    

    In special, which memory area (first,second settings) will use if I make a declaration like follow

    static unsigned long const xhuge SP1[64]