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

Shortage of Heap memroy on FreeRTOS

I am running my application on Marvell MW300 board, using FreeRTOS V9.0.0. In my application when I try to connect HTTPS server, mbedtls shows error. [wm_mbedtls] ssl_tls.c:5431: |1| 0x00121188: alloc(4429 in bytes) (4429 out bytes) failed. While…
beparas
  • 1,927
  • 7
  • 24
  • 30
-2
votes
1 answer

ESP32 xTaskGetTickCount doesn't return correct values

why does this simple code not working, and if xTaskGetTickCount doesn't work, what should be alternative? static void PrintTextEvery8sec(void *pvParameters) { TickType_t time_start = xTaskGetTickCount(); …
user505160
  • 1,176
  • 8
  • 25
  • 44
-2
votes
2 answers

What is porting in RTOS

I recently started learning about RTOS’s and came across the subject “porting”. I always tought that I could copy the RTOS files from github, paste it in my project and use it without any problems on any device. So I am a little confused about…
Arjon Arts
  • 39
  • 3
-2
votes
1 answer

expected primary-expression before ',' when writing gpio_pin

i am new to c++ or freertos but i am trying to only use 1 pin to power an external led but i get the error expected primary-expression before ',' token GPIO_PinWrite(led, led_pin, 0u) i also get this ^^ with the other pin write this was fixed…
Marc Roelse
  • 95
  • 1
  • 12
-2
votes
1 answer

why SHELL_Main() doesn't work in xTaskCreate in FreeRTOS?

Short question: What is the meaning this expression? if (ptr->exit) It really looks like it's just asking if the exit value of the struct is true, what I don't understand is that in the senario described below, it seems a false value entered the…
Suicide Bunny
  • 894
  • 1
  • 10
  • 23
-2
votes
1 answer

free RTOS porting on STM32F407VGT6

I want to port freeRTOS on STM32F407VGT6 MCU.I searched the web but didnt found any suitable link to do this. Please suggest a suitable method to achieve this or any web link describing the steps. Thanks Amit Edit : - I want to port freeRTOS on…
user7499054
-2
votes
2 answers

Embedded logging application program design suggestions

Can anybody suggest ideas on how to solve this design problem: I have an embedded system that generates events (off all sorts, lets just abstract events for the sake of this, they are a data structure that can be serialised). These events are…
Ashley Duncan
  • 825
  • 1
  • 8
  • 22
-2
votes
1 answer

I would like to know about backup policy in any RTOS

I am studying RTOS and its backup policy. Is there any RTOS which has backup policy like save data from SRAM to non-volatile memory before power failure? It does not have to be an RTOS. any OS is ok :) Does anybody have an documentation about it?…
-2
votes
1 answer

vfprintf crashes in a FreeRTOS based multi-tasked environment running on NXP K64 ARM Cortex-M4

I am having problem in getting "vfprintf" provided by the NewLib library working on a multi-tasked environment based on the FreeRTOS running on a NXP K64 ARM Cortext-M4 processor. The code is compiled using arm gcc compiler. The FreeRTOS is…
Max-Sbz
  • 11
  • 1
-2
votes
2 answers

Freertos + STM32F2 - Total heap size is wrong after allocating stack to thread

I'm currently working on freertos with stm32f4. After creating the project with cubemx with below configration. Its seem RTOS has around 25k bytes for me to allocate stacks to threads. But somehow when i create thread with stack size 1000. It has…
Pawan
  • 111
  • 1
  • 4
  • 15
-2
votes
2 answers

Get memory space for an array only initializing first item

I am working on a micro controller, so, no malloc. Actually, I want to create a memory manager, so I am kinda implementing the malloc function for later use and using the BLOCK strategy to get it, like FreeRTOS does. typedef struct BLOCK { …
UDKOX
  • 738
  • 3
  • 15
-3
votes
1 answer

What header contains TickType_t?

error: 'TickType_t' has not been declared Which header has this? FreeRTOS, C++11, ESP32
b264
  • 334
  • 1
  • 2
  • 11
-3
votes
2 answers

blocking Inter task communication in RTOS

I'm writing a module which contains a task with the highest priority and it should be in blocking until it receives a message from an other task the start doing its duty as a highest priority task. It uses mailbox mechanism for signaling . My…
Alireza
  • 47
  • 1
  • 7
-3
votes
2 answers

FreeRTOS simultaneous tasks

I want to create two tasks that run simultaneously in FreeRTOS. The first task will deal with the LED, the second task will monitor the temperature. I have two questions: Will this code create two tasks that run simultaneously? How do I send the…
Mathew
  • 1
  • 1
-4
votes
1 answer

Implement a state machine over an RTOS

I am beginner and I am little bit confused about the difference between a task in RTOS and state machines. let's take an example of state machine I am willing to implement: enum states{ READY_STATE RUNNING_STATE BLOCKED_STATE …
Pryda
  • 899
  • 5
  • 14
  • 37
1 2 3
73
74