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

FreeRTOS two CPU clocks

Dependent on a HW assembly variant my firmware should operate with 2.1 or 4.2 MHz. In FreeRTOS configCPU_CLOCK_HZ is already set while compile time. Is there any possibility to set this frequency while initialisation time?
Pacinwa
  • 45
  • 5
2
votes
1 answer

Porting code using FreeRTOS even groups to C++ threads

I'm porting a FreeRTOS-based application to C++ std threads. The basic structure of the application contains a an "event loop" thread, which works as such: while (true) { const EventBits_t bits = xEventGroupWaitBits(event_group, EVENTS, pdTRUE,…
galah92
  • 3,621
  • 2
  • 29
  • 55
2
votes
1 answer

Implementing MQTT using ESP-IDF and GoogleCloudPlataform (pub / sub)

PROBLEM SOLVED I am trying to communicate my esp32 with google iot (pub / sub) using the native language of ESP-IDF. I'm using this framework https://github.com/espressif/esp-google-iot. I can connect to wifi, I put all the necessary informations:…
2
votes
2 answers

Erasing STM32 Flash Sector is hanging program

I am using FreeRtos and in one of the tasks I Erase a sector of the flash using the following code HAL_FLASH_Unlock(); // Fill EraseInit structure static FLASH_EraseInitTypeDef EraseInitStruct; EraseInitStruct.TypeErase =…
Hadi Jaber
  • 145
  • 3
  • 10
2
votes
1 answer

How can I modify task callback_function FreeRTOS?

The code snippet below creates two tasks, that is trying to print the word. Task 2 is created with a higher priority. Because both tasks run in an infinite cycle and do not give up voluntarily start time, then Task 1 will never get (start time...If…
Vlad Paskevits
  • 388
  • 2
  • 12
2
votes
3 answers

How to debug a freeRTOS application?

How do you debug an RTOS application? I am using KEIL µVision and when I hit debug, the program steps through the main function until the function that initializes the RTOS kernel and then you can't step any further. The code itself works though. It…
neolith
  • 699
  • 1
  • 11
  • 20
2
votes
2 answers

Call template provided (static) function

I am trying to create a C++ wrapper for a freertos Task. The challenge here is that freertos needs to take a c function pointer as described here https://www.freertos.org/xTaskCreateStatic.html Now I came up with this template
Dr.Death
  • 93
  • 9
2
votes
1 answer

Why is my FreeRTOS task not seeing the class members?

I'm trying to understand FreeRTOS building a C++ class which contains a LED blinking task. But in the task body (which is also a class member), other class members i.e. LED1_delay are empty/not-initialized. It seems like the task body was linked to…
Caniko
  • 867
  • 2
  • 11
  • 28
2
votes
1 answer

Need for an RTOS on an STM32?

I am starting a project which uses LittleVGL as its GUI library. I'm using an STM32H743, running at 480MHz. (It's rather over-powered, but only $1/15% more expensive than something half as fast with less RAM and flash, which would itself need…
fadedbee
  • 42,671
  • 44
  • 178
  • 308
2
votes
2 answers

getter and setters best practice with mutex

I'm feeling a bit overwhelmed when using multiple threads in embedded programming since each and every shared resource ends up with a getter/setter protected by a mutex. I would really like to understand if a getter of the following sort static…
Luigi
  • 376
  • 3
  • 16
2
votes
1 answer

FreeRTOS + GNAT Ada compiled library

I have a running ARM CortexA9 board with FreeRTOS and I need to add a old and large library written in ADA. I have successfully generated the library and implemented it in the code but I'm struggling with some problems; First off, what RTS profile…
2
votes
2 answers

Use an external function to take a mutex within a task

I was wondering if I can take a mutex within a task but by calling an external function. Here is my code below: void TakeMutexDelay50(SemaphoreHandle_t mutex) { while(xSemaphoreTake(mutex, 10) == pdFALSE) { vTaskDelay(50); …
hlarouss
  • 21
  • 2
2
votes
3 answers

AWS freeRtos "failed to provision device certificate error:48"

I am new to AWS IoT and working with STM32L475 Discovery kit board and trying to run the AWS freertos demo for the board based on the AWS getting started guide.I followed all the steps provided in the AWS documentation but encountering the following…
Govind Kalyankar
  • 574
  • 1
  • 4
  • 17
2
votes
1 answer

How to install freeRTOS on a laptop without win32 or linux port to get real time behavior?

I'm getting started with freeRTOS. I went through the documentation provided in freeRTOS.org, and had some practice with some demo projects. My question is how to install freeRTOS without using the win32 port (since it is only an emulator that…
2
votes
1 answer

What's the downside (if any) of using "FromISR" FreeRTOS calls in non-ISR contexts?

In order to make a function I am writing able to be used both inside and outside ISRs, is it safe to just use the ISR-safe version of the FreeRTOS API calls? // NOT ISR-safe uint32_t messages_waiting(void) { return…
Gabriel Staples
  • 36,492
  • 15
  • 194
  • 265