Skip to main content
ST Employee
August 10, 2010
Question

#pragma section not working with free 32kB cosmic?

  • August 10, 2010
  • 2 replies
  • 688 views
Posted on August 10, 2010 at 13:15

#pragma section not working with free 32kB cosmic?

    This topic has been closed for replies.

    2 replies

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

    Hi Carsten,

    please note the text inside the generated .lkf!

    # LINK COMMAND FILE AUTOMATICALLY GENERATED BY STVD:

     

    #  * TOTALLY IF AUTO MODE IS ENABLED

     

    #  * ONLY INSIDE MARKERS IN SEMI-AUTO MODE

     

    #

     

    # CHOOSE THE CUSTOM MODE IN STVD IN ORDER TO HAVE FULL CONTROL OVER THIS FILE.

     

    #

     

    # Sections delimited by <BEGIN ...> and <END ...> markers are reserved for

     

    # STVD: DO NOT MODIFY INSIDE.

     

    #

     

    # Manual modifications are allowed OUTSIDE these sections, WHEN STVD AUTO MODE

     

    # IS DISABLED.

     

    Please let us know, when you succeed.

    Regards,

    WoRo
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 15:09

    Hi,

    the problem seems to be that you redirect @near variables whereas i is @tiny (this is forced by the memory model and is seen by the fact that it is assigned to .bsct).

    Try

    #pragma section @tiny [tempdata]

    Regards,

    Luca