Hi Kunal,
You need to set in your project's linker file heap start and heap size as well as the stack. You can set here the address where you wish it to start.
/* Generate a link error if heap and stack don't fit into RAM */
__heap_size = 0x800; /* required amount of heap */
__stack_size = 0x800; /* required amount of stack */
/* User_heap_stack section, used to check that there is enough RAM left */
._user_heap_stack :
{
. = ALIGN(4);
PROVIDE ( end = . );
PROVIDE ( _end = . );
__heap_addr = .;
. = . + __heap_size;
. = . + __stack_size;
. = ALIGN(4);
} > m_data
If you have questions about how linker file works you can see the following document,
Relocating Code and Data Using the CW GCC Linker File for Kinetis
Regards,
Carlos