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

What's a good RTOS to use with the LPC1788 microcontroller?

I'm trying to find a free/cheap RTOS that others have found works well with the NXP LPC1788 microcontroller. I was originally planning on using FreeRTOS, but it doesn't seem to support that particular processor; the closest supported core is the…
Tagc
  • 8,736
  • 7
  • 61
  • 114
4
votes
5 answers

PIC Microcontroller Operating System

I heard it is possible to write an Operating System, using the built in bootloader and a kernel that you write, for the PIC microcontroller. I also heard it has to be a RTOS. Is this true? Can you actually make an operating system kernel (using…
Coder404
  • 742
  • 2
  • 7
  • 21
3
votes
1 answer

Traces for the function call in a single thread, does not appear to be in order that is expected

I have a thread, which does a function call, Thread 1() { while(1) { msg = msgreceive(); condn= msg->condn; switch(condn) { case 0: //do sonmething break; case 1: printf("case_1"); function2() break; } } } function…
buddy
  • 805
  • 1
  • 15
  • 30
3
votes
3 answers

How does vxWorks deal with two tasks at the same priority?

We have two tasks (T1 and T2) in our vxWorks embedded system that have the same priority (110). How does the regular vxWorks scheduler deal with this if both tasks are ready to run? Which task executes first?
Benoit
  • 37,894
  • 24
  • 81
  • 116
3
votes
3 answers

PendSV and SVCall in RTOS

Both PendSV and SVCall are called from the software - SVCall by calling svc instruction, PendSV by setting particural register of Cortex-M. PendSV is intended for context switching and SVCall is intended to access OS kernel functions and device…
Bratw
  • 141
  • 8
3
votes
0 answers

freeRTOS: question about the behavior of API "vTaskPrioritySet"

In API vTaskPrioritySet: #if ( configUSE_MUTEXES == 1 ) { /* Only change the priority being used if the task is not currently using an inherited priority. */ if(…
lenny
  • 31
  • 2
3
votes
2 answers

How does ARM cortex handle PendSV Handler

I am creating a RTOS kernel and need to use the PendSV handler for context switching. I trigger the PendSV handler by doing : 0xE000ED04 = (0x1 << 28);. This sets the PendSVset register to 1, so theoretically, the handler should trigger. I do…
Mperez
  • 85
  • 1
  • 6
3
votes
4 answers

How to run a periodic thread in high frequency(> 100kHz) in a Cortex-M3 microcontroller in an RTOS?

I'm implementing a high frequency(>100kHz) Data acquisition system with an STM32F107VC microcontroller. It uses the spi peripheral to communicate with a high frequency ADC chip. I have to use an RTOS. How can I do this? I have tried FreeRTOS but its…
3
votes
2 answers

What is the difference between an embedded program with RTOS and without RTOS

Can anyone explain to me what is the difference between an embedded program with and without RTOS. As when i start learning embedded, I always write code without any OS, all code is separated in to sub function and main function, sub function is…
3
votes
1 answer

Minimal FOSS RTOS with TCP/IP, SSL, USB and basic file-system support for ARM

Here's a candid admission first -- that I know zilch about RTOS or Embedded programming, so folks who know better may help me frame the query more appropriately. What would be the minimal FOSS RTOS (or any OS for that matter) with support for…
mike.dinnone
  • 732
  • 2
  • 8
  • 17
3
votes
3 answers

Problem with Array of Queues in FreeRTOS

I am building a FreeRTOS application. I created a module which registers a freeRTOS queue handle from another module and when an interrupt in this module module occurs, it sends a message to all the registered queues. But it seems I am able to send…
crissangel
  • 31
  • 1
  • 2
3
votes
1 answer

FreeRTOS - vTaskList undefined reference

I am trying to use vTaskList function to monitor tasks being used. In order to use vTaskList, I configure the macro below. #define configUSE_TRACE_FACILITY 1 #define configUSE_STATS_FORMATTING_FUNCTIONS 1 and below is task code to display…
黃銘賢
  • 73
  • 2
  • 9
3
votes
0 answers

how to send data to PC over JTAG/debugger

I am using a PEmicro USB Multilink Universal JTAG. I have a Cortex M4 processor running a custom C++ RTOS with no filesystem. I need to trace execution of some functions to debug a problem but since I don't have a filesystem, I'd have to use a RAM…
Bob
  • 4,576
  • 7
  • 39
  • 107
3
votes
3 answers

How to make many FreeRTOS tasks wait for one other to complete initialization

I have one init task and several worker tasks. At some point the workers must wait for init to complete some setup. I'm trying to do this with a binary semaphore. When the scheduler starts, all tasks are ready to run. So to guarantee that the…
not-a-user
  • 4,088
  • 3
  • 21
  • 37
3
votes
1 answer

What happens to timers/ticker when a break point stops the code execution

When debugging on an embedded board using a debugger, what happens to the timer/ticker when a breakpoint is hit? Is it still working in the background or stops?
Bilal Qamar
  • 322
  • 1
  • 2
  • 9