-
I am having the mentioned error message:
If I adjust the code for using An excerpt of my code is as follows:
and my FreeRTOSConfig.h is the following:
I have my |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Ok, I found. The But then the question (and this is out of the scope of this tool but it is in Platformio's scope) arise: for each project the ENTIRE library is copied in |
Beta Was this translation helpful? Give feedback.
-
Yes, but not quite the answer I was going to suggest. The
Yes, it would. Static allocation is great for systems where you have very limited memory, and are trying to build a robust deterministic system. Typically where you'd be using FreeRTOS. But using static allocation is dependent on a static memory size and configuration, which is not really the situation we have supporting a range of ATmega devices with between 2k to 16k of RAM available (or 64k or greater using ATmega2560 and its Extended RAM capability). To support this range of machines one flexible memory allocation system If you want to try static allocation further, have a look at floessie's frt library, which wraps this library and he also has a minimal-static fork but it is a few years old. Typically you'd just want to look at which machine you have and then change the memory system allocation to use |
Beta Was this translation helpful? Give feedback.
-
Ah OK! What would that be your answer then?
Let me try to rephrase: you are saying that by default freertos has dynamic memory allocation to be as more general as possible to cover more boards and to prevent too much hassle for the user in case of dealing with prototypes ad also for portability issues? Thanks for the links, I will look into that! |
Beta Was this translation helpful? Give feedback.
-
The
Yes. The assumption for Arduino is that the user is an artist or hobbyist or tinkerer or student who just wants to get something done, without necessarily knowing the details. Hence the original
Yes, the best idea is to use static allocation of memory wherever possible. FreeRTOS has great heap management and monitoring options based off static memory. |
Beta Was this translation helpful? Give feedback.
The
FreeRTOSConfig.h
file is found in the library source directory and, as the Arduino IDE compiles its libraries first and your sketch last, that library configuration file is used (and others are not).Yes. The assumption for Arduino is that the user is an artist or hobbyist or tinkerer or student who just wants to get something done, without necessarily knowing the details. Hence the original
setup()
andloop()
functions being al…