46
NXPTM LPC2XXX and LPC17XX / Stack_Mem
« on: October 04, 2010, 03:59:05 PM »
Hello Mark,
I need help with your variables names .
On LPC23XX.c :
but on LPC23xx_keil.s:
I need help with your variables names .
On LPC23XX.c :
Code: [Select]
_extern_ unsigned char Stack_Mem;
#define HEAP_START_ADDRESS &Stack_Mem // Keil - start of stack
.....
fnInitialiseHeap(ctOurHeap, HEAP_START_ADDRESS); // initialise heap
That means that you initialized OUR_HEAP_SIZE locations from Stack_Mem for the µTaskerHeap.but on LPC23xx_keil.s:
Code: [Select]
EXPORT Stack_Mem
AREA STACK, NOINIT, READWRITE, ALIGN=3
Stack_Mem SPACE USR_Stack_Size
What is the use of this line, which reserved USR_Stack_Size locations from Stack_Mem again.