Posted on October 25, 2006 at 06:43Hi,
you can change both the position and the maximum lenght of the .share segment by editing the following line in the linker file
+seg .share -b 0x100 -m 128 -is
-b is the start address and -m is the maximum size.
If you have STVD7 generating the linker file for you, I'm sure you can easily setup these parameters somewhere in the menu.
In your case the .share segment seems to be really big (compared to a typical ST7 application), probably meaning that you use lots of local variables: in this case you'd better put the .share at address 0x200, because it would not fit in page0 anyway and it would mess up with the stack if you put it at a lower address. Don't forget to choose the memory model accordingly (+modmm or +modml)
Regards,
Luca (Cosmic)