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

Can a mutex be used instead of a critical section when using stream buffers in FreeRTOS?

I am looking into using a stream buffer in FreeRTOS to transfer CAN frames from multiple tasks to an ISR, which puts them into a CAN transmit buffer as soon as it's ready. The manual here explains that a stream buffer should only be used by one…
3
votes
2 answers

C: Parathesis around a variable without other operands

I'm studying the source code of FreeRTOS. I found this snippet: https://github.com/TheKK/myFreeRTOS/blob/master/include/list.h#L268 #define listGET_OWNER_OF_NEXT_ENTRY( pxTCB, pxList ) \ { …
Veck Hsiao
  • 591
  • 2
  • 8
  • 20
3
votes
1 answer

How to embed AWS Just In Time Provisioning (JITP) into your microcontroller (running Freertos)

I'm trying to get an application running in amazon freertos that uses the just in time provisioning mechanism to allow provisioning of a fleet of devices. I have run through the steps to set up a demo application in freertos for an Espressif ESP32…
monkey
  • 1,213
  • 2
  • 13
  • 35
3
votes
1 answer

FreeRTOS: Why does my task not start after calling vTaskStartScheduler?

I am writing an application for the RPU on a Xilinx UltraScale+ ZCU102 device that needs to run a few tasks in FreeRTOS. My application starts by creating an 'start-up' task that will then create the rest of the tasks. After successfully creating my…
Candlejack
  • 53
  • 2
  • 7
3
votes
2 answers

CMake Error: include could not find load file: targets

I'm trying to run AmazonFreeRTOS on my ESP32 (at Windows). After creating build folder in my amazon-freertos main folder I've tried to build it from main folder with cmake --build .\build The Error I've got is include could not find load file:…
MASTER OF CODE
  • 302
  • 3
  • 14
3
votes
0 answers

OpenVPN + Radius authentication how to disconnect users

I'm trying to bring up an OpenVPN service that authenticates users via Radius. The Radius server is made by me so I can play with the code and understand the internals better. Upon a successful login I receive accounting data from the OpenVPN…
Romeo Mihalcea
  • 9,714
  • 12
  • 50
  • 102
3
votes
2 answers

Why is the xQueueSendToBack call blocking?

I am learning FreeRTOS on a STM32F103C8T6 (on a Blue-Pill board). I am trying to use queues and tasks. #include #include #include #include #include static…
Victor Lamoine
  • 389
  • 1
  • 2
  • 21
3
votes
3 answers

Problem with Array of Queues in FreeRTOS

I am building a FreeRTOS application. I created a module which registers a freeRTOS queue handle from another module and when an interrupt in this module module occurs, it sends a message to all the registered queues. But it seems I am able to send…
crissangel
  • 31
  • 1
  • 2
3
votes
1 answer

FreeRTOS - vTaskList undefined reference

I am trying to use vTaskList function to monitor tasks being used. In order to use vTaskList, I configure the macro below. #define configUSE_TRACE_FACILITY 1 #define configUSE_STATS_FORMATTING_FUNCTIONS 1 and below is task code to display…
黃銘賢
  • 73
  • 2
  • 9
3
votes
3 answers

How to make many FreeRTOS tasks wait for one other to complete initialization

I have one init task and several worker tasks. At some point the workers must wait for init to complete some setup. I'm trying to do this with a binary semaphore. When the scheduler starts, all tasks are ready to run. So to guarantee that the…
not-a-user
  • 4,088
  • 3
  • 21
  • 37
3
votes
1 answer

Hardware interrupt with FreeRTOS binary semaphore

I'm basically trying to get a LED to light up after I push a button. Below is the snippet of the code that's supposed to handle this: void task_player1(void *pvParameters) { while (1) { if (xSemaphoreTake(player1_signal,…
Tisa
  • 41
  • 8
3
votes
1 answer

Random HardFaults - STM32F4 - FreeRTOS

I have a board with STM32F4 running FreeRTOS (3 tasks on it), and i'm getting a HardFault every 15-50 min of use. My hardware: 3 Encoders, 6 Analog In, 10 digital in and 3 PWM output for DC motors. At start, I thought was some StackOverflow, than I…
3
votes
1 answer

Stack Backtrace for ARM core using GCC compiler (when there is a MSP to PSP switch)

Core - ARM Cortex-M4 Compiler - GCC 5.3.0 ARM EABI OS - Free RTOS I am doing stack backtrace using gcc library function _Unwind_Reason_Code _Unwind_Backtrace(_Unwind_Trace_Fn,void*); In our project, MSP stack is used for exception handling. In other…
Ashwin
  • 31
  • 1
  • 3
3
votes
4 answers

Why is an ISB needed after WFI in Cortex-M FreeRTOS?

I see the following lines in the Cortex-M port of FreeRTOS when using the tickless idle functionality that relies on the WFI instruction __asm volatile( "dsb" ); __asm volatile( "wfi" ); __asm volatile( "isb" ); See…
satur9nine
  • 13,927
  • 5
  • 80
  • 123
3
votes
1 answer

openocd freertos awareness can't start gdb

I have a setup with openocd and arm-none-eabi-gdb and I'm trying to debug a FreeRTOS fw. I start openocd with: openocd -f /usr/local/share/openocd/scripts/board/stm32f0discovery.cfg -c "stm32f0x.cpu configure -rtos auto" That command works…
evading
  • 3,032
  • 6
  • 37
  • 57