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

xSemaphoreGive() gets stuck when used by different threads

I am working on STM32F756ZG with FreeRTOS. I have one network thread that is made using osThreadDef() which is a part of the CMSIS-RTOS API. I also have other tasks running that are created using xTaskCreate() which is a part of the freeRTOS API. I…
Neharika
  • 21
  • 4
-1
votes
1 answer

FreeRTOS Project Setup with error: expected ')' before string constant

I am starting a new project on a STM32L476 Nucleo board and planned to use FreeRTOS. My initial project structure: main.c #include "project.h" int main(void) { /* Configure the system clock */ Clock_Config(); /* Configure IOs */ …
Ginu
  • 1
  • 1
-1
votes
1 answer

How to ? Espressif IOT Plateform

I am a non-software guy with some hands-on with Arduino IDE and ESP-12E. I want to use Arduino IDE and ESP-12E for testing Espressif IOT App. I have gone through almost all resources but could not find a step-by-step guide on: How exactly to flash…
-1
votes
1 answer

Are there specific compiler flags to use gcc sync-builtins when cross-compiling for arm?

I'm trying to cross-compile a program that uses gcc builtins, specific __sync_val_compare_and_swap, __sync_add_and_fetch and sync_sub_and_fetch. Compiling works, but the linker is showing me the undefined reference errors. For…
F.Cz
  • 37
  • 3
-1
votes
1 answer

Thinking of using a Particle Electron for a process controller

As I understand FreeRTOS is merely three C files which reside somewhere on the unit. If I create some C program, to carry out some specific process. My question has three parts. Does the C programs have to be compiled externally or is there an…
robertdaleweir
  • 107
  • 2
  • 6
-1
votes
1 answer

What scheduling should I choose for my program on a FreeRTOS system?

I have a project (a 2-player game) made in FreeRTOS. The game has 3 tasks (Game Render, Joystick Task and a PC Serial Communication). Shared resources include: Player 1 and Player 2 locations/coordinates. They are manipulated by Serial and…
-1
votes
4 answers

Prevent character array from overflowing in c

I'm designing the firmware for ESP32 using the ESP-IDF and FreeRTOS. I want to convert the reading of a sensor into a char array and store it in the Non-Volatile Storage. When a new reading is taken, it is to be added to the front of the char array…
-1
votes
2 answers

Should I retrieve SPI data in interrupt routine?

I'm using the esp32 as an spi master with a 24 bit ADC which uses SPI to transfer data. The ADC indicates that a new sample is ready to be retrieved by lowering an IO pin connected to the esp32. Should this SPI transaction be done directly in the…
Jacob S.
  • 21
  • 1
-1
votes
1 answer

What is 1 thread execution time (quantum) if number of concurrent threads is 10 and SysTick time is 10mSec?

I am currently working with RTOS, their I have Time Tick Value = 10 mSec and Number of concurrent running tasks = 10. Now my question is, What should be my Single Thread Time (quantum)? I think, Single Thread Time = Time Tick Value / Number of…
appleBoy21
  • 632
  • 8
  • 23
-1
votes
1 answer

AWS IoT - JSON incorrect format

I am trying to send this JSON packet to AWS IoT, but it is not recognized by AWS. I am using the example ESP32 AWS FreeRTOS code, but cannot understand what would be the correct format for the JSON packet with the following code: #define…
Brendon Shaw
  • 141
  • 13
-1
votes
1 answer

Why can't call freeRTOS API within a critical section?

Now I'm learn freeRTOS api " taskENTER_CRITICAL()" in FreeRTOS V9.0.0 reference manual. I find such description for this API: "FreeRTOS API functions must not be called from within a critical section" Why? why we can't call freertos api…
-1
votes
1 answer

Can't read files bigger than 2Kb using FreeRTOS+FAT

I am using FreeRTOS v 10.1.0 , in addition I have downloaded FreeRTOS+FAT from the labs area (160919 release) I am using an Altera Cyclone V evaluation board and have succesfully ran FreeRTOS projects on the board using the Demo project and the…
-1
votes
1 answer

How does freertos works on Arduino in order to interupt tasks

I have tried freertos on Arduino in order to run several tasks in parallel. It works great and i want to understand freertos internals. I have looked into source code and i have a lot of questions ! First of all, i suppose there is a scheduler which…
Bob5421
  • 7,757
  • 14
  • 81
  • 175
-1
votes
1 answer

Resetting a board from firmware running under anOS

I have a board running FreeRTOS. In main() I have hardware setup, task creation and parameter initialization, then finally the scheduler starts. One of the tashs is a system monitor, in case something goes crazy. Problem is, how do I effectively…
Dirk Bruere
  • 237
  • 2
  • 15
-1
votes
1 answer

Why task is not entered?

I'm using freertos with Hal stm library, for running three tasks, the first one with stack size 128 the second with 512 while the third one is 1100. The three tasks are created successfully, but when running the scheduler only switches between the…