Skip to content
This repository was archived by the owner on May 7, 2025. It is now read-only.
This repository was archived by the owner on May 7, 2025. It is now read-only.

Memory errors #13

Open
Open

Description

@unmanagedtn

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

Activity

  1. antohaUa commented on Jul 25, 2019

    @antohaUa
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions