What is maximum valid heap size
Posted: Fri Aug 02, 2019 7:41 am
main.c has this line:
I've slowly been increasing this in an effort to process larger strings. I've seen some behavior I don't understand and I'm hoping someone can enlighten me.
When I have the ESP running in station mode I'm able to have the heap set to 47KB and things seem mostly stable. I do get a random reset which I asked about here, but I'm not sure if that is related or not.
When I have the ESP running as an AP I'm only able to have the heap set to 43KB before it becomes unstable. In this situation I don't even have any other code running. The only thing I've done is configure the AP. So this is confusing to me.
What is the max heap size that can be specified in main.c? Is disabling features in mpconfigport.h the best (only?) way to allow the heap size to be increased?
Code: Select all
STATIC char heap[38 * 1024];
When I have the ESP running in station mode I'm able to have the heap set to 47KB and things seem mostly stable. I do get a random reset which I asked about here, but I'm not sure if that is related or not.
When I have the ESP running as an AP I'm only able to have the heap set to 43KB before it becomes unstable. In this situation I don't even have any other code running. The only thing I've done is configure the AP. So this is confusing to me.
What is the max heap size that can be specified in main.c? Is disabling features in mpconfigport.h the best (only?) way to allow the heap size to be increased?