Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stack size problem #303

Closed
4refr0nt opened this issue Mar 19, 2015 · 2 comments
Closed

Stack size problem #303

4refr0nt opened this issue Mar 19, 2015 · 2 comments

Comments

@4refr0nt
Copy link

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.

@cal101
Copy link
Contributor

cal101 commented Apr 9, 2015

Moin,

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.

Carsten

@TerryE
Copy link
Collaborator

TerryE commented Nov 2, 2015

The current dev issue addresses this.

@TerryE TerryE closed this as completed Nov 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants