2010-11-29 11:04 PM
section boundary crossing
2011-05-17 06:11 AM
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,
Saran2011-05-17 06:11 AM
Hi,
you must compile your application with a ''>64k'' memory model (one of those that do not end with ''0'') and matching libraries. Regards, Luca2011-05-17 06:11 AM
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