cancel
Showing results for 
Search instead for 
Did you mean: 

.share segment

sergok8281
Associate
Posted on October 25, 2006 at 06:43

.share segment

2 REPLIES 2
sergok8281
Associate
Posted on October 24, 2006 at 21:28

Hi,

i use ST72f63bd6, cosmic st16k limited and stvd7.

When i compile the code, it gives me .share sive overflow (202) error.

I have observed the memory mapp of the MCU.

How to change .share segment size at the stvd7 or Can i move .share segment to another place in the ram area?

How to solve the problem?

Regards?

luca239955_st
Associate III
Posted on October 25, 2006 at 06:43

Hi,

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)