I need to upload it to Github, then will post the link here. It adds a few new features over 8.x
If anyone wants it before I’ve added a github link, send me a PM.
Now it’s on github:
https://github.com/victorpv/Arduino_STM … reeRTOS900
EDIT:
The PR has been merged and now is part of the main repo on Roger’s github:
https://github.com/rogerclarkmelbourne/ … reeRTOS900
Details on the new features here:
http://www.freertos.org/FreeRTOS-V9.html
For questions or issues you can still post in this thread.
https://github.com/victorpv/Arduino_STM … reeRTOS900
SemaphoreHandle_t xMutexSer;
xMutexSer=xSemaphoreCreateMutex();
SemaphoreHandle_t xMutexSer;
xMutexSer=xSemaphoreCreateMutex();
SemaphoreHandle_t xMutexSer;
xMutexSer=xSemaphoreCreateMutex();
SemaphoreHandle_t xMutexSer;
xMutexSer=xSemaphoreCreateMutex();
you forgot the SD card
you forgot the SD card
Thanks for the reply. I’ll try to narrow down the cause. In my project I use SPI2, FreeRtos821, SdFAT on SPI1, USB Serial, and Serial1. it may well be that something else is causing this. I’m using platformio to build – it seems to have some differences compared to Arduino IDE build. For example platformio uses -Os and Arduino build uses -Og. I’ll try compiling with Arduino IDE also later.
EDIT: I’ll check my max heap amount also with xPortGetFreeHeapSize() function. Maybe I’m near limits and alloc fails.
FreeRTOS does open up many new possibilities.
One question: do you know if the unit for xSemaphoreTake(xSem, 1000) is 1000ms or 1000ticks ? vTaskDelay seems to wait in ms.
OT: How did you add the stm32duino boards into the Sloeber, plz??
PS: I’ve found the wiki
you forgot the SD card
you forgot the SD card
1. it compiles
2. the .bin is by 60bytes bigger
3. the jitter (of the actual sample period in us) is much smaller, almost nil
1. it compiles
2. the .bin is by 60bytes bigger
3. the jitter (of the actual sample period in us) is much smaller, almost nil
FreeRTOS does open up many new possibilities.
One question: do you know if the unit for xSemaphoreTake(xSem, 1000) is 1000ms or 1000ticks ? vTaskDelay seems to wait in ms.
https://percepio.com/docs/FreeRTOS/manu … r_FreeRTOS
I cannot get it working with MMini and my Logger. Most possibly it does not fit in ram, when removing the Tracealyzer’s components logger works fine. Tried strip down the various settings, but still no fun..
https://percepio.com/docs/FreeRTOS/manu … r_FreeRTOS
I cannot get it working with MMini and my Logger. Most possibly it does not fit in ram, when removing the Tracealyzer’s components logger works fine. Tried strip down the various settings, but still no fun..
Any idea how to make from a folder full of .h and .c a library??? (the tracealyser files).
Any idea how to make from a folder full of .h and .c a library??? (the tracealyser files).
Maple Mini, FR heap 2kB.

- Tracealyzer 2 LEDs Blinks.JPG (105.59 KiB) Viewed 723 times
Could you write a small how to on WiKi? I was planning to try this also. Also I’m going to try Segger’s SystemView when I get some free time ![]()
Maple Mini, FR heap 2kB.Tracealyzer 2 LEDs Blinks.JPG
I did it in Sloeber (because of much easier inclusion of includes). Resigned to do it in Arduino IDE..
Updated pictures with 3 LEDs and larger trace buffer.
Pessimistic if you want to trace something with Serial + SdFat + FR.. Almost impossible with MMini, imho.
Also you must include CMSIS to get it working.
BTW, the free version is extremely stripped down one, the license cost $1.5k

- Tracealyzer 3 LEDs Blinks detail.JPG (96.98 KiB) Viewed 689 times
The library is not available for download ?
Now it’s on github:
https://github.com/victorpv/Arduino_STM … reeRTOS900
??
https://github.com/victorpv/Arduino_STM … reeRTOS900
Thank you very much !
This link works.
Probably need to fix the 1st post.
[acronis – Tue Aug 01, 2017 8:48 am] –
Yes.
Thank you very much !
This link works.
Probably need to fix the 1st post.
The PR has now been merged as is part of the main repo:
https://github.com/rogerclarkmelbourne/ … reeRTOS900
Today, I checked an example ‘rtos_blink’ on the Board STM32F407VET6 – everything works fine !
Thank you very much.
#include <MapleFreeRTOS821.h>[fpiSTM – Thu Aug 03, 2017 2:40 pm] –
Seems example need to be update: https://github.com/victorpv/Arduino_STM … ink.ino#L3
#include <MapleFreeRTOS821.h>
Cheers, Joe
The following changes are sensible to use it with Eclipse:
Common
- In FreeRTOS900/utility
- Remove the sub directory “MemMang” from the build path (see below)
- Remove the file “heap 1.c” from the build path (see below)
- Move FreeRTOSConfig.h to FreeRTOSDefaultConfig.h
- In Project Directory (if in Eclipse)
- Create a Source Folder named “freeRTOS” (we’ll place the FreeRTOS-files there)
- Add this Source Folder to the project includes using the path ${ProjDirPath}/freeRTOS
- Copy the heap-management implementation you want to use into the directory freeRTOS (heap_1.c, heap_3.c or heap_4.c, I suggest heap_4.c)
- In Project Directory (if in Arduino DIE)
- Copy the heap-management implementation to the sketch directory
- In your sketch you could include MapleFreeRTOS900.h, but that includes all potentially necessary includes. I like the explicit approach better. Example if only using tasks:
#include <FreeRTOS.h>
#include <task.h>
…

