__SP_END  And __STACK_SIZE  missing during linking

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

__SP_END  And __STACK_SIZE  missing during linking

2,080件の閲覧回数
ND
Contributor I
Hi,
 I have the MC52233 DEMO board and writing a small project to get used of the RTOS. Im using Codewarrior 6.3.
 
Everything compiles, but I get the following link error message:
 Undefined : "__STACK_SIZE"
Referenced from "TK_NEWTASK" in osporttk.c
 
Anyone let me know how to fix this problem?
 
Many Thanks
Neil 
ラベル(1)
0 件の賞賛
返信
2 返答(返信)

1,039件の閲覧回数
gxd
Contributor I
Hi Neil:
 
Do you fix the error by codewarrior6.3 can't compile the coldfire TCP/IP Lite?
 
Many Thanks!
 
gxd.
0 件の賞賛
返信

1,039件の閲覧回数
CrasyCat
Specialist III
Hello
 Apparently the RTOS you are using is expected symbols  __SP_END and __STACK_SIZE  to be defined.
 
In order to be able to link the application you have to define them.
Usually you define these symbols in the linker command file.
For example:
   __STACK_SIZE  = 0x800;
   __SP_END = 0x20008000 - __STACK_SIZE;
This is directly related to the way the RTOS expects  the stack to be set up.
So I would recommend you to check with your RTOS provider, how he is expecting the symbol to be defined.
CrasyCat
0 件の賞賛
返信