FREERtos on FlowCode Library for RPi Pico

For general Flowcode discussion that does not belong in the other sections.
Post Reply
Zhmil1789
Posts: 3
http://meble-kuchenne.info.pl
Joined: Sun Mar 01, 2026 6:50 pm

FREERtos on FlowCode Library for RPi Pico

Post by Zhmil1789 »

Good day! This is my first time on this forum. I’d like to ask if there is a FREERtos library or a similar library available for FlowCode. I really need this library for my project, and if it exists—or if there’s an equivalent—I’d like to find out more and learn how to write code for the RPi Pico microcontroller.

BenR
Matrix Staff
Posts: 2178
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 594 times
Been thanked: 781 times

Re: FREERtos on FlowCode Library for RPi Pico

Post by BenR »

Hello,

This has been done before in Flowcode but it's a bit of a hack to make it work. At the moment on the ESP32 and the Pico I beleive there is an RTOS in the background handling things like BT and WIFI but the Flowcode program runs in a single core/task. We have made it where single macros can be defined as their own tasks before and this works but as I say it's a bit of work using some custom C code to make this happen.

We did toy with the idea of having proper RTOS handling built in years ago but the demand for it was low.

mnfisher
Valued Contributor
Posts: 1931
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 156 times
Been thanked: 910 times

Re: FREERtos on FlowCode Library for RPi Pico

Post by mnfisher »

Hi,

If the Pico is running FreeRTOS as the 'OS' - would it be possible to use FreeRTOS functions - such as xTaskCreate - in FC (using C blocks / supplementary code) as on the esp32?
There are several examples for the esp32 on the forums - using such features as tasks / queues etc - and it might be worth having an experiment to see if it works on the Pico....

Martin

BenR
Matrix Staff
Posts: 2178
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 594 times
Been thanked: 781 times

Re: FREERtos on FlowCode Library for RPi Pico

Post by BenR »

Yes that should be enough to do it :D

Post Reply