This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

heap

Simple question probably..

I have define my heap in the startup.s
Heap_Size EQU 0x00001032

In a function I use:
void SST25_EditEXTStr(...)
{ unsigned char *buffer;

buffer = malloc(0x1000);

if (buffer != NULL) {

//do my stuff

free(buffer);

}
}

How come I can not set my Heap_Size to 0x00001000. If I do the buffer will be NULL

Thnx

0