I am trying to figure out how to understand and accurately set the maximum size of malloc(). I am having two issues with different configurations: 1) Using the default "S7G2-DK BSP" project I can successfully malloc 0x600 bytes but malloc fails on 0x700 bytes. In the Synergy Configuration under the BSP tab, the "Heap size (bytes)" is set to 0x400. So why does malloc(0x600) return a good pointer? 2) Using the default weather app for the S7G2-DK I can allocate somewhere between 0x8600 and 0x8700 bytes. It appears when the "D/AVE 2D Port" Synergy module is used (which it is used by default on the weather app) then instead of using the BSP Heap size, it is using the D/AVE 2D Port "Work memory size for display lists in bytes" property. Is this correct? Can you explain this a bit? Also how can I successfully allocate 0x8600 bytes which is more than the 32768 that is defined in the Synergy Configuration properties for the D/AVE 2D Port?
↧