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
26
votes
8 answers

Small libc for embedded systems

I am looking for a small libc for embedded use with freertos on a ARM7 microcontroller. I have looked at newlib, but it is a bit too complex for my needs. Newlib calls malloc() in a number of functions (e.g. printf()), which is not good for small…
GT.
  • 901
  • 1
  • 6
  • 10
24
votes
3 answers

Which variable types/sizes are atomic on STM32 microcontrollers?

Here are the data types on STM32 microcontrollers: http://www.keil.com/support/man/docs/armcc/armcc_chr1359125009502.htm. These microcontrollers use 32-bit ARM core processors. Which data types have automatic atomic read and atomic write access? I'm…
Gabriel Staples
  • 36,492
  • 15
  • 194
  • 265
20
votes
2 answers

what is v and x means in freeRTOS task creating or used in it?

what does mean x and v in task creating or managing of free RTOS? xTaskcreate or vTaskcreate?
shadab
  • 391
  • 4
  • 15
20
votes
4 answers

Strategy for feeding a watchdog in a multitask environment

Having moved some embedded code to FreeRTOS, I'm left with an interesting dilemma about the watchdog. The watchdog timer is a must for our application. Using FreeRTOS has been a huge boon for us too. When the application was more single-tasked, it…
Travis Griggs
  • 21,522
  • 19
  • 91
  • 167
16
votes
3 answers

Is self increment in C thread safe?

I found some code in FreeRTOS (FreeRTOSV7.4.0\FreeRTOS\Source\tasks.c): void vTaskSuspendAll( void ) { /* A critical section is not required as the variable is of type portBASE_TYPE. */ ++uxSchedulerSuspended; } It is explicitly said no…
user1603164
  • 277
  • 1
  • 6
14
votes
3 answers

FreeRTOS Task should not return - ESP32

I'm using multi-threading on my ESP32. I have created two tasks and pinned them to core 1. With one of them, I get the following error: E (20426) FreeRTOS: FreeRTOS Task "MeasurementTask" should not return, Aborting now! abort() was called at PC…
Lithimlin
  • 542
  • 1
  • 6
  • 24
14
votes
2 answers

SQLite VFS implementation guide lines with FOpen*

I am about to implement a custom VFS (virtual file system) for a Netburner embedded device (non windows) using FOpen, FRead, FWrite, FSeek, and FClose. I was surprised that i could not find a FOpen* version of the VFS available. It would make it a…
Steven Smethurst
  • 4,495
  • 15
  • 55
  • 92
13
votes
4 answers

GCC alias to function outside of translation unit -AKA- is this even the right tool for the job?

I'm working with FreeRTOS on an STM32 (Cortex-M3), and using the CMSIS library from ST to bootstrap everything. The CMSIS library defines the weak symbol SVC_Handler in the startup ".s" file. It must be overridden somewhere in order to get your…
Brian McFarland
  • 9,052
  • 6
  • 38
  • 56
13
votes
5 answers

FreeRTOS: osDelay vs HAL_delay

While creating FreeRTOS application project with STM32CubeMx, there are two ways you can use to introduce delay, namely osDelay and HAL_Delay. What's the difference among them and which one should be preferred? osDelay…
ARK4579
  • 663
  • 2
  • 6
  • 16
13
votes
1 answer

zeromq on embedded cortexM3 platform

Does anyone have already implemented zeroMQ as reliable message solution on cortexM3 nodes? I'm trying to understand if it is possible and to have a memory footprint idea of this. I will have freeRTOS OS maybe. Thanks for ideas and…
user3162481
  • 133
  • 1
  • 4
12
votes
3 answers

C++ exception handler on gnu arm cortex m4 with freertos

Update 2016-12 There is now also a minimal example for this behavior: https://community.nxp.com/message/862676 I'm using a ARM Cortex M4 with freertos using freescales freedom Kinetis IDE (gnu arm toolchain). Problem is that try { throw 4; //…
Superlokkus
  • 4,731
  • 1
  • 25
  • 57
11
votes
4 answers

Prevent GCC LTO from deleting function

I work with GCC-ARM-Embedded and FreeRTOS. FreeRTOS has the function vTaskSwitchContext() which is used only in some inline assembler code. The problem is: When I use LTO, GCC does not consider the inline assembler code and thinks the function is…
Jan Hieber
  • 145
  • 1
  • 8
11
votes
4 answers

Are there any FreeRTOS interpreted language libraries available?

I work for a company that created firmware for several device using FreeRTOS. Lately our request for new features has surpassed how much work our firmware engineers are capable of, but we can't afford to hire anyone new right now either. Making…
Great Turtle
  • 3,315
  • 7
  • 32
  • 36
10
votes
2 answers

FreeRTOS: Why to call taskYIELD_FROM_ISR() method within the isrHandler

I try to understand why the user has to call the taskYIELD_FROM_ISR() method and why it isn't automatically called by the RTOS within the xStreamBufferSendFromISR method. My question refers to the FreeRTOS_Manual p. 369. /* A stream buffer that has…
PascalS
  • 975
  • 1
  • 16
  • 40
9
votes
2 answers

Issue regarding CMake Error: No source given to target

I am trying to add FreeRtos to a project of mine using cmake and eclipse but I am getting an error. I am running debian 10 and my cmake version is 3.13.4. The files for cmake can be found at this git repo. When I run the following…
programmer25
  • 375
  • 1
  • 2
  • 14
1
2 3
73 74