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

ESP32 sends packets with random data past the first 4 bytes

I have some code that I am using to transmit sensor data from an ESP32 through Bluetooth Low Energy to a raspberry pi. I have noticed that the data I get on the receiver past the first 4 bytes is incorrect and contains random values, but this does…
Jal
  • 65
  • 1
  • 8
2
votes
1 answer

Cannot write to serial

I am using the ESP32 DevKitC-v1 (clone) with FreeRTOS and attempting to write bytes to the serial port. My code (below) causes the following exception: Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled. Core 0…
Xavier Hutchinson
  • 2,207
  • 1
  • 17
  • 21
2
votes
2 answers

How to trace and analyze FreeRTOS tasks on CCS (Code Composer Studio) 9

I inherited a Texas TIVA TM4C-based FreeRTOS multi-thread project. It's the first time for me managing such multi-task environment, I've only experienced single-thread programming with no OS. I'm in the need of debugging some strange behaviour in my…
MMM
  • 35
  • 7
2
votes
2 answers

FreeRTOS task priority and stack size

I have STM32F746ZG Nucleo-144pin board and generated the codes using STMCubeMx. I chose the FreeRTOS which is version 10.0.0 offered by CubeMx and the toolchain is SW4STM32. I made two tasks and the following is my function. My code here: void…
Hans
  • 398
  • 2
  • 4
  • 14
2
votes
2 answers

FreeRTOS mutex priority inheritance problem if changing priority of task

Here is the scenario I am not sure will be the problem. Foo() { TakeMutex() //some critical code GiveMutex() } Task A priority 5 Task B priority 1 TaskB{ Foo() } TaskA{ Foo() } now in some other task, it may change the priorities of Task A…
Hadi Jaber
  • 145
  • 3
  • 10
2
votes
1 answer

How do i use the RollBack Feature of ESP32 Efficiently?

As i Understand the rollback feature is supposed to get implemented and the app is supposed to get into Diagnosis mode as soon as i enable APP_ROLLBACK_ENABLE Feature, yet my app is not going into diagnosis state. The state is mentioned in code : As…
2
votes
2 answers

How much of NVS Data can we really use in ESP32?

I'm checking my NVS storage capacity. This is my output when i do make partition. toolchain path: /home/dhananjay/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc Toolchain version: crosstool-ng-1.22.0-80-g6c4433a Compiler version: 5.2.0 Python…
2
votes
1 answer

Inter-processor communication between AutoSAR and FreeRTOS

0 I am using NXP 5748G EVB board (Tri-core) in which AutoSAR running on core0 and FreeRTOS on core1. My task is to establish inter-processor communication between two operating systems. I have gone through Remote processor messaging (RPMsg-Lite) in…
2
votes
1 answer

Where is the vTaskGetRunTimeStats output printed out?

In FreeRTOS vTaskGetRunTimeStats, pcWriteBuffer is getting populated with the time, but where is it printed out? I mean which part of the tasks.c prints out the contents of pcWriteBuffer ?
Nil
  • 125
  • 2
  • 15
2
votes
1 answer

FreeRTOS x86 in virtual environment

I've been reading about FreeRTOS and seems like its widely used on microcontrollers and microprocessors like RasPi/BBB etc. I also read that it can be run on x86 platform and I want to test it. Can I run FreeRTOS as a VM on virtual box or…
Abhay Nayak
  • 1,069
  • 1
  • 11
  • 25
2
votes
2 answers

How to push/pop movable type to/from legacy C-based container via memcpy?

Several of my objects contain unique_ptr instances as members and specify a move-constructor: struct Foo { Foo(Foo&& other): someA(std::move(other.someA)), someB(other.someB){} unique_ptr someA; B someB; } This means I can move Foo…
Alexander
  • 1,068
  • 6
  • 22
2
votes
2 answers

STM32 WFI exits immediately after being called

I run FreeRTOS and set up tickless idle. I want to put the STM32L432KC chip into the STOP2 mode but the problem is that WFI instruction exits immediately. I want to wake up the chip using RTC WAKEUP interrupt. RTC is initialized like that: /*…
K. Koovalsky
  • 596
  • 4
  • 17
2
votes
3 answers

Unexpected behavior when using freeRTOS with two tasks

I am using MPU9250-breakout board with Arduino Uno. The library I used is from here. Below is my code. #include #include "mpu9250.h" MPU9250 IMU(Wire,0x68); int status; void task_1(void *pvParameters) { (void)…
Lion Lai
  • 1,862
  • 2
  • 20
  • 41
2
votes
0 answers

stm32f103: Force DMA transfer complete interrupt

I'm trying to implement communication between stm32f103 and SIM900A using FreeRTOS (mutexes and stream buffers), DMA and USART3. I've enabled USART_IT_IDLE USART3 interrupt to be able to detect end of SIM900 transmittion and make force firing of DMA…
2
votes
1 answer

When should I use threads within tasks? - FreeRTOS

I'm about to develop an FreeRTOS based embedded system that will run on a ESP32 chip. According to the API Reference I can create tasks and as well as pthreads. Is there any rule of thumb that tells me if I should implement a functionality as a…
prodx
  • 87
  • 2
  • 9