You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wrote a module 'nkBMP180.lua' in the 2.5 kb and only 108 lines.
When I load it my test: require 'nkBMP180.lua ",
I get the message:
dofile('test_BMP180.lua')
error loading module 'nkBMP180' from file 'nkBMP180.lua':
" not enough memory"
This message indicates a stack overflow ( see http://lua-users.org)
This is not a problem heap, the stack size is a problem.
It is necessary to increase the size of the stack in the following assemblies nodeMCU.
The text was updated successfully, but these errors were encountered:
thank you for esplorer! It's a helpful tool!
Can you show us the lua file in question?
The error message does not indicate a stack error, but a heap error.
The stack size can't be increased easily if at all. AFAIS the standard stack
upper limit is used 0x3fffffff and currently no lower limit is set which will
result in reboots if memory is trashed - typically the SDK times list - and the watchdog timer kicks in.
So what we need for stability is less stack usage, not more.
If you show your example in the esp8266 forum more people could discuss the matter.
I wrote a module 'nkBMP180.lua' in the 2.5 kb and only 108 lines.
When I load it my test: require 'nkBMP180.lua ",
I get the message:
The text was updated successfully, but these errors were encountered: