Skip to content

FLASH and RAM memory analysis #313

@JF002

Description

@JF002

Now that we've just released version 1.0 of this project, I think it would be useful to take some time to analyze the memory (RAM and FLASH) usage.
Indeed, both memory are nearly full right now : firmware is ~410KB out of the 460KB available, and it's becoming harder and harder to find RAM memory to allocate buffers when needed.

FLASH memory usage should be fairly easy to map using the .map file.

RAM memory usage is a bit more difficult to figure out. I've already done a bit of researches :

  • There is a global stack and heap regions allocated by the linker script. I think both are 8KB. How full are they? Can we shrink or are they already full?
  • FreeRTOS use a 16KB buffer as a heap for its own use (memory allocation, stack for tasks,...)
  • LVGL has its own 14KB memory buffer.
  • NimBLE probably use a good amount of RAM memory too. How much? And where is it allocated?

Mapping memory usage will allow us to see what's need to be optimized and which solutions we can implement to be able to continue to add new features and applications.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions