Questions tagged [rtos]

A Real Time Operating System - one used typically in industrial control systems. characterized by a predicable response time to interrupts and system requests. Designed in such a way that the developer can be sure of meeting timing requirements of industrial processes.

Filter by
Sorted by
Tagged with
0 votes
0 answers
56 views

Blocking Task when calling vTaskDelay

I'm running some tasks in esp32, my problem is when im calling vTaskDelay() from a task, an other task start executing, wich is something i dont want, so how to make vTaskDelay() a blocking function ...
user avatar
0 votes
2 answers
119 views

Dealing with slower consumer trying to consume data from faster producers

There's a producer thread t1 that's reading and outputting sensor S1 data at 20Hz. There's another producer thread ...
user avatar
  • 185
1 vote
1 answer
62 views

CMSIS-RTOS2 message consumption from queue

The docs do not explicitly mention if a successfully received (get()) message is then wiped from the queue, aka "consumed". Is this unclear in the docs or ...
user avatar
1 vote
1 answer
174 views

FreeRTOS scheduler is not triggering the TASK

I am programming an STM32F103 for my project and recently switched from bare-metal to RTOS (FreeRTOS to be specific) without using CubeMX (code attached below.) For now, I am simply running an LED ...
user avatar
  • 317
1 vote
0 answers
95 views

ESP32 - Clock setting

I've been trying to code a ESP32 device with esp-idf sdk (rtos programming). Normally, in my personal projects, I'm used to bare metal programming, while at work, I handle linux systems. It seems to ...
user avatar
0 votes
0 answers
245 views

How to flash a Zephyr RTOS sample project to the nrf52840 dongle using J-Link Base debugger and SWD

I'm a beginner at this, I'm a software developer so I've never worked with hardware but now I need to and I don't seem to be able to make it work. I would need help as to how can I flash a Zephyr RTOS ...
user avatar
  • 1
3 votes
1 answer
178 views

FreeRTOS - Guru meditation error

I've recently started to study esp-idf sdk, there a lot of new concepts related to RTOS that are new to me. I'm using a ESP32-WROOM-32 board. My main problem concerns to the following code: ...
user avatar
0 votes
1 answer
105 views

What are the standard ways to debug RTOS embedded systems? [closed]

I have only recently started looking into RTOS. I have become aware of existence of FreeRTOS and ThreadX. While the basic theory makes sense, I am getting a bit ahead of myself in my head and getting ...
user avatar
  • 9,669
0 votes
1 answer
107 views

How should I assign different tasks in an RTOS?

I have a STM32 microcontroller which implements a special UART protocol which is packet-based. I use FreeRTOS to run different tasks. For instance, I have one task that implements a PID control loop ...
user avatar
  • 521
1 vote
1 answer
299 views

What is the difference between Bare metal, RTOS and SoC? [closed]

Having just recently gotten into embedded programming using PIC microcontrollers, I am trying to understand the difference between Bare metal, RTOS and SoC. Online searches reveal contradictory ...
user avatar
  • 511
-1 votes
1 answer
77 views

Installing Embedded RTOS in VMware

can RTOS like Nucleus and Zephr be installed in VMware Is it possible to install in VMware. I like to learn RTOS and if there is any smaller version of some RTOS that can be easy to learn then that ...
user avatar
  • 99
2 votes
2 answers
558 views

Discussing FreeRTOS architecture for sort of a data logger application

I'm fairly new to RTOS architecture and been reading up on articles on FreeRTOS.org, but as it's commonly agreed, practice clears things up even more. I have a basic project idea which I'd ideally ...
user avatar
  • 37
1 vote
0 answers
146 views

Why does FreeRTOS API function xEventGroupSetBitsFromISR cause error when I use it in an ISR?

I am using FreeRTOS on MSP430 microcontroller and I have an error that occurs when I use API function xEventGroupSetBitsFromISR() inside of ADC interrupt routine. I have searched online and I saw that ...
user avatar
-7 votes
1 answer
390 views

Will RTOS's be displace by FPGA's? [closed]

Will RTOS's be displace by pure FPGA's because of its performance and flexibility? Does RTOS's have any advantages besides legacy code? Will the tasks solved with RTOS be solved with FPGAs without the ...
user avatar
  • 1,784
0 votes
1 answer
89 views

Semaphore in FreeRTOS doesn’t work

I am a newbie to freeRTOS and I was trying to learn about semaphores,I am using ATmega32a microcontroller, the plan was to create 3 tasks each is blinking the same led for some time with different ...
user avatar
0 votes
1 answer
192 views

STM32 RTOS2 execuation code failed, it doesn't execute the thread properly [closed]

Here is my first RTOS2 under CMSIS library code. I need to know why it doesn't change the states of my LED. ...
user avatar
  • 117
0 votes
1 answer
240 views

