Go Down

Topic: About Context switch (Read 300 times) previous topic - next topic

delegacooo

About Context switch.
if it is easy for me to do the belows, I'd like to do it.
So, please tell me the informations.

 + On arduino(Wio lte//stm32f4), to do task swithing.
    - total numbers of tasks:about 5
    - total numbers of task priority level:about 3

pylon

Quote
On arduino(Wio lte//stm32f4)
STM32f4 is not an Arduino!

What kind of task do you have? Sound like you should switch to a Linux based board (p.e. Rapsberry Pi). There you can run as many task as memory allows.

ard_newbie

uMT - a preemptive, soft real-time (not deterministic) multitasker for the ARDUINO AVR/SAM/SAMD boards:

https://github.com/GO01260/uMT

delegacooo

Thank you for your comments.

Wio lte(stm32f4) is something only that is Arduino IDE compatible.
(http://wiki.seeedstudio.com/Wio_LTE_Cat.1/)



Robin2

Have a look at the demo Several Things at a Time. It should be straightforward to add some code to give higher priority to some functions.

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

delegacooo

Thank you.

I was thinking a different way.
But I think a way using millis is also appropriate.



westfw

An stm micro can probably run a standard low-footprint rtos like freertos...
Seems  like overkill for 5 tasks.

delegacooo

I'll investigate about freertos, thank you.

Go Up