| |||||
Technical Support Support Resources
Product Information | GCC: CONFIGURING MALLOC FUNCTIONInformation in this article applies to:
QUESTIONI'm having problems with the ARM GNU compiler. It seems that the function malloc() never returns. What could be wrong in my application? ANSWERWe use minimal startup code in several example projects to reduce the library overhead of the GNU compiler. The folder C:\Keil\ARM\GNU\Examples\Memory shows an example that initializes the memory heap for the malloc function. You should use this example as a starting point for your application. Note that the startup code of this example is generic and not configured for any specific device. Therefore, you may need to add device specific initialization to the STARTUP.S file. SEE ALSOLast Reviewed: Monday, July 10, 2006 | ||||
| |||||