Questions tagged [rtos]

An RTOS is a Real-Time Operating System, a type of operating system that is designed to satisfy, possibly hard or firm, timing constraints. An RTOS is most likely to be used in in verifiable or safety critical systems. Such systems arise most frequently in the medical, automotive and defense industries

650 questions
3
votes
1 answer

How does priority ceiling protocol works

In the below scenario how the priority of the task t1 will change when the locks are released, assuming Sem_Take() and Sem_Give() are lock and release method. I understand that using priority ceiling protocol raises the priority of the task as soon…
Anuj Priyadarshi
  • 347
  • 4
  • 16
3
votes
1 answer

How to differentiate between system calls and normal function calls

I am working on project which is trying to migrate some legacy application running on QNX neutrino operating system to other open source RTOS based on linux. I have listed all the third party library and device drivers which must be ported and now…
noname
  • 179
  • 1
  • 4
3
votes
2 answers

Difference between sem_init and sema_init

What is the difference between sema_init and sem_init ? Are there any specific usage scenarios and other dependencies for the respective APIs ?
Karthik Balaguru
  • 7,424
  • 7
  • 48
  • 65
3
votes
4 answers

Throughput calculation using cycle count

Is it possible to determine the throughput of an application on a processor from the cycle counts (Processor instruction cycles) consumed by the application ? If yes, how to calculate it ?
Karthik Balaguru
  • 7,424
  • 7
  • 48
  • 65
3
votes
3 answers

RTOS within an RTOS

I'm planning to run an RTOS e.g Nuttx as a Process of another RTOS e.g FreeRTOS such that freertos tasks and the Nuttx running as a Freertos task would co-exist. Would this be feasible implementation given that the underlying hardware is an ARM…
user66350
  • 31
  • 1
3
votes
5 answers

Basics of Real Time OS

I am trying to learn an RTOS from scratch and for this, I use freeRTOS.org as a reference. I find out this site as a best resource to learn an RTOS. However, I have some doubts and I was trying to find out but not able to get exact answers. 1) How…
Shaswat Dube
  • 93
  • 1
  • 4
3
votes
2 answers

snprintf not working float

I'm programming on a STM32F437. I'm using SafeRTOS. The compiler is GCC. In one task I'm using snprintf() to prepare a string with values. The problem is that the snprintf() fails to handle floating point numbers. It just ends the resulting string…
Eerik Sweden
  • 375
  • 6
  • 17
3
votes
3 answers

What is the best way to start programming with Real Time Linux?

Although I have implemented many projects in C, I am completely new to operating systems. I tried real time linux on Discovery board (STM32) and got the correct results for blinking LED but I didn't really understand the whole process since I just…
EmbeddedManiac
  • 189
  • 1
  • 12
3
votes
2 answers

What are the symptoms/effects of too high a tick rate in a RTOS?

I would be grateful if someone could offer an explanation of the effects of too high a tick rate in a RTOS or direct me to a resource that explains it clearly? The context of the question... We are running with ucos-ii with a tick rate of 10000…
Spiffalski
  • 58
  • 2
  • 5
3
votes
1 answer

what is meant by real time operating system tick time and what is the use of this system tick time

i want to understand what is meant by operating system tick time and what is the use of it ? and how it is different from CPU tick rate
user3719428
  • 51
  • 1
  • 1
  • 2
3
votes
1 answer

FreeRTOS configTICK_RATE_HZ

I am using an MSP430f5438 with version 5.4 of FreeRTOS. I am having a funny problem that I can't figure out. Basically, when I set configTICK_RATE_HZ to different values, the LED blinks faster or slower; it should stay the same rate. It blinks…
michael
  • 2,577
  • 5
  • 39
  • 62
3
votes
1 answer

Quantifiable differences between RTOS kernels for small ARM microcontrollers

There are many different RTOS available for microcontrollers. I am specifically looking for RTOS that support the ARM Cortex M processors. Also, I am not interested in closed source solutions. Attempting to compare the relative merits of each RTOS…
Nakedible
  • 4,067
  • 7
  • 34
  • 40
3
votes
3 answers

Switching from high priority task to low priority task in uCOS II

I'm new to RTOS (uCOS II) and learning it by reading the book written by uCOS author. I have a doubt and I'm unable to find the answer to it. In uCOS the task with highest priority is given CPU as per the scheduling algorithm. So, if I create write…
RHLK
  • 347
  • 3
  • 14
3
votes
3 answers

In an RTOS can a process be prempted when running in kernel space

I understand that a process can't be preempted when running in kernel space. If that's true, in an RTOS how is responsiveness guaranteed (If a system call takes more time to execute) ? Can a do a context switch for a process even when it is running…
Fernando
  • 163
  • 1
  • 9
3
votes
2 answers

Building an embedded system

I want to build an embedded system with USB and Wifi. I am going to use USB to load configuration and code. Wifi will be used to communicate with other similar systems. I would also like to program at the socket level, which means I want the drivers…
foobarometer
  • 751
  • 1
  • 9
  • 20