Question
malloc not work on size more then 500 bytes in STM32
Posted on February 12, 2013 at 13:25
I try to enter malloc for some area at my program
I use IAR 6.4 with STM32F205ZC.first i annunce the buffer pointeruint16_t * ADC3ConvertedValue;
and then I call the functionADC3ConvertedValue = (uint16_t*) malloc (500 );
free(ADC3ConvertedValue);I have a lot of free RAM space (use only 18K of 96K) but even I put this function at the beginning of the program it return NULL if I ask more then 500 bytes(even 511). Is there more setting i need to do or it is the compiler or the MCU limitation?RegardsBar.