Jun 23, 2014
03:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 23, 2014
03:06 AM
Dear,
I use MCU STM32F103RD(64KB SRAM),when I have used 60KB I call malloc(10) will fail ,can't get space ?
Thanks a lot !!!
Solved! Go to Solution.
Labels
- Labels:
-
Memory
1 Solution
Jun 27, 2014
01:03 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 27, 2014
01:03 PM
Hello,
Since MALLOC will allocate 4K blocks and runs in virtual memory, sometimes you can have fragments. (Usually not an issue in systems with huge memory.)
Things like "scan results" and other functions rely on MALLOC, so it is best not to use every last bit or rely on it too heavily.
Hope this helps.
5 Replies