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
4 answers

How do you set system time using C/C++?

I have an embedded system (ARM 9263) running an RTOS, IAR tools. The system supports the standard time() function which gives me the current time. I need the reverse call, that is I need to set the time - is there a "C" standard way to do this? I've…
Jeff
  • 1,969
  • 3
  • 21
  • 35
3
votes
6 answers

Why preemption does not solve priority inversion?

I would like to know why preemption does not solve priority inversion problem? If we have preemptive kernel. Then why priority inversion problem does not get solved?
Rasmi Ranjan Nayak
  • 11,510
  • 29
  • 82
  • 122
3
votes
6 answers

Porting Windows software to Embedded/Realtime Operating Systems

I have an existing codebase targeting a Windows environment and with an eye to the future, would like to make this as cross platform as possible. I've had some sucess with standard Linux distributions by using cross platform libraries but would like…
Navierstokes
  • 418
  • 3
  • 7
3
votes
3 answers

What RTOS is best for working on the same PC with Windows?

What RTOS is best for working on the same PC with Windows? I know about RTX and INtime, but have not used them. Are there any others? Which one is your favorite and why?
Uhall
  • 5,673
  • 7
  • 24
  • 19
3
votes
1 answer

RTOS - pending on different data in a queue

I'm programming a board from TI, and I'd like to somehow be able to have two different ISR's post to a task's message queue. That part works fine. However, on the receiving end, is there any intelligent way for the task to pend on its queue and…
Ci3
  • 4,632
  • 10
  • 34
  • 44
3
votes
1 answer

Any alternatives to Qt on certified aviation platforms?

There was a similar question posted asking in general about alternatives to Qt. Well, I am specifically interested any certified alternatives to Qt. Specifically, if there are any Qt alternatives that have flown or are flying on certified…
JustADude
  • 2,619
  • 7
  • 31
  • 45
2
votes
3 answers

Decoupled application modules

I'm searching an embedded RTOS which supports the functionality to update the software without to compile/link the whole kernel and application SW. The concept would be like in Windows or Unix Desktop Systems: Download an application module…
DannyD
  • 161
  • 1
  • 1
  • 3
2
votes
3 answers

Context switching in uC/OS (embedded systems)

I'd like to know if its possible to have an interrupt force the scheduler to switch context to a specific task in RTOS. I'm working with microCOS OS Here is the task which performs the keyscan and posts the character into a mailbox, I need to add…
Amanni
  • 1,924
  • 6
  • 31
  • 51
2
votes
2 answers

arm-none-eabi-g++ calling globral constructor

I am trying to port c++ application to arm board with gcc tools (using RTOS). But my static const constructors are not being called. Simple code: class TestClass { public: TestClass(); TestClass(int m); TestClass(const TestClass&…
itdl
  • 221
  • 2
  • 4
2
votes
5 answers

Multitasking RTOS on AVR

I have an AT90USB162 AVR chip which I want to run a multitasking RTOS, so I am evaluating possible RTOS for using with my AVR chip. Which multitasking RTOS's are supported by AVR? Maybe QNX? (Is it possible to run a QNX kernel on an AVR microchip?).…
Rego
  • 1,118
  • 1
  • 18
  • 40
2
votes
1 answer

How do smart pointer performance concerns compare in server core codebases (e.g Google's) vs large scale time critical embedded systems (e.g NASA)?

In his cpp con 2019 talk, Chandler Carruth argues that c++ std::unique_ptr is not a truly zero cost (runtime) abstraction: https://www.youtube.com/watch?v=rHIkrotSwcc&t=6s. I work on an embedded system with a team which refuses to use smart…
2
votes
2 answers

vTaskCreatePinnedToCore() isn't behaving as expected

I was working with ESP-IDF and I want to run two task at the same time of different cores of ESP32, So I used xTaskCreatePinnedToCore(sensorsTask, "Sensor" , 5000, 0, 0, &sensorTaskHandler,0); xTaskCreatePinnedToCore(storageTask, "Storage", 5000, 0,…
2
votes
1 answer

Message queue in uC/OS-II is not FIFO order?

I'm using kit De10-Nano which has successfully ported uC/OS-II as in the example on the Weston Embedded website. Currently, I'm having a problem with message queue API of the OS. My program contains two tasks: producer task (priority 5) and consumer…
LowK
  • 23
  • 6
2
votes
3 answers

How to program in Windows 7.0 to make it more deterministic?

My understanding is that Windows is non-deterministic and can be trouble when using it for data acquisition. Using a 32bit bus, and dual core, is it possible to use inline asm to work with interrupts in Visual Studio 2005 or at least set some kind…
jdl
  • 6,151
  • 19
  • 83
  • 132
2
votes
1 answer

ARM GCC + Cortex M4: Calling address as function generates BLX instead of BL

I build as little OS for a CortexM4 CPU which is able to receive compiled binaries over UART and schedule them dynamically. I want to use that feature to craft a testsuite which uploads test programs being able to directly call OS functions like…
wolfbiker1
  • 89
  • 4