Comments (6)
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.
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.
Thanks,Got it.
You art right ,there is no need to dynamic allocate memory in such small ram
from m5p01_muprokaron.
I think the task scheuler function is enough for my work,I will try this later
from m5p01_muprokaron.
what project r u working on?
from m5p01_muprokaron.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from m5p01_muprokaron.