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.
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?.
The best way to verify the physical address is to take a look to the linker map file (*.M66 for 166 projects).
Take a look to: http://www.keil.com/support/man/docs/c166/c166_ap_sgc.htm
What you may have missed is the definition for the XCONST memory class that allows you to locate variables that are define with const xhuge.
See also: http://www.keil.com/support/man/docs/l166/l166_pm_example3.htm
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]