Forum : ST7/STM8
Post Information | Post |
---|---|
March 19, 2008 - 3:44pm
|
I believe this means I have run out of direct access RAM. Memory Map as follows: DATA 0080H 0002H PAGE0 ?D0?Message_Generation_Function?APP_MESSAGE_GEN DATA 00E8H 0002H PAGE0 ?D0?ITC I am not sure how to move data into I or X DATA or if this is correct for the ST7. I know I have more memory between 0xFF and 0x180, but how do I access it? Thanks |
Hello Jordan,
On ST7, PAGE0 stands for "short range RAM" (i.e. below address 255, address fits within a single byte), although DATA stands for "long range" RAM.
The easiest way to go is to switch your project to DMC(DATA) or change the ?D0?APP_GLOBALS global variables to data.
You can do this as follows:
data char myarray[20]; /* Short-range data */
data char myarray2[20]; /* Long-range data */
Also please refer to the Compiler manual for "Auto-relocation mode", which automatically affects the variables to page0 or data depending on the project's RAM usage.
Bruno