Tips to reduce heap usage?
Posted: Tue Jan 13, 2015 3:25 pm
Guys,
I seem to have heap issues, some of them related to SDK bugs like the one shown here:
As a result, I get a "malloc assert!" message and the module restarts; This happens when the heap drops below 10K
Any tips on how to reduce the heap usage so that I have more of it to start with? I've all of my functions prefixed with ICACHE_FLASH_ATTR, but am not sure if that forces any printf text inside to flash, or is it just the code?
Thanks
I seem to have heap issues, some of them related to SDK bugs like the one shown here:
As a result, I get a "malloc assert!" message and the module restarts; This happens when the heap drops below 10K
Any tips on how to reduce the heap usage so that I have more of it to start with? I've all of my functions prefixed with ICACHE_FLASH_ATTR, but am not sure if that forces any printf text inside to flash, or is it just the code?
Thanks