Answer the question
In order to leave comments, you need to log in
FreeRTOS: what are the rules of good form?
Hello! I want to dive into development based on the use of FreeRTOS. There are several "bydlokoderskih" projects in which I used this OS. I want to get closer to the professional level of development using this OS.
Questions:
Answer the question
In order to leave comments, you need to log in
First of all, look at RTOS (any) as a tool for solving your problem. Any tool has a description: Kurnits (quite relevant even now) and off-manual in pdf (in my opinion they give it for free).
Using the OS correctly means understanding:
1) the difference in synchronization primitives (queue, mutex, semaphore) when and where to use them
2) how to set the stack size and task priority
3) what to do in interrupts and what to do in tasks (including how correctly set interrupt priorities)
This is the first thing that came to mind.
Personally, after switching to the OS, I had to rethink my thinking a bit when writing code:
1) you never know when the code in one task will be executed compared to the next task.
2) the execution of a task can be interrupted by other tasks and interrupts
3) if a task writes somewhere and another reads, then they need to be synchronized
, etc.
Good luck!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question