Hi
Are you plan add multitask support to libmaple (as part from any RT OS or own) ?
Multitask support in libmaple
(3 posts) (2 voices)-
Posted 5 years ago #
-
x893, multitask support is is a fairly difficult slippery slope that could lead straight into OS development. This might be fun, and its been talked about, but we dont have enough local dev hours to seriously add it to the queue at this point. That said, we would definitely support someone else taking on such an effort, and would help however we could. Incidentally, both FreeRTOS, circleOS, eLua (embedded lua), and pymite (embedded python) are all known to work on stm32. eLua and pymite are too big for the current chip on maple (stm32f103rbt6) but will work with Maple Native. FreeRTOS and circleOS should run on your maple board with some effort (have never personally tried, but have seen it on the same chip), and you can use the serial bootloader method to upload them.
Realistically, adding builtin support for an existing lean OS such as freeRTOS is not currently on the queue, but certainly possible.
If you are looking for something really simple, there are hackish non-ways to do "multitasking," take a look at the "scheduling" component built into lwIP (lightweight IP lib). The hack is that there is no scheduler/kernel interrupting your threads, switching stack contexts, and managing memory spaces. Instead, you can just have multiple "loop" functions (i.e arduino loop) and cycle between them each time one returns (it must return)
Posted 5 years ago # -
i use freeRTOS on maple and it work fine (as library).
i'll see your recomendations.
i make maple compatible gps/gsm tracker and plan to use maple as dev.IDE (except previous arduino, AVR studio, IAR, Keil and other :)) but multitacking very helpfull for this device (not a loop switch but simplest thread).Thanks to your answer
Posted 5 years ago #
Reply
You must log in to post.