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

blackfin bf561 FreeRTOS implementation fail at runtime when loading a task

I've implemented in Blackfin BF561 coreB FreeRTOS from the code: http://www.freertos.org/index.html?http://interactive.freertos.org/forums/79366-analog-devices I converted to bare metal as elf executable using gcc. I'm close but I have a runtime…
william pagnon
  • 335
  • 3
  • 16
6
votes
0 answers

In GDB Python script, array indexing fails if frame’s language is Ada

I have a script to work out how much free stack space there is in each FreeRTOS task. GDB’s language is set to auto. The script works fine when the current language is c, but fails when the current language is ada. I have, in the class Stacks, tcb_t…
Simon Wright
  • 25,108
  • 2
  • 35
  • 62
6
votes
1 answer

freeRTOS scheduling configurations for tasks

I have my freeRTOS currently working on my Microzed board. I am using the Xilinx SDK as the software platform and until now I have been able to create tasks and assign priority. I was just curious to know if it would be possible to assign a fixed…
Tarik
  • 61
  • 2
6
votes
3 answers

Difference between FreeRTOS and CMSIS-RTX

What is the difference between FreeRTOS and CMSIS-RTOS? Can anyone explain how the two RTOSes are similar or different?
Bilal Qamar
  • 322
  • 1
  • 2
  • 9
6
votes
2 answers

Running a program written for freeRTOS (RTOS) in virtualmachine as a binary

I got a simple program written for freeRTOS (implements a timer). I want to run this program in an empty virtual machine (VirtualBox, or QEMU, or something else). I need to make a binary file that can run in and empty VM. Any advice or direction of…
singa1994
  • 747
  • 1
  • 7
  • 18
6
votes
1 answer

STM32F407 memory layout

I am trying to use Percepio trace lib for FreeRTOS in Snapshot recorder mode. After compilation and running it on my discovery board I need to somehow dump entire RAM to file. I've started ST-LINK utility but I am puzzled on how to dump entire…
user505160
  • 1,176
  • 8
  • 25
  • 44
6
votes
2 answers

How to retain a stacktrace when Cortex-M3 gone in hardfault?

Using the following setup: Cortex-M3 based µC gcc-arm cross toolchain using C and C++ FreeRtos 7.5.3 Eclipse Luna Segger Jlink with JLinkGDBServer Code Confidence FreeRtos debug plugin Using JLinkGDBServer and eclipse as debug frontend, I always…
Joe
  • 3,090
  • 6
  • 37
  • 55
6
votes
1 answer

freertos vTaskDelete(NULL) no free memory

I am starting to learn FreeRTOS. Just now I am trying to make a print task function with this code: static void vTaskPrint(void *pvParameters) { taskENTER_CRITICAL(); printf("%s", (char *)pvParameters); printf("xPortGetFreeHeapSize:…
oscargomezf
  • 117
  • 1
  • 5
6
votes
1 answer

Deadlock of powerfail sequence during write to flash page

I'm currently working on an embedded project using an ARM Cortex M3 microcontroller with FreeRTOS as system OS. The code was written by a former colleague and sadly the project has some weird bugs which I have to find and fix as soon as…
arge
  • 635
  • 1
  • 7
  • 16
6
votes
2 answers

Running applications from freeRTOS

I am currently in the process of developing the OS for a consumer electronics product my company is developing. I have settled on freeRTOS as the backbone for our OS, and am working diligently to implement hardware functionality within the OS.…
DevenJ
  • 125
  • 2
  • 8
6
votes
1 answer

Tasks behaving incorrectly in round-robin schedule

I have FreeRTOS running on a STM32F4DISCOVERY board, and I have this code: xTaskCreate( vTask1, "Task 1", 200, NULL, 1, NULL ); xTaskCreate( vTask2, "Task 2", 200, NULL, 1, NULL ); vTaskStartScheduler(); where vTask1 is this function: void vTask1(…
0x5C91
  • 3,360
  • 3
  • 31
  • 46
6
votes
1 answer

use va_list from another thread

I am working with FreeRTOS (newlib) on a small embedded system and have found that printf and family waste a tremendous amount of stack space. I have many tasks, and I do not have enough ram to make the stack for each large enough to support…
goertzenator
  • 1,960
  • 18
  • 28
6
votes
3 answers

Building FreeRTOS for x86

I read online that it was possible to build FreeRTOS on Windows for an external device. Can you build it for x86 on ubuntu? Thanks
Coder404
  • 742
  • 2
  • 7
  • 21
5
votes
3 answers

Using shared_ptr with FreeRTOS queue

I use ESP-32 and need to pass std::shared_ptr using FreeRTOS queue. However, it loose one link. I think that this is source of a problem: #include #include #define PRINT_USE_COUNT(p) std::cout << "Use count: " << p.use_count() <<…
val - disappointed in SE
  • 1,475
  • 3
  • 16
  • 40
5
votes
4 answers

stm32l4 RTC HAL not working

I'm having a strange behavior with the RTC on a stm32L476 with FreeRTOS. It only reads the first time in RUN mode, RTC is working, because from run to run it saves the value of the internal register and is going up. Also if I do DEBUG when I put…
taquionbcn
  • 543
  • 1
  • 8
  • 25
1 2
3
73 74