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

Enhance Memory Management #22

Open
xxosc opened this issue Apr 5, 2024 · 0 comments
Open

Enhance Memory Management #22

xxosc opened this issue Apr 5, 2024 · 0 comments

Comments

@xxosc
Copy link

xxosc commented Apr 5, 2024

Issue:

The current codebase utilizes a hardcoded buffer size of 1024, which is suboptimal for memory-constrained microcontroller units (MCUs). Additionally, debug strings present in the binary further inflate memory usage, posing challenges for deployment on low-memory MCUs.

Proposals:

  1. Dynamic Buffer Sizing: Introduce a mechanism to dynamically adjust buffer size based on user-defined requirements. This flexibility would allow users to tailor buffer sizes to their MCU's specific memory constraints, optimizing memory usage without sacrificing functionality.

  2. Debug String Removal: Implement a feature to strip debug strings from the binary during compilation or provide a configuration option to exclude them. This optimization would significantly reduce the binary size and alleviate RAM usage, making deployment on low-memory MCUs more feasible.

  3. Interface for Storing Large Chunks of Constant Data in Progmem: Develop an interface to efficiently store large chunks of constant data like dmp firmware in PROGMEM. By utilizing PROGMEM for constant data storage, we can conserve RAM and effectively manage memory resources, particularly for storing large datasets or configuration parameters.

Expected Benefits:

  • Enhanced flexibility for users to adapt buffer sizes according to their MCU's memory constraints.
  • Reduction in binary size and RAM usage, facilitating smoother deployment on low-memory MCUs.
  • Efficient management of constant data storage using PROGMEM, leading to optimized memory utilization and improved performance.
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

1 participant