Hitting a hard limit on code size
Posted: Tue Jan 13, 2015 5:39 pm
Hi,
gwizz and I have been hitting a hard limit on code size that triggers chip restart. The problem presents on a chunk of around 8KB.
Probably we're just sucking up all the heap, but I guess it might also be some limitation in how loadfile works -- is this configurable?
To duplicate the problem: https://github.com/hamishcunningham/fishy-wifi/tree/master/code-size-bug
(Copy two files defining a meaningless print function to the ESP; running the shorter one works, but the longer one triggers restart.)
We've verified this on two different modules...
Any ideas?
Cheers
Hamish
gwizz and I have been hitting a hard limit on code size that triggers chip restart. The problem presents on a chunk of around 8KB.
Probably we're just sucking up all the heap, but I guess it might also be some limitation in how loadfile works -- is this configurable?
To duplicate the problem: https://github.com/hamishcunningham/fishy-wifi/tree/master/code-size-bug
(Copy two files defining a meaningless print function to the ESP; running the shorter one works, but the longer one triggers restart.)
We've verified this on two different modules...
Any ideas?
Cheers
Hamish