Skip to main content
Visitor II
April 24, 2009
Question

help: define var. with aboslute addr. and init. value

  • April 24, 2009
  • 5 replies
  • 783 views
Posted on April 24, 2009 at 13:14

help: define var. with aboslute addr. and init. value

    This topic has been closed for replies.

    5 replies

    wolverAuthor
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 15:02

    Hello

    I use Cosmic, When I define var. with aboslute addr. and init. value, Compiler error...

    Att. is my source code, Compiler report:

    #error cpstm8 stm8_interrupt_vector.c:79(69) missing expression

    How can I fix it?

    Regards

    wolver

    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 15:02

    http://www.cosmicsoftware.com/faq/faq3.php

    wolverAuthor
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 15:02

    Hi: _luca

    # LINK COMMAND FILE AUTOMATICALLY GENERATED BY STVD7

    # SHOULD NOT BE MANUALLY MODIFIED

    #

    How can I place ''+seg .iconst -b 0xe0000'' ...?

    Regards

    wolver

    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 15:02

    Hi Wolver,

    You can define the segment e.g. 'const and section 'iconst' in the linker settings of the ST Visual develop.

    Go to Project/settings/linker => select catergory 'input''. Here by right click on Segment/section name, you can create a new segment 'const' and then create a section 'iconst' under this segment. Then allocate the address to this segment/section.

    Regards,

    Jatin

    wolverAuthor
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 15:02

    Hi Jatin

    Thank you! Trouble runs away...

    Regards

    wolver