Questions tagged [freertos]

FreeRTOS is a portable, open source, real-time operating systems for microcontrollers. It also has some support for microprocessors with memory protection units.

FreeRTOS is a portable, open source, real-time operating systems for microcontrollers. It also has some support for microprocessors with memory protection units. It is designed to be small and simple and consists of only 5 C files and a small portability layer per each unique controller/compiler.

Features

  • Portable - supports 18 toolchains
  • Supports many of the commonly used CPU/MCU architectures including x86, ARM, AVR, AVR32, PIC (PIC24, PIC32, dsPIC), 8051, Z80, PowerPC and more

See also

1097 questions
-1
votes
1 answer

start a freeRTOS task with a function

is it safe to create a task with a variable? TaskHandle_t blablaTaskHandle= NULL; ... bool startTask = readAVariable(); if(startTask ){ xTaskCreate(&blabla, "blabla", 2048, NULL, 2, &blablaTaskHandle); } And also suspend it and resume: //…
D_A_8
  • 9
  • 4
-1
votes
1 answer

warning: passing argument 1 of 'xTaskCreate'

when compiling it gives this error? But I don't know why? Maybe I have looked at it for too long and I don't see it anymore? CC /project/test/Venetian_blinds/servo.c /project/test/Venetian_blinds/servo.c: In function…
angel
  • 1
-1
votes
2 answers

How to Read data from RS232 port without RS232 task creation (Embedded FreeRTOS C)?

I want to write C code for an embedded system such that the data received at the RS232 port should be read continuously without creating a separate "RS232 TASK" for reading the data. Can anyone help me with this? I just need a basic approach for…
-1
votes
1 answer

How can I determin if execution takes place in thread mode or if an exception is active? (ARMv7-A architecture)

I am using FreeRTOS on an ARM Cortex A9 CPU und I'm desperately trying to find out if it is possible to determin if the processor is executing a normal thread or an interrupt service routine. It is implemented in V7-a architecture. I found some…
Stone
  • 33
  • 6
-1
votes
3 answers

How to execute a function periodicly in a task with FreeRTOS?

I would like to execute a function every 10ms in a task called at 1ms. Do you know if there is a function to do that without blocking the task please ? Have a good day!
QBKM
  • 3
  • 2
-1
votes
1 answer

What is the complexity of the scheduler of the FreeRTOS?

I've searched through the documentation of FreeRTOS, but couldn't find anything related to the complexity of its scheduler. So, what is the complexity of it? Is there a way that I can detect it myself?
Caglayan DOKME
  • 948
  • 8
  • 21
-1
votes
1 answer

Why FreeRTOS requires stop once in a breakpoint to run well?

I have an application for Zynq MPSoC (Vitis 2020.2) written in C++ using FreeRTOS V10.3.0. This application runs very well if stops at a breakpoint once. If I disable all breakpoints program runs buggy? What might be problem?
muradaltay
  • 41
  • 7
-1
votes
1 answer

Stm32 hardfault exception at Rtos

task_create tasks rtos_config debug I am new at RTOS , created two tasks on stm32cubeide but i counter HardFault_Handler exception on debug . why could it be ? I have the need for your help . all of the file --> link thanks....
Asaemon
  • 1
  • 2
-1
votes
1 answer

The child object isn't passed in an update() function of a observer design pattern

I am trying to integrate an observer pattern into my FreeRTOS-based embedded application with an idea of sending notifications to the observers based on what they have subscribed to. The SysTsk::mainThread is a thread that takes user inputs, which…
Jazzy
  • 324
  • 4
  • 15
-1
votes
1 answer

Freertos and the necessity of uart transmit interrupt

For uart reception, it's pretty obvious to me what can go wrong in case of 'blocking receive' over uart. Even in freertos with a dedicated task to read from uart, context / task switching could result in missing bytes that were received in the uart…
bas
  • 13,550
  • 20
  • 69
  • 146
-1
votes
3 answers

Using Queue of string in FreeRTOS

I am using Ardunio/ESP32 and I am very new to FreeRTOS. I want to have a task that is solely responsible for printing text on serial port and other tasks can push messages. So, I decided to use a Queue of char arrays (or std::string) with 10 item…
Reza
  • 43
  • 7
-1
votes
2 answers

FreeRTOS - The reason for the stack increase?

I have created several tasks, the body of which is the same function. Inside the function, there is a delay that is the same for every task. So, when this delay is large enough, the stack of each task is filled with 6 words less than when the delay…
MaxNTF
  • 33
  • 1
  • 7
-1
votes
1 answer

Why do we use ISR functions with Semaphores?

Hello i have just started using FreeRTOS with STM32. I understand the concept of synchronisation between Tasks or Threads using Semaphores. But what i really dont get is the use of the Semaphores/Mutexes with the Interrupt Service Routine ISR. Why…
unkown53
  • 111
  • 1
  • 11
-1
votes
1 answer

Create an array at different memory locations for each loop

Good morning everyone, I am currently working on a data acquisition project, where I have to read sensors (at around 10 kHz) and transmit the data via Wi-Fi and the MQTT-protocol. I am using an ESP32 for both of these tasks. One core is doing the…
Legriano
  • 1
  • 2
-1
votes
1 answer

Optimization and Time Slicing Causes Multitasking Data Issues

I am using FreeRtos and have multiple tasks using the same code at the same priority level. To test my code I pass the same data into each task. When optimization is above -O0 and timeslicing is turned on, there is some sort of problem where the…
LRID
  • 53
  • 7