GithubHelp home page GithubHelp logo

Comments (6)

hungry-foolish avatar hungry-foolish commented on August 15, 2024

yeah, you got it. You can’t use the built in allocator if you have too little memory. The dynamic memory allocation module provided is there to handle complex allocation requests (arbitrary block sizes) rather than simple fixed block size allocations. Designed as such, the dynamic memory module have a relatively higher memory overhead but is more flexible. If you have too little memory, then there’s no need for such a general-purpose dynamic memory allocation routine, you can supply your own routines which is usually just allocating a fixed block size, or do not use dynamic allocation at all. For devices with larger memory, if you just want very frequent fixed size block allocation/frees, you can use the built in allocator as a primary allocator, then allocate your smaller fixed size trunks with your own secondary allocator on the memory returned by it.

from m5p01_muprokaron.

hungry-foolish avatar hungry-foolish commented on August 15, 2024

STM32L051 only have 8kB RAM. This is too small for an advanced general purpose real-time memory allocation algorithm such as TLSF to make sense, thus It is rendered unusable.

from m5p01_muprokaron.

Pupil2013 avatar Pupil2013 commented on August 15, 2024

Thanks,Got it.
You art right ,there is no need to dynamic allocate memory in such small ram

from m5p01_muprokaron.

Pupil2013 avatar Pupil2013 commented on August 15, 2024

I think the task scheuler function is enough for my work,I will try this later

from m5p01_muprokaron.

hungry-foolish avatar hungry-foolish commented on August 15, 2024

what project r u working on?

from m5p01_muprokaron.

Pupil2013 avatar Pupil2013 commented on August 15, 2024

Sensors powered by battery.
It's functions are simple ,but the logic is a little complex.
So I want a small rtos to schedule tasks, then I can focus on something really matters.

from m5p01_muprokaron.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.