Page 1 of 1

Symbol EE_stkfirst is out of address range

Posted: Mon Jun 24, 2013 4:14 pm
by eugenskt
Hi,

I have now integrated Erika in my project and try to solve linker errors. Unfortunately my breaking point is this linker error (see attachment). Do I understand it right variable EE_stkfirst is to far away from ee_activate.o? Is it a problem of near adressing? I hope someone has experience with this linker stuff.

Thanks!

Regards, Eugen

Re: Symbol EE_stkfirst is out of address range

Posted: Tue Jun 25, 2013 10:05 am
by eugenskt
Hi,

I've solved this problem with this help http://www.tek-tips.com/viewthread.cfm?qid=1677386. _SDA_BASE_ was the problem. I just changed the .sdata with .data because the error message says something about _SDA_BASE_ and .data

Code: Select all

_SDA_BASE_ = ADDR(.data) + 0x7ff0;
__SDA_BASE_ = _SDA_BASE_;
As I said in other posts I only use the libee in my project. I do not use RTDruid for the whole project.

Regards, Eugen

Re: Symbol EE_stkfirst is out of address range

Posted: Wed Jun 26, 2013 8:22 am
by paolo.gai
it seems probably related to the fact that the crt0 you are using does not have a reference to the RAM limits... anyway i'm happy you solved the issue!

Ciao,

Paolo

Re: Symbol EE_stkfirst is out of address range

Posted: Thu Jul 04, 2013 2:56 pm
by eugenskt
Hello,

a more elegant solution would be to use

Code: Select all

		EE_OPT = "__NO_APP__";
		EE_OPT = "EE_CONFIGURATED_LIB"; 
Then all stuff from eecfg.c would be related with all other code in the libee.a.

And the problem disappear :)

Regards, Eugen