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

About pxHigherPriorityTaskWoken

In the description of xSemaphoreGiveFromISR at http://www.freertos.org/a00124.html is written: "From FreeRTOS V7.3.0 pxHigherPriorityTaskWoken is an optional parameter and can be set to NULL." The question is: If the parameter is NULL and there is…
i486
  • 6,491
  • 4
  • 24
  • 41
3
votes
1 answer

Fail to allocate semaphore/netconn Tiva C TM4C1294

I am using tm4c1294+lwip1.4.1+FreeRTOS. As netconn_alloc() is called for socket communication, it allocates an unused semaphore. the number of semaphore is defined as SYS_SEM_MAX, so it can not be over SYS_SEM_MAX. However, as semaphores are…
Jin
  • 113
  • 11
3
votes
1 answer

FreeRTOS queues for IO before scheduler starts (or after it stops)

I'm looking for advice on how to best implement thread-safe IO (e.g. for printf going to a debug serial port) in an environment in which the operating system scheduler may yet to have started, be running, suspended or may have stopped or crashed.…
hugov
  • 231
  • 1
  • 2
  • 6
3
votes
1 answer

First use of malloc sets up the heap?

I had a bug which I have now fixed but which I need to explain in a report. I am working on an embedded device running FreeRTOS which does its own heap memory management. FreeRTOS has its own version of malloc(), pvPortMalloc() which I was unaware…
Matt Stevens
  • 1,104
  • 1
  • 12
  • 24
3
votes
3 answers

TCP server seems not working in LWIP+FreeRTOS

I have developed a tcp server in my one embedded device using lwip+freeRTOS. Now this is the flow how I communicate with other device ( Other device has Linux system and let's name it LinuxDevice) using my device ( let's name it lwipDevice) Send…
Jayesh Bhoi
  • 24,694
  • 15
  • 58
  • 73
3
votes
1 answer

Qt program only receiving UDP from certain IP addresses

I have a problem with a Qt program only receiving UDP [Artnet] datagrams from my STM32 modules when the STM32 is set to some seemingly random, but specific IP addresses. So, I have the following: Linux Machine Running Qt program with dynamic IP…
DiBosco
  • 838
  • 8
  • 21
3
votes
4 answers

C11 and (Free)RTOS comparision

What is the advantage of using FreeRTOS when using GCC C11? E.g in C11 I have threading and queues etc, so therefore I don't need FreeRTOS, or not?
Jan
  • 89
  • 7
3
votes
2 answers

Implementation of semaphore in Queues in freeRtos

Is queues in freeRtos from the beginning also mutual exclusive, by that i mean, shall i create some kind of mutual exclusion for writing or reading from a queue, or is it already implemented by the function xQueueRead and xQueueSend.
user3712774
  • 69
  • 1
  • 5
3
votes
2 answers

Why are assembly wrappers needed in FreeRTOS?

Before using FreeRTOS on our PIC32MX, we were able to handle interrupts by simply using an ISR like: void __ISR(_INTERRUPT_1_VECTOR, ipl7auto) { // Handle interrupt here } But ever since introducing us to FreeRTOS, my instructor has had us use…
Matt Hintzke
  • 7,744
  • 16
  • 55
  • 113
3
votes
1 answer

FreeRTOS configTICK_RATE_HZ

I am using an MSP430f5438 with version 5.4 of FreeRTOS. I am having a funny problem that I can't figure out. Basically, when I set configTICK_RATE_HZ to different values, the LED blinks faster or slower; it should stay the same rate. It blinks…
michael
  • 2,577
  • 5
  • 39
  • 62
3
votes
1 answer

Quantifiable differences between RTOS kernels for small ARM microcontrollers

There are many different RTOS available for microcontrollers. I am specifically looking for RTOS that support the ARM Cortex M processors. Also, I am not interested in closed source solutions. Attempting to compare the relative merits of each RTOS…
Nakedible
  • 4,067
  • 7
  • 34
  • 40
3
votes
1 answer

Porting FreeRTOS to Arduino MEGA 2560 Rev3 (ATmega2560)

I'm currently implementing a FreeRTOS-based program on the Arduino platform. I would like to use the Arduino MEGA 2560 Rev3 (which is based on an ATmega2560) for this project, but I couldn't find a working port.c file. Could anyone please share a…
maddouri
  • 3,737
  • 5
  • 29
  • 51
3
votes
0 answers

FreeRTOS & PIC24EP & Correct interrupt handling

I've been using FreeRTOS for a while now on my project and I have to say I love it. Tough i'm facing a bug which is killing me. My code contains a large amount of code, about 80 files and use several microchip stack and run about 10 tasks. The…
Damien
  • 1,492
  • 10
  • 32
3
votes
0 answers

mbox not valid when using lwip_sendto

I am trying to use the lwip stack in freertos for a UDP based communication over multiple sockets. My first problem was, that socket creation failed because, lwip_socket has a call to netconn_new, which contains a call to TCPIP_APIMSG(&msg), which…
3
votes
2 answers

FreeRTOS - Stack corruption on STM32F4

I am currently having problems with what I think is stack corruption of some error of configuration while running FreeRTOS on an STM32F407 target. I have looked at FreeRTOS stack corruption on STM32F4 with gcc but got no help there. The application…
Niklas Norin
  • 355
  • 1
  • 3
  • 9