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
2
votes
0 answers

SQLITE3 on STM32 FreeRTOS and FATFS

I am trying to port SQLITE3 on top of FatFs supported by the STM32Cube using the FreeRTOS and MicroSD Card on STM32F429-EVAL1 board. Could you please share the source if anyone is successful with this implementation? I see that I can use…
khkbme
  • 21
  • 1
2
votes
0 answers

Math.h and FreeRTOS

I'm having the same problem as described here and trying to solve it. The issue is the following: The following code produces an error: #include "FreeRTOS.h" #include int main() { double x = 3.14; double y = fabs(x); return…
G. B.
  • 528
  • 2
  • 15
2
votes
0 answers

ESP32 Freertos Timer error "unsupported clock source"

I am trying to initialize timer module in FreeRTOS on ESP32 Module. But it gives me the following errors : Heap Size = 272208 Stack Rem = 2540 assert failed: timer_ll_set_clock_source /IDF/components/hal/esp32/include/hal/timer_ll.h:38 (false…
krutika
  • 21
  • 2
2
votes
1 answer

FreeRTOS is slow to wake after long processor sleep

(Cross-posted on Electrical Engineering Stack Exchange) I'm using FreeRTOS in an application which requires the processor to sleep in low power mode for a long time (as long as 12 hours), then wake up in response to an interrupt request. I'm having…
harry courtice
  • 209
  • 1
  • 9
2
votes
1 answer

STM32 FreeRTOS give binary semaphore from ISR not working

I've generated a RTOS-cmsis_v1 project for stm32f103 using stm32cubemx and defined four tasks as below: osThreadDef(defaultTask, StartDefaultTask, osPriorityLow, 0, 128); defaultTaskHandle = osThreadCreate(osThread(defaultTask), NULL); /*…
mehdi
  • 167
  • 11
2
votes
1 answer

Which RTOS synchronization method shall I use for waiting until all tasks are initialized?

I have a lot of tasks in my application. Some tasks depend on others. For example I have console task that prints outputs from all other "worker" tasks, so all these tasks before printing anything must wait until console task is fully initialized. I…
Kamil
  • 13,363
  • 24
  • 88
  • 183
2
votes
2 answers

Functions vs Queues vs Global Variables in C

This question is more about what in your opinion is most efficient for embedded systems running C with RTOS. I have a task that only updates a variable every period. This variable is used in other tasks in the program: TaskA.c int someVar = 0 void…
Hamad B
  • 46
  • 3
2
votes
1 answer

How to determine Stackdepth required for individual task to create using FreeRTOS xTaskCreate?

I am using FreeRTOS to develop Firmware on STM32 MCU. What are the techniques I can use to determine stack size required for individual task which is created using FreeRTOS xTaskCreate API? I know this depends on work done by individual task but I…
raj123
  • 564
  • 2
  • 10
  • 27
2
votes
1 answer

Precise Time Measurement in STM32MP1 with DWT CYCCNT

I am using OSD32MP1 (based on STM32MP157c) in Production Mode with OpenSTLinux on Core A7 and FreeRTOS on M4. One of the tasks is to timestamp ADC data acquired by M4 at very highspeed, very precisely (think it order of nanosecond to microsecond).…
2
votes
1 answer

why "A stack overflow in task iot_thread has been detected" is coming continuously?

I'm working on an aws/amazon-freertos project. In there I found some unusual error "A stack overflow in task iot_thread has been detected". Many time I got this error and somehow I managed to remove it by changing the code. I just want to know what…
Raghav Jha
  • 49
  • 1
  • 7
2
votes
2 answers

STM HAL with FreeRTOS, yes/no/maybe?

I am struggling for a while to get my program running stable. I am experiencing hard faults while my program is running. I am going in circles. My project: Nucleo F446ze (STM32F446ze) An LTE modem connected to uart2 My PC connected to uart3 (for…
bas
  • 13,550
  • 20
  • 69
  • 146
2
votes
0 answers

FreeRTOS LPUART: missing data when receiving from uart

I use the FreeRTOS LPUART library to receive data from an external device. The data I receive looks all fine except every few lines, a character is missing. Been trying to fix this for days but haven't found a reliable solution yet. Has anyone ever…
coding fox
  • 21
  • 1
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
2 answers

How to build mbedtls for arm gcc

I want to use mbedtls for my stm32 projects, but I have some problems with building. I have to build mbedtls with arm-none-gcc compiler, right? My command is :(in build…