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
Questions tagged [rtos]
650 questions
7
votes
2 answers
Embedded device drivers development notes
I want to develop some HAL (Hardware Abstraction Layers) to use in PIC32 and some ARM.
Basically I want to make some code that's usually available on a OS, like generic pin access, communication libraries, device I/O, etc.
Could you advise me with…

rnunes
- 2,785
- 7
- 28
- 56
7
votes
4 answers
LWIP + RTOS - how to avoid netconn block the thread forever?
When the LwIP netconn_accept() or netconn_recv() function is called, if we are using a RTOS, it will block the thread and wait for a connection until timeout or forever, depends on the setting of LWIP_SO_RCVTIME0. The timeout duration is equal to…

eepty
- 716
- 3
- 10
- 28
6
votes
3 answers
Difference between FreeRTOS and CMSIS-RTX
What is the difference between FreeRTOS and CMSIS-RTOS? Can anyone explain how the two RTOSes are similar or different?

Bilal Qamar
- 322
- 1
- 2
- 9
6
votes
2 answers
Running a program written for freeRTOS (RTOS) in virtualmachine as a binary
I got a simple program written for freeRTOS (implements a timer).
I want to run this program in an empty virtual machine (VirtualBox, or QEMU, or something else).
I need to make a binary file that can run in and empty VM.
Any advice or direction of…

singa1994
- 747
- 1
- 7
- 18
6
votes
1 answer
Best reference to start writing a very basic RTOS from scratch
I wish to write a very basic RTOS which can just switch between two tasks. Its not for any professional usage. Its just for fun
Most references say about how to use an RTOS and not about how to write one.
Refering an opensource RTOS like FreeRTOS…

0xAB1E
- 721
- 10
- 27
6
votes
5 answers
Are there any lightweight analogues to CORBA/RPC for embedded programs?
I am writing embedded applications for different hardware (avr, arm7, tms55xx…) and different rtoses (freeRTOS, rtx, dsp/bios). And every second of them needs to communicate with PC or another digital device. Sometimes interactions logic is very…

Mtr
- 482
- 5
- 19
6
votes
1 answer
Deadlock of powerfail sequence during write to flash page
I'm currently working on an embedded project using an ARM Cortex M3 microcontroller with FreeRTOS as system OS. The code was written by a former colleague and sadly the project has some weird bugs which I have to find and fix as soon as…

arge
- 635
- 1
- 7
- 16
6
votes
2 answers
Running applications from freeRTOS
I am currently in the process of developing the OS for a consumer electronics product my company is developing. I have settled on freeRTOS as the backbone for our OS, and am working diligently to implement hardware functionality within the OS.…

DevenJ
- 125
- 2
- 8
6
votes
5 answers
Writing embedded application for msp430?
I would like to be able to have a basic OS and a basic file system for the high end MSP430 probably the MSP430F5438. I know I can go with something like FreeRTOS , IAR PowerPac or Micrium to name just some of the options for the OS and file system.…

Rex Logan
- 26,248
- 10
- 35
- 48
6
votes
3 answers
How do OSes Handle context switching?
As I can understand, every OS need to have some mechanism to periodically check if it should run some tasks and suspend others.
One way would be some kind of timer on whose expiry the OS will check if it should run/suspend some task.
Generally, say…

Holysmoke
- 175
- 2
- 8
6
votes
4 answers
Alternatives to explicit stacks in RTOS-removal excercise?
In an embedded application programmed on C on ARM7 (with portability requirements), currently using a commercial priority-based preemptive RTOS, we need to remove that RTOS and any RTOS dependency per customer mandate. We have 8 tasks using many HW…

EmbeddedMike
- 63
- 6
5
votes
5 answers
What happens if a hard realtime task exceeds its deadline?
I want to understand the concept underlying a hard realtime system more specifically by using an RTOS. By the definition of an RTOS it guaranties the realtime tasks will never exceed their deadlines.
void RT_task1(void *params)
{
do_inits();
…

System Coder
- 63
- 1
- 4
5
votes
2 answers
Many-to-one gatekeeper task synchronization
I'm working on a design that uses a gatekeeper task to access a shared resource. The basic design I have right now is a single queue that the gatekeeper task is receiving from and multiple tasks putting requests into it.
This is a memory limited…

rjp
- 1,760
- 13
- 15
5
votes
3 answers
Difference between message queues and mailboxes
In operating system what is the difference between message queues and mailboxes.

Ginu Jacob
- 1,588
- 2
- 19
- 35
5
votes
3 answers
In vxworks, should every task be spawned with VX_FP_TASK option?
In vxworks, should every task be spawned with VX_FP_TASK option?
The VX_FP_TASK option is required if your task uses any floating point operations. But how does one predict the future - i mean, how can one know if he/she will use float or not?…

aks
- 4,695
- 8
- 36
- 37