Hi
This is probably a fairly easy question, but I just cannot find any documentation or code examples to help me solve the problem. Can anyone point me at a document that explains the syntax of the *.lcf command files, as I just can't seem to find it ?
I am using Code Warrior 7.1 and building for the 54455 V4 CPU, with MQX V3.5
I have ported some existing code over and fixed a bunch of compile errors. I am now stuck on some linker errors. I realise because the code uses malloc() and free() I need to define a heap.
Error : Undefined : "__HEAP_START"
Referenced from "__break" in
Error : Undefined : "__mem_limit"
alloc.c line 176 Referenced from "brk" in
Error : Undefined : "__stack_safety"
alloc.c line 176 Referenced from "brk" in
Link failed.
I can fix the " __HEAP_START link error by guessing what the definition should be for this variable in the lcf file
but I have no idea how to fix the problem with "__mem_limit" and "__stack_safety" variables
The odd thing is I can search my entire Freescale folder for ""__stack_safety" and get no hits and if I look in alloc.c line 176 is in the middle of some comments. Very confusing
I would appreciate any help on this problem, thanks.
Regards Geoff