victor_pv wrote: ...
I want to test FreeRTOS 8.2, I am really liking how easy is to schedule a bunch of different tasks with different priorities easily.
Code: Select all
Sketch uses 26,444 bytes (21%) of program storage space. Maximum is 122,880 bytes.
Global variables use 11,672 bytes of dynamic memory.
Sketch uses 22,980 bytes (18%) of program storage space. Maximum is 122,880 bytes.
Global variables use 3,168 bytes of dynamic memory.
victor_pv wrote:Let me compare compiling the rotating cubes example with and without RTOS.
I believe it will use more RAM because of the way the RTOS reserves head space directly, rather than letting malloc() manage it, but I don't know for sure.
Do you have any interesting example that could benefit from running in RTOS that would try? I only used the cubes ones to confirm peripheral access and DMA run good, but I don't have anything bigger than that to test with right now.
Taking out the 8KB of reserved heap, the differences are:
FreeRTOS uses 312 bytes of RAM, and 3464 bytes of flash.
I think those numbers are pretty good for what it does.
EDIT: Just tested FreeRTOS 8.2.1. I took their CortexM3 port, then did the 3 changes I had found were done to the Maple port of the 7.0.1, and with those 3 changes both my examples compile and run fine. I have not tested every single functionality, so there could be things that do not work.
With 8.2.1 there are 5 choices for heap management. With the most basic one it results in 80 more bytes used of Flash, but 40 less used bytes of RAM.
Users browsing this forum: No registered users and 1 guest