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.
Questions tagged [freertos]
124 questions
12
votes
3 answers
STM32F407 + LAN8720A + lwIP + FreeRTOS = No received Ethernet frames
I'm trying to bring up a PCB that uses an STM32F407 and LAN8720A Ethernet PHY, and I can't seem to receive any Ethernet frames — even though I have no problem transmitting frames.
Hardware setup
I have a 25 MHz crystal on the STM32F4, driving a 25…

Jay Carlson
- 2,819
- 1
- 14
- 21
8
votes
3 answers
RTOS for Cortex M4 with 802.15.4/6LoWPAN stack
I'm evaluating operating systems to use in an Internet of Things Project and I don't know what's the best way to proceed.
I'm using a TM4C123GH6PM MCU with 32k RAM and a CC2520 802.15.4 transceiver, it would be great if the system already provided…

user1273684
- 251
- 1
- 3
- 5
7
votes
2 answers
FreeRTOS on STM32 - What API should be used: CMSIS-RTOS API (v1 or v2) or FreeRTOS API?
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 located in the CMSIS_RTOS_V2 folder generated by CubeMX…

Fedor Chervyakov
- 71
- 1
- 1
- 3
7
votes
2 answers
Unable to read file greater than 2K in FatFS
I am reading a file from the SPI Flash with FATFS file system, on STM32F103 platform running FreeRTOS. I can successfully read File of size less the 2048, but if read a file file of size greater than 2048, (As i am reading in chunks of 128 bytes) it…

CAK
- 91
- 2
- 4
6
votes
2 answers
FreeRTOS queues and IPC confusion
I'm struggling with my first real freeRTOS project. I am basically using an ATmega328P microcontroller and an nRF24L01+ radio as a "node". I have two of these nodes and I am using them to talk to each other. I have successfully ported freeRTOS to my…

NickHalden
- 4,167
- 3
- 31
- 40
6
votes
1 answer
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 process them at my convenience in a task. Since most…

scriptsNgiggles
- 197
- 1
- 9
6
votes
4 answers
Why use FREERTOS instead of the interrupt mechanism on a microcontroller?
This might be a very stupid question.
I have experience with embedded software on bare-metal and just started with FREERTOS. However I don't really understand why one would use FREERTOS instead of the built in interrupt mechanism. The goal of…

LandonZeKepitelOfGreytBritn
- 414
- 1
- 9
- 16
6
votes
2 answers
RTOS: Why Do We Need Special Post versions for ISRs?
In some RT kernels, if you want to post to a semaphore or flag from an ISR, you need to call an special version of the method, instead of the regular one called from a normal task. Examples:
xSemaphoreGiveFromISR() instead of xSemaphoreGive() in…

Mister Smith
- 415
- 1
- 3
- 12
5
votes
2 answers
Must FreeRTOS task stack size account for interrupt stack size?
I have FreeRTOS running on a MKE06 Cortex-M0+ (based on SAMD20 demo), GCC toolchain. I am trying to figure out optimal task stack sizes (with the help of avstack.pl).
I want to use only static memory allocation.
In the FAQ I have read this:
The…

filo
- 8,801
- 1
- 25
- 46
4
votes
2 answers
Use STM32 interrupt with FreeRTOS
I'm confused in using HAL-defined interrupts with FreeRTOS. I'm trying to implement "6.3 Deferred Interrupt Processing" in the guide of FreeRTOS, but I don't know how to do it.
The problem is how to use the peripherals of the STM32 with FreeRTOS.…

Ramo
- 93
- 2
- 2
- 8
4
votes
0 answers
SD Card Buffer in FreeRTOS
One of my tasks in a project is responsible for gathering information about values measured from sensors and write information in a .txt file on an SD card. What would be the best way to do this?
Right now, I create a task with 25000 size of stack…
user54506
4
votes
1 answer
Using RTOS support in OpenOCD
I can see that OpenOCD is RTOS aware and it supports FreeRTOS, which I'm using at the moment.
I have looked at various sources and cannot seem to figure how to use this feature.

errordeveloper
- 475
- 4
- 13
3
votes
0 answers
FreeRTOS is slow to wake after long processor sleep
(Cross-posted on Stack Overflow)
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 a problem with the…

harry courtice
- 596
- 2
- 8
3
votes
1 answer
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. I have verified that the RAM address exists in…

GBohlin
- 51
- 4
3
votes
1 answer
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 toggling program using FreeRTOS with a single task…

No Man
- 347
- 2
- 9