Questions tagged [freertos]

FreeRTOS is free real-time operating systems for embedded systems that currently supports over 30 different CPU architectures. It has a small memory footprint making it suitable for microcontrollers that do not have an external memory bus.

Filter by
Sorted by
Tagged with
0 votes
0 answers
48 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
3 votes
1 answer
46 views

STM32H747 MDMA Transfer Error Address when using FreeRTOS

I'm using the MDMA to communicate with an external flash over QUADSPI. I have an implementation which works great without FreeRTOS, but when I implement it using FreeRTOS I get Transfer Error Address. ...
user avatar
  • 41
1 vote
0 answers
40 views

Does the external hardware interrupt affect both cores in ESP32?

I am working on a project, where I am implementing FreeRTOS on an ESP32 DEVKIT-V1 module. One core is specifically dedicated to reading high precision rotary encoders. I am reading the number of ...
user avatar
  • 83
1 vote
1 answer
98 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
  • 307
1 vote
0 answers
39 views

How to minimize vTaskDelay in FreeRTOS?

I need to sample a signal with a sampling frequency in order to 2500 Hz. But, when i put any time in vTaskDelay(pdMS_TO_TICKS(time)) under 1 [ms], my programa start to bug. How can i fix this? Note: ...
user avatar
1 vote
1 answer
67 views

ESP32 - Idf Arduino QueueHandle_t as function paramater

I am using ESP32 module and coding it using Arduino. I am trying to read from Serial2 (attached to hc-05 bluetooth) and push it to FreeRTOS queue. There is one task(task4F) pinned to core-1. To ...
user avatar
1 vote
1 answer
162 views

HAL_I2C_Master_Transmit_DMA sends only one byte

i am having an issue using STM32G4 with I2C DMS and FreeRTOS. I have used the library https://github.com/firebull/STM32-LCD-HD44780-I2C for a long time with STM32F4 and free RTOS and it works ...
user avatar
  • 33
2 votes
1 answer
70 views

Mass storage for timing critical applications

I am working on a data logger that requires measurements to be taken during narrow time windows. I have been storing the measurement data on SD cards, however, the write times are very inconsistent, ...
user avatar
  • 21
1 vote
1 answer
42 views

Mails Usage on FreeRTOS (STM32L4)

I have an application on STM32L4 with multiple queues and threads without problems. I try to add a mail queue via the following function : But it seems the linker can't find the reference : I check ...
user avatar
  • 159
3 votes
1 answer
157 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
1 vote
0 answers
61 views

stm32f4-tls and freertos

I want to use TLS on lwip using modbus tcp applications. But when I choose the mbedtls on CubeMx, I couldnt select lwip. If I use the Freertos, than I can selecect both of them. But I dont want to use ...
user avatar
  • 281
1 vote
0 answers
126 views

Inconsistent behaviour with LIS3MDL magnetic sensor

I'm working on implementing a driver for the LIS3MDL magnetic sensor using FreeRTOS under the hood with some of our in-house functionality as well. Link to the device documentation if useful (used ...
user avatar
  • 11
0 votes
4 answers
237 views

Handling two interrupts occurring at the same time for different producers

So I have a UART IRQ handler that is fired for each byte sent over UART, which then writes to a Fifo buffer and once the end of the data is detected, a callback is invoked which parses the data and ...
user avatar
  • 37
0 votes
0 answers
89 views

Making sense of an architecture for a FreeRTOS based application

This is more of an architectural design question and any suggestions shall be appreciated. So far, a general idea is that there's a system thread that's like a central task that decides how to ...
user avatar
  • 37
0 votes
0 answers
78 views

Interrupt handler starts behaving unexpectedly when scheduler runs

I have an IRQ handler that gets fired upon receiving a character over serial, and everything is fine until I run a FreeRTOS scheduler inside main, and now what I see is IRQ handler still getting ...
user avatar
  • 37
0 votes
0 answers
57 views

