Any tips on troubleshooting heap problems?
Posted: Mon Feb 01, 2016 11:12 pm
I'm new to C programming so managing memory is not something I do second nature. I'm using a NodeMCU v1 board (4M).
I've created a web server where I'm storing a fair amount of data in EEPROM. Starting it using EEPROM(1024) (is that kosher? I can just pick any random number under 4096?). First phase went well, so I added another block of data to the mix and now it QUICKLY runs out of heap just trying to serve up the index page once.
So including stupid newbie mistakes, what are some tips for managing memory on this guy so I can get back on track? Am I addressing EEPROM in an allowed manner? THX
I've created a web server where I'm storing a fair amount of data in EEPROM. Starting it using EEPROM(1024) (is that kosher? I can just pick any random number under 4096?). First phase went well, so I added another block of data to the mix and now it QUICKLY runs out of heap just trying to serve up the index page once.
So including stupid newbie mistakes, what are some tips for managing memory on this guy so I can get back on track? Am I addressing EEPROM in an allowed manner? THX