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
3
votes
1 answer

LPC deep sleep mode example

First of all clarify that I'm a newbie in embedded technology. I'm using a NXP LPC1769 board. For some days I've been looking for an example on how to use a watchdog to wake up from deep-sleep mode but I can not find it. I read chapter 21.1 from…
arturn
  • 725
  • 2
  • 11
  • 25
3
votes
2 answers

Eclipse: Cannot run program "cs-make": Launching failed

For the past week, i have been hunting a free development environment for STM32F1xx, which is supported by FreeRTOS. And no success yet :( . Now I've found this: http://www.stf12.org/developers/ODeV.html It's an Eclipse configuration for STM32…
Jolle
  • 1,336
  • 5
  • 24
  • 36
3
votes
1 answer

FreeRTOS stack corruption on STM32F4 with gcc

I'm trying to get FreeRTOS running on my stm32f4discovery board. I have installed summon-arm-toolchain and created a Makefile to compile my code. Here is the…
Wang Ye
  • 153
  • 1
  • 10
3
votes
1 answer

Compiling FreeRTOS with GCC, app code with G++

I've got a Stellaris Launchpad board with a Cortex M4F on it. I want to use FreeRTOS on the board with some of my own C++ code. FreeRTOS, however, is written in C so will not compile with G++; I've tried. I read somewhere that I should compile…
Bojangles
  • 99,427
  • 50
  • 170
  • 208
3
votes
2 answers

How do I keep code portable while using FreeRTOS

I am hung up on how to move forward with FreeRTOS in my application. Let me propose a simple scenario. Assume I have main and a module which has some hardware specific code. This code could be for controlling a specific motor in a system or a…
user946230
  • 269
  • 1
  • 3
  • 8
2
votes
1 answer

FreeRTOS stay in infinitly in for loop for semaphore in vListInsert function

I'm trying to understand why my code get stuck in the for loop of vListInsert from FreeRTOS. I'm implementing FreeRTOS for bfin561 coreb with gcc toolchain compiler. here are the clue I've got: I initialise the semaphore this way: ..... …
william pagnon
  • 335
  • 3
  • 16
2
votes
1 answer

Can someone help me create a uf2 file, for a Raspberry Pi Pico w/ FreeRTOS?

first off i am on macbook. I am trying to create a uf2 file for my raspberry pi pico. This is for a swarm robot that i am working on and i get the following error: arm-none-eabi-gcc: fatal error: cannot read spec file 'nosys.specs': No such file or…
2
votes
2 answers

vTaskCreatePinnedToCore() isn't behaving as expected

I was working with ESP-IDF and I want to run two task at the same time of different cores of ESP32, So I used xTaskCreatePinnedToCore(sensorsTask, "Sensor" , 5000, 0, 0, &sensorTaskHandler,0); xTaskCreatePinnedToCore(storageTask, "Storage", 5000, 0,…
2
votes
1 answer

STM32 entering in STOP mode with FreeRTOS

I am trying to enter in STOP mode and wakeup using the RTC Alarm. It works fine when testing the code before starting the FreeRTOS Kernel. After starting the FreeRTOS Kernel the wakeup does not work, the system continues in STOP mode. I believe the…
IGtti
  • 49
  • 6
2
votes
2 answers

STM32 HAL tick hangs after FreeRTOS mutex creation

After creation of a FreeRTOS mutex, the HAL Tick timer is not increasing anymore. I use STM32CubeIDE 1.11.2 as IDE and CubeMX 6.7.0 as code generator, test platform Nucleo-F767ZI. Reproductibility : New STM32 Project in STM32CubeIDE, everything by…
Gwen
  • 1,436
  • 3
  • 23
  • 31
2
votes
1 answer

STM32 - Reading I2S to record a .WAV file. Audio choppy, what is causing it?

I'm using an STM32 (STM32F446RE) to receive audio from two INMP441 mems microphone in an stereo setup via I2S protocol and record it into a .WAV on a micro SD card, using the HAL library. I wrote the firmware that records audio into a .WAV with…
Wonky
  • 264
  • 2
  • 11
2
votes
3 answers

ESP32/FreeRTOS, how to stop currently running task when the new one was triggered (avoiding overlap)

I'm working on code to control 2 module relay regarding door access. I'm looking for the way to stop the currently running tasks, before running the new one (the same task). All I want is to avoid overlap. void TaskOpenManRoom(void *parameter){ …
luj12
  • 23
  • 3
2
votes
0 answers

Stdio initialisation - embedded, newlib, freeRTOS

I am not actually sure where the best place to post this is as it is a combination of newlib code, FreeRTOS and a custom implementation. Application is embedded ARM using GCC (arm-eabi...), newlib from standard GCC for ARM installation, FreeRTOS on…
Ashley Duncan
  • 825
  • 1
  • 8
  • 22
2
votes
0 answers

What is the best of passing taskHandle to another class in freeRTOS with pointers

OK it was not wise to ask question with some assumptions. Here is the detailed version. I have 2 task, 1 for MQTT and 1 for LED. I want to read a data over MQTT and take an action to turn on an LED. Here is my task declarations: void taskMqtt(void…
user10207261
2
votes
1 answer

Buddy allocator, blocks of memory and FreeRTOS

I am trying to implement buddy allocator in C for FreeRTOS. I made a function buddy_free for memory management. I am using struct _buddy_block and function for allocation and memory management, but things don't go well and I need your help. Here's…
worrum
  • 90
  • 1
  • 13