How to make the heap bigger?

5 posts / 0 new
Last post
gcblair
Offline
Last seen:4 years 7 months ago
Master
加入:2014-09-08 10:21
How to make the heap bigger?

Hi,

How do I increase the size of the heap? For using things like malloc
我看到有
Heap_Size EQU 0x00000200

在startup_CMDK_CM0。但我am now 100% sure if this is the place or not as there are many references to heap in the code

Thanks

Device:
MT_dialog
Offline
Last seen:3 days 18 hours ago
Staff
加入:2015-06-08 11:34
Hi gcblair

Hi gcblair

If you want to increase the systems heap this is probably the way, but isn't tested and we dont know how the system will react.

Why you don't use the ke_malloc instead?

Thanks MT_dialog

gcblair
Offline
Last seen:4 years 7 months ago
Master
加入:2014-09-08 10:21
I think I am increasing Heap

I think I am increasing Heap_Size and it isn't making a difference from what I can see. I tested this by running a loop with malloc(1) until it returns a null pointer.

Why to use ke_malloc instead of the normal malloc? Is this the way you would recommend? If so, how can I increase the heap for ke_malloc?

gcblair
Offline
Last seen:4 years 7 months ago
Master
加入:2014-09-08 10:21
Hi,

Hi,

I was not changing the right Heap_Size. I increased the heap and it seems to be fine now thanks

MT_dialog
Offline
Last seen:3 days 18 hours ago
Staff
加入:2015-06-08 11:34
Hi gcbalir

Hi gcbalir

Thanks for indicating.

BR MT_dialog