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

Why can't FreeRTOS software timer callback use blocking API

Quoting the documentation (emphasis theirs) Timer callback functions execute in the context of the timer service task. It is therefore essential that timer callback functions never attempt to block. For example, a timer callback function must not…
MightyPork
  • 18,270
  • 10
  • 79
  • 133
4
votes
1 answer

Embedded RTOS Stop System

I'm learning FreeRTOS on a Cortex M0. (Simultaneously, I'm learning the Cortex as well...). I've got plenty of experience with 8bit MCUs. I'm going through the newbie tutorials on FreeRTOS and I understand setting up basics tasks and the idle…
Leroy105
  • 139
  • 5
4
votes
0 answers

FreeRTOS find task waiting address

I have FreeRTOS project with 4 tasks. In some cases the device stops responding. When Break the MCU (stm32f4), in most cases it is in task switching subroutines (tasks.c) and goes to vApplicationIdleHook. How to find the address of main task at…
i486
  • 6,491
  • 4
  • 24
  • 41
4
votes
1 answer

CPSID i assembly instruction not supported by Cortex M0

I'm developing code for a Cortex M0 using FreeRTOS and eclipse with the AC6 plugin. At the end of my tasks, I'm using an assert to determine if the watermark of my task is greater than the specified task size. The macro I use for my assert looks…
4
votes
0 answers

SQLITE Porting on FreeRTOS with STM32

I am trying to port sqlite3 VFS implementation on freertos with stm32. I have created an amalgamation with sqlite3 version 3.12 base code. When I run the below code it runs to create a database and a query "create a table cars". But when query…
Nitin Bhosale
  • 41
  • 1
  • 3
4
votes
3 answers

How to check where a function is referenced from

In a bare metal C/C++ project, I use gcc-arm-embedded (currently the most recent 4.9-2015-q2). For some reasons, I have to avoid using some functions, like some of stdio et cetera (don't want to use retargeting or semihosting). Further, I use…
Joe
  • 3,090
  • 6
  • 37
  • 55
4
votes
2 answers

How to store text file on embedded systems flash memory and read from it

I'm trying to do the following: Storing a text file (7kB) in the flash memory of a STEVAL-MKI109V2 (running with freeRTOS) board and read this text file and doing some computation with it on the device itself. I have 2 problems regarding that: 1)…
Unfixable
  • 440
  • 1
  • 7
  • 20
4
votes
3 answers

Get time since boot in FreeRTOS

I'm using http://www.freertos.org/ for an application, but I can't find how to get the system time since boot. I can create a task and keep updating a counter, but I don't think it will be a good thing since the scheduler might schedule down my task…
Alexandre Leites
  • 388
  • 1
  • 4
  • 15
4
votes
3 answers

Software interrupt in freeRTOS

I am learning freeRTOS. I need to write software interrupt ISR handler in freeRTOS for PIC32 platform (cerebot Mx7ck). I went through the documentation but no help. Please somebody help.
Main
  • 1,804
  • 3
  • 20
  • 28
4
votes
1 answer

gcc generates binary of size 0 with -Os

I have a simple FreeRTOS application that just toggles an LED in the main loop. When I compile it with -Os, the resulting binary has size 0. Without -Os everything works as expected. What is happening here? My CFLAGS are: CPUFLAG = -mthumb…
user1273684
  • 1,559
  • 15
  • 24
4
votes
2 answers

How to wake up a FreeRtos task from a high priority ISR?

Using: Stm32F10x, F2xx, F4xx FreeRtos 8.1.1 gcc-arm-none-eabi-4_8-2014q2 I have an ISR which must run with high interrupt priority, so that's forbidden to call FreeRtos Api from within this ISR (see here and here). In some cases these ISR detects…
Joe
  • 3,090
  • 6
  • 37
  • 55
4
votes
1 answer

FreeRTOS Sempahore from ISR not working

I need to make a data accusition device whose one task is to samples some GPIO's and record the GPIO status and send it to PC via UART to display in PC. The algorithm i chose was (please correct me since iam very novice in RTOS) to create a timer…
0xAB1E
  • 721
  • 10
  • 27
4
votes
4 answers

Using OpenOCD for debugging STM32F1xx Discovery board (ST-Link)

I got some problems getting OpenOCD to communicate with my STM32F100RB Discovery board (it uses ST-Link). I am not used to working with open source tools, and therefore I've never had problems programming and debugging my embedded platforms. In the…
Jolle
  • 1,336
  • 5
  • 24
  • 36
4
votes
1 answer

RTOS Datalogger example

I'm trying to develop a datalogger on a Cortex M0 (LPC11U14), and I was thinking of using a real-time OS like FreeRTOS, so that I can have one low-priority task that writes the data to SD, and multiple higher-priority timers that fetch the sensor…
Maestro
  • 9,046
  • 15
  • 83
  • 116
3
votes
1 answer

Stack overflows after giving semaphore from ISR in FreeRTOS

I'm trying to use FreeRTOS's xSemaphoreGiveFromISR function and the accompanying portEND_SWITCHING_ISR macro to give a semaphore from within an interrupt that handles the end of an I2C transaction. Every time I do, I end up in my program's…
Doug McClean
  • 14,265
  • 6
  • 48
  • 70