cancel
Showing results for 
Search instead for 
Did you mean: 

section boundary crossing

saranyim
Associate II
Posted on November 30, 2010 at 08:04

section boundary crossing

3 REPLIES 3
saranyim
Associate II
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
luca239955_stm1_st
Senior II
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

saranyim
Associate II
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