FreeRTOS priority and its effect on Thread

I am learning basics of Free RTOS wth a STM32MCU. I defined two threads, each one take mutex, wait for 1000ms and give the mutex again. I have noticed that when the priorities of the threads are not ...
user avatar
  • 43
1 vote
1 answer
93 views

RTOS understanding and communication

We are working on a system that will need some predictive emergency stop. As a possible solution the RTOS was mentioned. Not sure if RTOS is a way to go, might just be that we do not have full ...
user avatar
19 votes
9 answers
6k views

Does the "Avoid using floating-point" rule of thumb apply to a microcontroller with a floating point unit (FPU)?

As a rule of thumb, I try to avoid using floating-point in my embedded system codebase. Floating-point variables are: Computation-intensive Not atomic (can cause problems in an RTOS application or ...
user avatar
  • 515
0 votes
1 answer
104 views

Incorporating RTOS into a simple sensor interfacing project for learning purpose

I am trying to switch to embedded from a software test role, and been working on learning about STM32, and almost finishing up writing drivers for I2C which I used for interfacing with a sensor. I ...
user avatar
  • 185
1 vote
1 answer
61 views

Choosing controller/processor when real time feedback control system is required

Currently, I am planning to work on a system, in which we will be gathering the data from the multiple sensor for more than 15 parameters, based on the sensor value we will be controlling the ...
user avatar
  • 385
0 votes
1 answer
604 views

How to setup the RTOS Object Viewer on Code Composer Studio?

While configuring Code Composer Studio 9.3 to use RTOS Object Viewer from Texas Instrument I encountered the following error. The computer is running windows 10. Below is error in text format ...
user avatar
0 votes
0 answers
594 views

FreeRTOS with ATMega328P

Im trying to run FreeRTOS on ATMega328P and with two tasks its works well, but when i put one more task, no one is scheduling, I got the return of CreateTask of all tasks created and is right, all of ...
user avatar
5 votes
2 answers
8k views

FreeRTOS on STM32 - What API should be used: CMSIS-RTOS API (v1 or v2) or FreeRTOS API? [closed]

According to ST's user manual UM1722 "Developing wireless applications on STM32Cube with RTOS" there are two APIs available: Generic CMSIS-RTOS API (v1 or v2) FreeRTOS API The CMSIS-RTOS API ...
user avatar
0 votes
1 answer
51 views

Tasks inside Interrupt Handler

Is there any schedular that exists for STM32F103 in which the 'tasks' are run at the ISR() level while the Schedular() code runs in the main() thread?
user avatar
  • 1,381
0 votes
1 answer
127 views

Implementation of RTOS in irrigation embedded application on stm32

I have designed a small project in which i have two sensor nodes(stm32) with each sensing temp, humidity and soil moisture and actuating the relay based on some threshold of moisture value. These ...
user avatar
4 votes
0 answers
437 views

Is mbed OS suitable for hard real time systems [closed]

I have been developing embedded stm applications bare metal along with ST Hal for a few years and would still consider my self a beginner as the process of learning in a bare metal environment can be ...
user avatar
0 votes
1 answer
411 views

STM32 - SPI - RTOS problem [closed]

I'm working on a project that uses a 2.8" arduino LCD. The LCD uses an ILI9341 driver. Now I'm testing this library: https://github.com/martnak/STM32-ILI9341 with an STM32F4-Discovery board (STM32F407)...
user avatar
0 votes
1 answer
525 views

Timer Interrupt Setup in ThreadX

We're trying to set up ThreadX for the first time and we're trying to understand all the timer settings that. Although there are basically two constants that we need to set, they are not really clear ...
user avatar
  • 33
0 votes
0 answers
2k views

Using stop mode in freeRTOS on a STM32L0 and waking up using EXTI interrupt

I want to make a low power device, running freeRTOS. There are 3 threads, which I planned to suspend normally into stop mode and resume execution depending on an EXTI interrupts. I intended doing so ...
user avatar
-1 votes
1 answer
360 views

What is a RTOS, is it embedded or do I need to install? (MSP430) [closed]

First of all, I have the basic knowledge in low-level programming of microprocessors but I don't have the in-depth details which I need. I have never worked with RTOS before in my previous class. Now ...
user avatar
2 votes
2 answers
112 views

Commercial Availability of Bare Metal Automation Controllers [closed]

When I think of commercial automation controllers, I typically see 2 levels of system complexity. First, at a lower level, PLC's programmable with ladder logic, structured text or another 61131-3 ...
user avatar
2 votes
0 answers
4k views

UART interrupt handling using FreeRTOS

I have two threads: 1. ReadFromUART(): It reads from UART (RX), parses the message and put a command on the messageQueue 2. CommandHandler(): If a message is present in the messageQueue, It execute ...
user avatar
  • 1,213
0 votes
1 answer
1k views

C++ RTOS Options [closed]

What are some off the open source, popular choices for a C++ compatible RTOS (besides mbed)? I've heard that FreeRTOS doesn't provide official support for C++ compilation and it's a nightmare getting ...
user avatar
  • 591
0 votes
2 answers
775 views

FreeRTOS - Potential issues with Periodic Tasks

Suppose Task 1 has the highest priority of all tasks, and is run periodically using vTaskDelayUntil(). Task 2 has a lower priority, but is also required to run periodically in strict time intervals. ...
user avatar
  • 749
0 votes
1 answer
279 views

How do Free-RTOS and mbed OS handle ethernet?

Do Free-RTOS and mbed OS poll for incoming data to be received (or use interrupts?)? If so, is there a risk that data to be received while the processor is handling another task (e.g. running a ...
user avatar
  • 749
2 votes
2 answers
793 views

RTOS Over UART protocol

I am developing an UART protocol to ensure communication between two boards (Master board and Slave board). Slave board includes many sensors and actuators and Master board shall command this board by ...
user avatar
  • 1,213
1 vote
2 answers
3k views

Control an UART protocol with FreeRTOS or Interrupts [closed]

I am trying to develop an UART protocol to allow communication between two boards Master_Board and Slave_Board. Master_Board shall send commands over UART to Slave_Board and the latter shall answer. ...
user avatar
  • 1,213
4 votes
3 answers
328 views

What are the details about link files and startup code one needs to know to write an Operating System for a uC? [closed]

I know some people will say I don't need to write an OS because there are lots of options out there. But I'm not interested in using an OS to solve an specific problem. I want to write one by myself ...
user avatar
0 votes
0 answers
130 views

Getting error while opeing ".cfg" file with the XGCONF tool

I got some strange errors in ccs. I'm using a cc2640r2f IC and downloaded there simple_periphal_oad_on_chip from resource explorer. Whenever I open the .cfg file with the XGCONF tool I get an error ...
user avatar
4 votes
2 answers
5k views

Do microcontrollers support threading?

It has been a while since I took "Embedded Systems" course where we studied "Super-Loops", "RTOS", Semaphores, Multitasking (cooperative vs premptive) so sorry for this question. We have an an ...
user avatar
  • 601
2 votes
1 answer
574 views

Basic RTOS concept. Tasks communication

I am learning to use a RTOS, CMSIS RTOS in this case, so my question is basic. I want to know what is the best way to share information between two tasks. What I am trying to do is basically a ...
user avatar
  • 21
0 votes
2 answers
1k views

Best choice in ARM Cortex series for running RTOS A-,R- or M? [closed]

I am learning about ARM Cortex based systems. I understand that most of the Cortex series can support running an OS. When it comes to real time operating systems implementation on an embedded system, ...
user avatar
  • 222
0 votes
1 answer
672 views

Reasons to use RTOS [duplicate]

Can someone explain in what situations is RTOS used? What are pros and cons of RTOS relative to simple MCU applications with no OS?
user avatar
  • 79
0 votes
0 answers
79 views

Handling RFID time response functions in C

I'm developing an embedded app, writen in C, using a M16C/28 uC from Renesas. The app manages two simple task: RFID for detection and reading MIFARE tags. ( Using HW: Mf500 from NXP ). The uC ...
user avatar
  • 27
0 votes
2 answers
484 views

RTOS and OS working side by side in cooperative work

I would like to use use a RTOS and OS side by side to implement a cooperative work. The RTOS would perform time critical (real-time) task and the OS will perform the other non-critical ...
user avatar
  • 133
1 vote
1 answer
153 views

What are the rules that function should pass in order to be used in RTOS

I use ATSAM4LC2A ARM microcontroller that drives 3xUSART, GPIOs, DMA. timers with the use of interrupts and all the remaining logic of my application.. The project is functional but with out a RTOS ...
user avatar
  • 394
0 votes
1 answer
109 views

ARM compatibility between vendors, with and without RTOS (FreeRTOS) [duplicate]

I would like to know how much compatibility can I expect between ARM MCUs from different vendors. For example, let's say I write a firmware using C language for a Cortex M0 using its CAN peripheral. ...
user avatar
  • 161
-1 votes
2 answers
203 views

VxWorks on TI Launchpad Boards

I am trying to find out if VxWorks will be able to run on something similar to the TI EK-TM4C123GXL board (http://www.ti.com/ww/en/launchpad/launchpads-connected-ek-tm4c123gxl.html). It looks like ...
user avatar
  • 1
3 votes
2 answers
605 views

Micrium Rtos - OSTimeDly not working

I have initialized the Micrium Rtos and there is no error when I compile the project but there is a OSTimeDly function in my code that is not working. I should notify that when I give the first ...
user avatar
  • 75