CycloneTCP HTTP Web Server Demo For STM32F207 using ATWINC1500 WiFi not working

I am using STM32F207 Microcontroller for Ethernet and Wifi(ATWINC1500) Interface with ide Keil Uv5, I have installed the CycloneTCP Tcp/Ip stack on top of it and everything compiles fine. CycloneTCP ...
user avatar
2 votes
2 answers
530 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
1k views

STM32 - Using Timer as timebase source for HAL in FreeRTOS application

I am learning more about freertos by making a task based program. My problem comes when initializing and configuring the HAL time sources. I read that it is necessary to choose another HW timer as ...
user avatar
  • 31
0 votes
1 answer
30 views

SAMC21 FAT slow on samc21

I'm working on a samc21 and using the fat libraries provided in ASF. I have a program that takes from serial information and has to write to an SD card. The amount of bytes its around 50KB. I'm using ...
user avatar
0 votes
1 answer
98 views

ESP32: How can I shorten wifi-connection time to AWS?

ESP32 is sending temperature and humidity data from sensors to AWS over wifi and it's working otherwise fine, but wifi-connection is "on" for about 20 seconds. I'd need to shorten the ...
user avatar
1 vote
0 answers
68 views

FREERTOS disassembly problem

I just started to learn FREERTOS with atmel studio. At first, I tried to make the most simple code "toggling LED". I can build solution of the code, but when I try to debug my code, it stops ...
user avatar
  • 11
1 vote
0 answers
130 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
1 vote
0 answers
190 views

Seemingly having trouble setting an ISR interrupt greater than configMAX_SYSCALL_INTERRUPT_PRIORITY

How does one set the priority of an ISR when free RTOS is ebing used? So I have an ISR for push button that I'm setting to a higher value than ...
user avatar
  • 195
0 votes
1 answer
535 views

Clarification on the usage of Semaphores vs task notifcations vs queues

I'm trying to understand the basic concepts of FreeRTOS. When do you use queues vs task notifications? I see queues are used for task-task, task-interrupt synchronization i.e one task waiting on a ...
user avatar
  • 75
0 votes
0 answers
157 views

Understanding a generic flow of a simple data logger via FreeRTOS

So I came up with this simple flow of the program that could be done without RTOS but I'm using it for the sake of learning. The generic idea is to get the user input over UART, and if it's something ...
user avatar
  • 75
1 vote
2 answers
1k views

HardFault with FreeRTOS at STM32 - New Project

Is this a bug. First I created a new project and enabled FreeRTOS and then I set the Time Base Source to TIM3. Then I got hard ...
user avatar
  • 769
1 vote
0 answers
1k views

DMA + ADC + FreeRTOS in STM32 - Cannot read any ADC value - Why?

I'm using Nucleo STM32F401RE board. I have a small issue. I have connected SPI connections + two potentiometers and FreeRTOS. But I can't read the ADCs. I wonder why? I have created an array called <...
user avatar
  • 769
0 votes
0 answers
121 views

Running two threads at the same time is causing a hardfault

So i'm learning FreeRTOS on STM32 and currently following a tutorial to get things started. Following are my concerns with the first one being the most: I have two threads, but upon running a ...
user avatar
  • 75
0 votes
1 answer
84 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
220 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
89 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
0 votes
0 answers
26 views

vTaskPrioritySet needs extra TaskHandle_t to function

Im using STM32F429I-DISC1 and Keil uVision v5 Ive written a simple example to demonstrate task priority setting using handles however the code only functions if I first delcare an unused TaskHandle_t ...
user avatar
  • 940
2 votes
0 answers
411 views

how to handle 'heavy' task in FreeRTOS

I know that each task in FreeRTOS should have a vTaskDelay() to release CPU resource to other tasks periodically. However, when there is a very time-consuming function in a task, like read a large ...
user avatar
  • 482
0 votes
0 answers
563 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
0 votes
0 answers
415 views

STM32F1 FreeRTOS osDelay (also vTaskDelay) make task stop running

