cancel
Showing results for 
Search instead for 
Did you mean: 

segment .ubsct size overflow

telema
Associate II
Posted on March 03, 2005 at 11:20

segment .ubsct size overflow

5 REPLIES 5
telema
Associate II
Posted on February 28, 2005 at 21:14

I've included the error output below. Does anyone know what is causing this.

I'm using the ST72324Bk6

& Cosmic ST7 Compiler

I appreciate your help.

Thanks

Running ST7 linker

clnk -o Debug\sierra.st7 -lC:\COSMIC\CXST7\Lib -mDebug\sierra.map Debug\sierra.lkf

#error clnk Debug\sierra.lkf:1 segment .ubsct size overflow (557)

#error clnk Debug\sierra.lkf:1 segment .share size overflow (109)

The command: ''clnk -o Debug\sierra.st7 -lC:\COSMIC\CXST7\Lib -mDebug\sierra.map Debug\sierra.lkf '' has failed, the returned value is: 1

exit code=1.

luca239955_st
Associate III
Posted on March 01, 2005 at 04:38

.ubsct is the segment that stores non inizialized variables in the zero page, which is 128 bytes max, so you are trying to use more memory than available, hence the overflow message.

You should change memory model, but your application seems to big for that chip anyway...

Regards,

Luca (Cosmic)

telema
Associate II
Posted on March 01, 2005 at 09:57

Luca

Where can I find definitions of all these memory segments? Is there a programming manual online somewhere that will help me correctly set up these segments?

Thanks for your help

luca239955_st
Associate III
Posted on March 02, 2005 at 06:16

the relevant doc is the CXST7 user manual.

You should have it in your installation (cosmic/cxst7/doc), but you can also find it

http://www.cosmic-software.com/downloads/docs/cxst7.zip

Regards,

Luca

telema
Associate II
Posted on March 03, 2005 at 11:20

Thanks Luca.

I've got it.