Skip to main content
Visitor II
November 30, 2010
Question

section boundary crossing

  • November 30, 2010
  • 3 replies
  • 779 views
Posted on November 30, 2010 at 08:04

section boundary crossing

    This topic has been closed for replies.

    3 replies

    saranyimAuthor
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 15:11

    Thank you Luca but could you please guide me how to do that?

    I use STVD + Cosmic (CX STM8) and using firmware libraries from ST 

    I looked in menu Tools -> Setting in C Compiler tab and made change on Memory model  to Long Stack(+modsl0) 

    if I use short stack I have problem with zero page oversize.

    I look around in the forum I found some that point to change to >64k model but I could not find that setting, 

    Regards,

    Saran
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 15:11

    Hi,

    you must compile your application with a ''>64k'' memory model (one of those that do not end with ''0'') and matching libraries.

    Regards,

    Luca

    saranyimAuthor
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 15:11

    Found the solution!!

    When select +modsl will generate the error ''f__stext not defined''

    then go to stm8s_it.h line number 35 

    look for ''void _stext(void); /* RESET startup routine */''

    and edit to ''

    extern @ near void _stext ();'' 

     then problem solve