I am using FreeRTOS with STM32F103C8T6 (code generated by CubeMX) and experiencing very strange behavior in my application while using osDelay or vTaskDelay functions. Structure of my app is 3 tasks. ...
user avatar
1 vote
1 answer
174 views

FreeRTOS: Task Creation Problem

I am creating 2 tasks, one controls a keypad the other a temperature sensor. Each task works individually. However when I try to create both task it does not seem to create the task, it keeps looping ...
user avatar
  • 875
0 votes
2 answers
462 views

FreeRTOS and 3 UARTS

I have application which has 3 UARTS (GSM / Debug / GPS) and will be developed under FreeRTOS (not the matter here but STM32F1 will be used). What would be the pattern to use with this setup ...
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
1 vote
2 answers
473 views

How can I run an STM32L with an unpowered ST-Link connected?

I have an STM32L476RG on a custom board that I have to leave connected to an external ST-Link/V2 so that I can reprogram it without accessing the hardware. I'm also forced to do this via a USB hub due ...
user avatar
  • 23
0 votes
1 answer
838 views

Guru Meditation Error: Core 0 panic'ed (InstrFetchProhibited). Exception was unhandled. ?? ESP32 FreeRTOS Error

I was trying to learn FreeRTOS. This is my simple FreeRTOS code that I'm trying to run on my Esp32. Code: ...
user avatar
0 votes
1 answer
232 views

FreeRTOS crashing when adding new queues

I am new to FreeRTOS At the beginning I created 3 queues and everything worked fine. Until I needed a new 4th and 5th queue. When ever I initialize the queues with ...
user avatar
6 votes
1 answer
1k views

STM32 crashes when FreeRTOS project is converted to C++

I am experimenting with STM32F303RE Nucleo board on SW4STM32 with FreeRTOS v10.1.1 and I was thinking of parsing NMEA sentences by adding the characters to a buffer using UART interrupt and then ...
user avatar
3 votes
3 answers
342 views

Bare minimum FreeRTOS

My only requirement is time triggered cooperative scheduler. I heard they are more reliable and predictable. If I want to use only the 'cooperative scheduler' of FreeRTOS for STM32F103 then is it ...
user avatar
  • 1,381
0 votes
1 answer
268 views

Blocking code in Task of FreeRTOS

Today is my first day on FreeRTOS. I want to use it in STM32F103 for simple task handling as reading data from analog sensor and sending remotely using GSM module. I want to know what are the do's ...
user avatar
  • 1,381
0 votes
1 answer
551 views

Error when using vPortFree(ptr) CMSIS-RTOS on STM32F4

I will need to handle dynamic memory using malloc and free. Looking on FreeRTOS documentation, I found pvPortMalloc(size) and vPortFree(ptr) , pvPortMalloc(size) works fine. When try to release memory ...
user avatar
1 vote
2 answers
185 views

freeRTOS semaphore

I am new freeRTOS and i am using stm32F4 . Requirement is to create a task it should the sd card every after 15min what is the best possible solution ?? ...
user avatar
0 votes
1 answer
766 views

FreeRTOS PID Controller (stm32duino) [closed]

I'm currently working with embedded system implemented on SMT32F103C8T6 Blue Pill microcontroller based on FreeRTOS. I want to control the velocity and position of DC motor using PID controller. For ...
user avatar
0 votes
1 answer
2k views

STM32 - ADC based temperature measurement on FreeRTOS

I've been trying to measure the MCU's (STM32F103RB) temperature as part of a FreeRTOS application. I've tried initializing the ADC both with the low and the high-level HAL functions, but whenever I ...
user avatar
-3 votes
1 answer
507 views

which IDEs are available for Freertos with Stm32 IDE for Linux? [closed]

Is there any IDE available for Freertos or Stm32 for specifically only for Linux other than Keil uvision. because I found out that Keil uvision is the most stable IDEs available out there for embedded ...
user avatar
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