Esp8266 based board has not enough RAM to load the module #18
Replies: 9 comments 5 replies
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Thanks for your quick reply.
|
Beta Was this translation helpful? Give feedback.
-
Hi, May you provide a wifi internet connection to your board? If so, can you try the example suggested in the readme here ? |
Beta Was this translation helpful? Give feedback.
-
Yes, I installed the latest version. |
Beta Was this translation helpful? Give feedback.
-
Ok, try that way. Remember to reset the board (Ctrl-D in Thonny) and let it run boot.py and main.py, do not play your scripts directly from Thonny. The online installation works fine, so if you will get the memory error, then it means that you have not enough RAM on your board to run this driver, and you could try to precompile or frozen the driver or try to write a lighter one on your own. Let me know what happens! |
Beta Was this translation helpful? Give feedback.
-
Tried it and got the error: Trying to connect to the Internet to download the module. Can you tell me how to frozen the driver? |
Beta Was this translation helpful? Give feedback.
-
Hi, Edit: I converted this into a discussion, since it's not a library issue. Let me know if you will be able to successfully freeze the module! |
Beta Was this translation helpful? Give feedback.
-
get a same error. |
Beta Was this translation helpful? Give feedback.
-
Hey guys, here you can find a thorough explanation about this issue and how to overcome it. Cheers! |
Beta Was this translation helpful? Give feedback.
-
When I tried from max30102 import MAX30102, always got importError: no module named 'max30102.MAX30102'
dir as below:
lib
-max30102
--circular_buffer.py
--init.py
I also tried from max30102.init import MAX30102, got another error:
Traceback(most recent call last):
File"", line1, in
MemoryError: memory allocation failed,allocating 416 bytes
Please help me.
Beta Was this translation helpful? Give feedback.
All reactions