__SP_END  And __STACK_SIZE  missing during linking

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

__SP_END  And __STACK_SIZE  missing during linking

1,393 Views
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 
Labels (1)
0 Kudos
2 Replies

352 Views
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 Kudos

352 Views
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 Kudos