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

Memory errors #13

Open
unmanagedtn opened this issue Jul 24, 2019 · 1 comment
Open

Memory errors #13

unmanagedtn opened this issue Jul 24, 2019 · 1 comment

Comments

@unmanagedtn
Copy link

MicroPython v1.9.4-927-g7565eb7 on 2018-11-08; XBC LTE Cat 1 Verizon with EFM32G
Type "help()" for more information.

Loading /flash/main.mpy...
Running bytecode...
Traceback (most recent call last):
File "", line 1, in
MemoryError: memory allocation failed, allocating 272 bytes

@antohaUa
Copy link
Collaborator

Hi ! As i can see from description this platform has 128 kB Flash and 16 kB RAM
Could you please check free memory on your device with raw MicroPython without any other libs and scripts installed ?

import gc
gc.collect()
gc.mem_free()

Also please check this page
https://github.com/blynkkk/lib-python/tree/master/examples/esp8266

I see that you have defined .mpy but maybe there will be needed more optimized bytecode compression. Could you please share listing of your script just to look for possible "memory eaters"

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

2 participants