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

STM32 FreeRTOS lwIP Heap / Stack / Memory Management

I am working on a custom board with the STM32F107VCT processor. I am using FreeRTOS & lwIP I am using tinyxml2 library and reading / writing to an EEPROM and running into strange corruption issues and crashes. I suspect I may be running out of…
Daniel Beyzade
  • 107
  • 1
  • 10
3
votes
0 answers

HTTP/2 on FreeRTOS

I am wondering is there HTTP/2 open source code/library (I will more likely to use it as client) that's light weighted, written in C, and runs on freertos? I have did research of my own (C/C++ HTTP Client Library for Embedded Projects) and I also…
user3222184
  • 1,071
  • 2
  • 11
  • 28
3
votes
4 answers

FreeRTOS context switching

I'm using FreeRTOS for a project of mine and I'm reading the documentation and there's something I can't understand. I know that context switching happens as the tick interrupt is triggered, so the scheduler performs its work and unblocks tasks that…
Luca
  • 1,658
  • 4
  • 20
  • 41
3
votes
3 answers

freertos global variable inside isr

I'm new to RTOS and having some troubles understanding a strange behavior: I have a STM32 microcontroller running FreeRTOS and an RTC interrupt running, too. The RTC interrupt just updates a volatile uint32_t variable named SystemTime: void…
Mscaff
  • 31
  • 2
3
votes
1 answer

FreeRtos how to store function address while context switching

I using freertos on my project. My code is stuck in hardfault handler, I want know last executed function address or last executed line address for debugging.How to debug code when PC is pointing Hardfault handler.
3
votes
1 answer

Tools for extracting a FreeRTOS/ARM/C++ stack trace from a stack dump and a .elf file?

I have an ARM Cortex-M4 embedded system running FreeRTOS. I have implemented a crash log dump mechanism that writes a file to a storage device in the event of a fatal error, such as divide-by-zero, null-pointer, address errors, invalid instruction,…
Jim B.
  • 4,512
  • 3
  • 25
  • 53
3
votes
3 answers

FreeRTOS initial context switch

I'm trying to comprehend the workflow of a simple 2 task model on freeRTOS. Adding psuedo code for clarity, Task_A void Task_A( void *pvParameters ) { const char *pcTaskName = "Task_A is running\r\n"; for( ;; ) { vPrintString(…
RohitMat
  • 145
  • 1
  • 14
3
votes
2 answers

Is the long gdb backtrace of FreeRTOS application a sign of stack overflow?

I am using FreeRTOS for a project and I'm trying to debug it using gdb and JLinkGDBServer. My problem is that when I stop the execution and do a backtrace I just get line after line of: #192 0x08005a88 in pxPortInitialiseStack…
evading
  • 3,032
  • 6
  • 37
  • 57
3
votes
3 answers

Pointer to function-member

I have a FreeRTOS function xTaskCreate. Simplified declaration looks like typedef void (*TaskFunction_t)( void* ); unsigned xTaskCreate( TaskFunction_t pxTaskCode, void*params ); And there are two classes: class Super { virtual void…
kyb
  • 7,233
  • 5
  • 52
  • 105
3
votes
3 answers

Configuring GCC with FreeRTOS and OpenOCD

I'm pretty sure this is possible but I'm not sure how to go about it. I'm very new to building with GCC in general and I have never used FreeRTOS, but I'd like to try getting the OS up and running on a TI ARM Cortex MCU but with a slight twist: I'd…
Anthony
  • 2,256
  • 2
  • 20
  • 36
3
votes
1 answer

FreeRTOS slow systick

I am experiencing a problem with FreeRTOS where it seems the systick() rate is 1/2 the expected rate. All timer or task delay functions take about 2X the time. This was verified in versions 8.2.0 and 8.2.3 using a STM32F100 processor. There is…
3
votes
1 answer

Hard Fault on task switch with FreeRTOS on STM32

I'm moving my application from the Tiva TM4C123gh6pm (Cortex-M4) to STM32F446 (also Cortex-M4). I use a common initialization routine for both and it works well for basic applications. __attribute__(( naked )) void ResetISR(void) { /* * This…
user1273684
  • 1,559
  • 15
  • 24
3
votes
1 answer

Time slice duration

which parameters define time slice duration in FreeRTOS, and how to calculate how long it will run one task before switching out that task and switching in another task. I've found configTICK_RATE_HZ which sets number of ticks per second but how it…
user505160
  • 1,176
  • 8
  • 25
  • 44
3
votes
3 answers

RTOS within an RTOS

I'm planning to run an RTOS e.g Nuttx as a Process of another RTOS e.g FreeRTOS such that freertos tasks and the Nuttx running as a Freertos task would co-exist. Would this be feasible implementation given that the underlying hardware is an ARM…
user66350
  • 31
  • 1
3
votes
5 answers

Basics of Real Time OS

I am trying to learn an RTOS from scratch and for this, I use freeRTOS.org as a reference. I find out this site as a best resource to learn an RTOS. However, I have some doubts and I was trying to find out but not able to get exact answers. 1) How…
Shaswat Dube
  • 93
  • 1
  • 4