AnsweredAssumed Answered

malloc not work on size more then 500 bytes in STM32

Question asked by strauss.bar on Feb 12, 2013
Latest reply on Feb 13, 2013 by Clive One
I try to enter malloc for some area at my program
I use IAR 6.4 with STM32F205ZC.
first i annunce the buffer pointer
uint16_t * ADC3ConvertedValue; 
and then I call the function

ADC3ConvertedValue = (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?
Regards
Bar.

Outcomes