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
2
votes
1 answer

Is it possible to add support of a custom RTOS's threads to GDB?

In the scenario of debugging a remote target running a custom RTOS, what would be necessary to add thread support to GDB? In my case I have access to the RTOS sources and debug info for all its scheduler's symbols, so theoretically the information…
salicideblock
  • 388
  • 3
  • 8
2
votes
1 answer

RTOS SDK Where is app_main defined as startup function?

Using rtos SDK i was able to develop and run successfully some simple examples, but I need to understand. Normally a c / c++ program starts with main(...) (I don't remember the exact signature) RTOS projects seem to start almost all with app_main()…
Ettore Galli
  • 677
  • 6
  • 24
2
votes
1 answer

When a task can be switched from the blocked stated to the suspended state?

I've noticed that in the state transition diagram from [-1-]. Exists the possibility to switch from the blocked state to the suspended state employing vTaskSuspend(). My question is, when could be that possible, in which situations this is useful?.…
grkikes
  • 29
  • 5
2
votes
1 answer

ESP-IDF deep_sleep and FreeRTOS tasks

I work on project where I use FreeRTOS tasks and I would like to go into deep_sleep. Is there anything that I should do before going into the deep_sleep ? Or after wake up, RTOS scheduler works as nothing happen ?
R0b1S
  • 23
  • 3
2
votes
1 answer

DisableAllInterrupts VS SuspendAllInterrupts (OSEK\VDX)

I would like to know the difference between DisableAllInterrupts and SuspendAllInterrupts in OSEK?
Ali_Taalab
  • 23
  • 5
2
votes
2 answers

Invalid type in argument to printf format specifier and extra argument to printf format specifier

I have been debugging this RTOS code in Coverity and ran into few small errors. The errors are self explanatory as they are format specifier errors. Both of the errors are on the main function. The first error is on the line: RTOS_TEST(" Error =…
Ashish101
  • 135
  • 10
2
votes
1 answer

Why is my FreeRTOS task not seeing the class members?

I'm trying to understand FreeRTOS building a C++ class which contains a LED blinking task. But in the task body (which is also a class member), other class members i.e. LED1_delay are empty/not-initialized. It seems like the task body was linked to…
Caniko
  • 867
  • 2
  • 11
  • 28
2
votes
2 answers

How to check strtol overflow without errno?

Given the following example parsing a string that only contains valid numeric characters, but is to large for type long int[0]. char *endptr = NULL; long int val = strtol("0xfffffffffffffffffffffffff", &endptr, 0); It is my understanding that the…
sfrank
  • 121
  • 1
  • 5
2
votes
1 answer

Need for an RTOS on an STM32?

I am starting a project which uses LittleVGL as its GUI library. I'm using an STM32H743, running at 480MHz. (It's rather over-powered, but only $1/15% more expensive than something half as fast with less RAM and flash, which would itself need…
fadedbee
  • 42,671
  • 44
  • 178
  • 308
2
votes
3 answers

What is the best way to block all threads except one?

I am working on a project where I need to block all threads when a certain thread starts execution. I have considered using thread flags, but I believe this would involve adding checks to all the threads. I have also considered using a mutex to…
wolly981
  • 29
  • 8
2
votes
2 answers

Use an external function to take a mutex within a task

I was wondering if I can take a mutex within a task but by calling an external function. Here is my code below: void TakeMutexDelay50(SemaphoreHandle_t mutex) { while(xSemaphoreTake(mutex, 10) == pdFALSE) { vTaskDelay(50); …
hlarouss
  • 21
  • 2
2
votes
1 answer

There is RTSJ for Java - Is there something comparable for C#?

I read that there is a realtime specification for a virtual machine executing java bytecode in real-time (RTSJ 1.1 in JSR 282). This makes it possible to execute Java code in real-time even on embedded devices with an RTOS like OS9 or WinCE. Since…
schoetbi
  • 12,009
  • 10
  • 54
  • 72
2
votes
1 answer

Cannot write to serial

I am using the ESP32 DevKitC-v1 (clone) with FreeRTOS and attempting to write bytes to the serial port. My code (below) causes the following exception: Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled. Core 0…
Xavier Hutchinson
  • 2,207
  • 1
  • 17
  • 21
2
votes
1 answer

Is Raspbian a realtime operating system?

I use raspbian for embedded systems like microcontrollers, I make several sensors and display them on an LCD, does the Rasbian operating system also have a real time operating system?
ibnukhak
  • 23
  • 1
  • 4
2
votes
0 answers

Is there an IPSec stack which I can use with lwIP

I am developing an embedded device based on OpenRTOS and lwIP (network stack). I would like to add IPSec support to the device. Any known IPSec stacks (open source or commercial) which works with lwIP?
Kimel
  • 199
  • 1
  • 7