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

FreeRTOS vTaskDelayUntil() finishes immediately

I have a problem with vTaskDelayUntil() function not making a delay but finishing immediately. Here is the code: TickType_t xLastWakeTime = xTaskGetTickCount(); while(1){ if (xSemaphoreTake(xSemaphoreRS485, portMAX_DELAY) == pdTRUE) { …
grzegorz
  • 331
  • 3
  • 16
2
votes
1 answer

How to handle WFI inside RTOS

I'm looking for advice how to put in place a lower power management inside an embedded application. My idea is to handle WFI enabled inside the IDLE task based on the RTOS info + application constraint. have an application function to know if…
Domino
  • 31
  • 2
2
votes
2 answers

context of function portTASK_FUNCTION in sourecode of freeRTOS (void)pvParameters

In tracing source code of task.c for freeRTOS, i see a function named portTASK_FUNCTION. its code is as below static portTASK_FUNCTION( prvIdleTask, pvParameters ) { /* Stop warnings. */ ( void ) pvParameters; //<--what for?? for( ;;…
Ezra Ma
  • 37
  • 1
  • 5
2
votes
1 answer

freeRTOS: How to pass data between tasks?

I am looking for an example that present a proper way to pass data between tasks: Lets say I have a display, keyboard and some sensors eg. internal ADCs. I would like to show values from all sensors at some time on a display. After pressing a…
user3700538
  • 67
  • 1
  • 2
  • 10
2
votes
5 answers

Preemption in FreeRTOS

I am starting to use FreeRTOS and I would like a interrupt to preempt whatever task was about to run and run the task I need to run critically. Is there a way to do this in FreeRTOS? (Is this achieved through task priority?)
Godspped
  • 683
  • 4
  • 12
  • 31
2
votes
1 answer

FreeRTOS Hungarian Notation

I'm a complete newbie in RTOS and C programming, and I'm still getting used to the C good practices yet. So I opened a project which uses FreeRTOS, and I notice that the OS files use the Hungarian Notation. I know the notation a little, but faced…
ulissesBR
  • 93
  • 11
2
votes
1 answer

How to use vApplicationTickHook() function to measure task execution time in freeRTOS?

I have taking an online course on real time systems where FreeRTOS is used to demonstrate the various functionalities of an RTOS. The problem I am facing right now is as follows: There are two tasks (A and B) created in the main function and the…
dwd
  • 67
  • 3
  • 5
2
votes
1 answer

lwip netconn api - cannot receive answer from SNTP server

I'm trying to write simple SNTP client for ESP8266 with lwip netconn API (using esp-open-rtos). The problem is that i cannot receive answer from server. Code (without error checking and debug messgaes): #include #include…
Anton
  • 575
  • 2
  • 7
  • 27
2
votes
1 answer

How to detect a memory leak in FreeRTOS

I'm using a FreeRTOS V9 on an EFM32gg board and a gcc compiler, to develop my first embedded application :) I want just to know how I can detect a memory leak in my application (basic one), is there any techniques or algorithms to do that?
Azzedine madi
  • 93
  • 1
  • 3
  • 10
2
votes
2 answers

Qualitative comparison between Petalinux and FreeRTOS

I'm going to start the development of an application on a Zynq board. My task is basically to port an existing application running on a Microblaze on the dual core ARM. What I'm wondering about is which O.S. to use on the new system, because I have…
arandomuser
  • 521
  • 1
  • 7
  • 22
2
votes
1 answer

Memory Pool in FreeRTOS like in uC/OS II

Recently I wrote a C-Application for a Microblaze and I used uC/OS-II. uC/OS-II offers memory pools to allocate and deallocate blocks of memory with fixed size. I'm now writing a C-Application for an STM32 where I use this time FreeRTOS. It seems…
Semaphor
  • 900
  • 2
  • 12
  • 33
2
votes
1 answer

What is a structure of u-boot flash file? ( ARM versatile pb )

I'm working on creating file that I can load with -kernel option of qemu. I mostly mind here u-boot config file that I have found information should be placed somewhere in file. That file have to contain u-boot binary, freebsd kernel and RTOS to run…
csstudent
  • 155
  • 1
  • 8
2
votes
3 answers

FreeRTOS locks and tasks

When should I use locks using freertos on something like cortex-m3? It seems to be clear using multicore systems but what about single core? For example I have two tasks. In first I increment variable named counter. Second task saves current value…
Long Smith
  • 1,339
  • 3
  • 21
  • 40
2
votes
1 answer

FreeRTOS CPP Function Pointer

I want to use a member function of a CPP Class for a FreeRTOS taskFunction. Here is my initial solution #ifndef TaskCPP_H #define TaskCPP_H #include "FreeRTOS.h" #include "task.h" template class TaskBase { protected: …
Pascal
  • 2,059
  • 3
  • 31
  • 52
2
votes
1 answer

ARM Cortex-M3 crashed with --use_frame_pointer caused by FreeRTOS's TimerTask

Our current project includes FreeRTOS, and I added --use_frame_pointer to Keil uVision's ARMGCC compiler option. But after loading firmware into STM32F104 chip, then runs it, it crashed. Without --use_frame_pointer, everything is OK. The hard fault…
bettermanlu
  • 627
  • 1
  • 9
  • 28