Skip to main content
Visitor II
March 3, 2005
Question

segment .ubsct size overflow

  • March 3, 2005
  • 5 replies
  • 2044 views
Posted on March 03, 2005 at 11:20

segment .ubsct size overflow

    This topic has been closed for replies.

    5 replies

    telemaAuthor
    Visitor II
    February 28, 2005
    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.

    Visitor II
    March 1, 2005
    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)

    telemaAuthor
    Visitor II
    March 1, 2005
    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

    Visitor II
    March 2, 2005
    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

    telemaAuthor
    Visitor II
    March 3, 2005
    Posted on March 03, 2005 at 11:20

    Thanks Luca.

    I've got it.