Questions tagged [freertos]

FreeRTOS is free real-time operating systems for embedded systems that currently supports over 30 different CPU architectures. It has a small memory footprint making it suitable for microcontrollers that do not have an external memory bus.

Filter by
Sorted by
Tagged with
0 votes
2 answers
61 views

Device driver for a MCU

I was working on an embedded system project and wanted to develop a peripheral driver for Ethernet connection supported by stm32 bluepill board. I wanted to use FreeRTOS. I understand that there are ...
Deepak Kumar's user avatar
0 votes
1 answer
37 views

Unable to read the data more than 4096 (1 cluster size)

I am trying to write to an OSPI Flash drive MX25LM51245GM with the FreeRTOS+FAT. The write to the SPI flash is successful for data size of >4096. But the read always returns 0 no matter what the ...
siddharth taunk's user avatar
0 votes
0 answers
35 views

STM32 FreeRTOS UART failing to return from interrupt

MCU is an STM32L422 FreeRTOS (CMSIS-V2), 3 simple tasks, they run just fine on their own. USART1 is configured to receive data via IDLE detection and DMA circular buffer. Again it works fine on it's ...
Charles's user avatar
  • 137
0 votes
1 answer
95 views

FreeRTOS LED Toggle

I have worked on bare metal programming so far. I want to make a step into RTOS. I have a Nuvoton made M032SG8AE MCU.I want to port FreeRTOS to it. I created a project and ported heap_1.c, port.c, ...
Bowman's user avatar
  • 309
0 votes
0 answers
30 views

STM32: Can I use xQueuePeek while using CMSIS V2?

I'm new to STM32 and freeRTOS in general. The project I created with SMT32CubeIDE gave me the option to use freeRTOS but the choices were CMSIS V1 or V2 only. I picked V2. I've read that CMSIS Vx are ...
Rodo's user avatar
  • 913
0 votes
0 answers
64 views

Using TINYGSM Client write function for PubSub's client.publish()

I have an application of data logger done on ESP32 where a JSON string is published to the MQTT server(QOS 0) using PubSub Library via TINYGSM. I am attaching a sample of the packet sent to the MQTT ...
Jash shah's user avatar
2 votes
1 answer
370 views

I can't get my ESP32 to read a CAN bus through an SN65HVD230 in real time

I am working on a project based on the ESP32 processor and Arduino framework, which communicates with another board via CANBUS protocol. The bitrate is 125k so it is presumably "fast". I am ...
WikiLift's user avatar
0 votes
1 answer
66 views

Data collector: how much power will my system use (Linux vs. RTOS)?

This is about a data collection device. It mainly contains a Linux operating system, various data interfaces such as RS232/RS485/CAN/SDI-12/RJ45, etc., and a communication module for 4G and satellite ...
zilong li's user avatar
0 votes
0 answers
77 views

Issues in SBSFU usage with MPU for a FreeRTOS based User Application - STM32H7

I am working on the STM32H753 Evaluation board and I have a software architecture with an SBSFU running in the internal flash, that jumps to the External NOR flash to execute the user application (...
Sreedhar's user avatar
0 votes
0 answers
57 views

How to build a system with two multicore microcontrollers?

I am thinking about building a system that utilizes two microcontrollers that communicate with one another. Currently, I am looking into using two stm32 microcontrollers. They have two cores and I ...
user16824253's user avatar
0 votes
0 answers
90 views

HAL_DELAY stuck after pvPortMalloc

Environment: STM32F103ZET6 FreeRTOS Kernel V10.3.0 MDK or arm-none-eabi-gcc My program stopped working when I added a queue to receive messages from RS232. I managed to reproduce the problem with the ...
Nugnikoll's user avatar
1 vote
0 answers
151 views

Problem with semaphore in FreeRTOS on ESP32

I'm working on a graphic interface that uses an ESP32 alongside a Nokia 1616 LCD. I am editing old code that someone wrote and it works correctly and it is based on FreeRTOS and I am trying to add a ...
salar1991's user avatar
1 vote
2 answers
312 views

8-Bit / Small Zephyr RTOS Microcontrollers? [closed]

I have not kept up with microcontrollers over the last few years, and am teaching a new EE out of college practical firmware on devices. When I learned how to write firmware, I started with a PIC16 (...
Leroy105's user avatar
  • 1,857
3 votes
0 answers
112 views

FreeRTOS is slow to wake after long processor sleep

(Cross-posted on Stack Overflow) I'm using FreeRTOS in an application which requires the processor to sleep in low power mode for a long time (as long as 12 hours), then wake up in response to an ...
harry courtice's user avatar
1 vote
2 answers
484 views

ESP32 - FreeRTOS conflict with tasks and interrupt

I have an ESP32 using an 8 bit I2C multiplexer TCA9548 IC. TCA9548 IC is connected to my ESP32 SCL and SCA pins. I have the following I2C devices connected to the I2C TCA9548 expander so I can choose ...
VAAA's user avatar
  • 145
0 votes
0 answers
372 views

Blocking Task when calling vTaskDelay

I'm running some tasks in esp32, my problem is when im calling vTaskDelay() from a task, an other task start executing, wich is something i dont want, so how to make vTaskDelay() a blocking function ...
younes anouar's user avatar
3 votes
1 answer
187 views

STM32H747 MDMA Transfer Error Address when using FreeRTOS

I'm using the MDMA to communicate with an external flash over QUADSPI. I have an implementation which works great without FreeRTOS, but when I implement it using FreeRTOS I get Transfer Error Address. ...
GBohlin's user avatar
  • 51
1 vote
0 answers
130 views

Does the external hardware interrupt affect both cores in ESP32?

I am working on a project, where I am implementing FreeRTOS on an ESP32 DEVKIT-V1 module. One core is specifically dedicated to reading high precision rotary encoders. I am reading the number of ...
Tony's user avatar
  • 83
3 votes
1 answer
939 views

FreeRTOS scheduler is not triggering the TASK

I am programming an STM32F103 for my project and recently switched from bare-metal to RTOS (FreeRTOS to be specific) without using CubeMX (code attached below.) For now, I am simply running an LED ...
No Man's user avatar
  • 347
1 vote
0 answers
236 views

How to minimize vTaskDelay in FreeRTOS?

I need to sample a signal with a sampling frequency in order to 2500 Hz. But, when i put any time in vTaskDelay(pdMS_TO_TICKS(time)) under 1 [ms], my programa start to bug. How can i fix this? Note: ...
rafa_wildfire's user avatar
1 vote
1 answer
254 views

ESP32 - Idf Arduino QueueHandle_t as function paramater

I am using ESP32 module and coding it using Arduino. I am trying to read from Serial2 (attached to hc-05 bluetooth) and push it to FreeRTOS queue. There is one task(task4F) pinned to core-1. To ...
Siddhartha Sadhukhan's user avatar
1 vote
1 answer
626 views

HAL_I2C_Master_Transmit_DMA sends only one byte

i am having an issue using STM32G4 with I2C DMS and FreeRTOS. I have used the library https://github.com/firebull/STM32-LCD-HD44780-I2C for a long time with STM32F4 and free RTOS and it works ...
Majdgh's user avatar
  • 33
2 votes
1 answer
128 views

Mass storage for timing critical applications

I am working on a data logger that requires measurements to be taken during narrow time windows. I have been storing the measurement data on SD cards, however, the write times are very inconsistent, ...
Liamm36's user avatar
  • 21
1 vote
1 answer
89 views

Mails Usage on FreeRTOS (STM32L4)

I have an application on STM32L4 with multiple queues and threads without problems. I try to add a mail queue via the following function : But it seems the linker can't find the reference : I check ...
Volt's user avatar
  • 169
3 votes
1 answer
383 views

FreeRTOS - Guru meditation error

I've recently started to study esp-idf sdk, there a lot of new concepts related to RTOS that are new to me. I'm using a ESP32-WROOM-32 board. My main problem concerns to the following code: ...
andre.hre's user avatar
  • 107
1 vote
0 answers
136 views

stm32f4-tls and freertos

I want to use TLS on lwip using modbus tcp applications. But when I choose the mbedtls on CubeMx, I couldnt select lwip. If I use the Freertos, than I can selecect both of them. But I dont want to use ...
gogogo's user avatar
  • 283
2 votes
0 answers
235 views

Inconsistent behaviour with LIS3MDL magnetic sensor

I'm working on implementing a driver for the LIS3MDL magnetic sensor using FreeRTOS under the hood with some of our in-house functionality as well. Link to the device documentation if useful (used ...
Kerdo's user avatar
  • 21
0 votes
4 answers
506 views

Handling two interrupts occurring at the same time for different producers

So I have a UART IRQ handler that is fired for each byte sent over UART, which then writes to a Fifo buffer and once the end of the data is detected, a callback is invoked which parses the data and ...
Jazzy's user avatar
  • 137
0 votes
0 answers
103 views

Making sense of an architecture for a FreeRTOS based application

This is more of an architectural design question and any suggestions shall be appreciated. So far, a general idea is that there's a system thread that's like a central task that decides how to ...
Jazzy's user avatar
  • 137
0 votes
0 answers
171 views

Interrupt handler starts behaving unexpectedly when scheduler runs

I have an IRQ handler that gets fired upon receiving a character over serial, and everything is fine until I run a FreeRTOS scheduler inside main, and now what I see is IRQ handler still getting ...
Jazzy's user avatar
  • 137
2 votes
2 answers
806 views

Discussing FreeRTOS architecture for sort of a data logger application

I'm fairly new to RTOS architecture and been reading up on articles on FreeRTOS.org, but as it's commonly agreed, practice clears things up even more. I have a basic project idea which I'd ideally ...
Jazzy's user avatar
  • 137
2 votes
0 answers
3k views

STM32 - Using Timer as time base source for HAL in FreeRTOS application

I am learning more about FreeRTOS by making a task-based program. My problem comes when initializing and configuring the HAL time sources. I read that it is necessary to choose another HW timer as ...
M.Brian's user avatar
  • 41
0 votes
1 answer
55 views

SAMC21 FAT slow on samc21

I'm working on a samc21 and using the fat libraries provided in ASF. I have a program that takes from serial information and has to write to an SD card. The amount of bytes its around 50KB. I'm using ...
EL TIGRE CHINO's user avatar
0 votes
1 answer
152 views

ESP32: How can I shorten wifi-connection time to AWS?

ESP32 is sending temperature and humidity data from sensors to AWS over wifi and it's working otherwise fine, but wifi-connection is "on" for about 20 seconds. I'd need to shorten the ...
tipo1000's user avatar
1 vote
0 answers
89 views

FREERTOS disassembly problem

I just started to learn FREERTOS with atmel studio. At first, I tried to make the most simple code "toggling LED". I can build solution of the code, but when I try to debug my code, it stops ...
Luke's user avatar
  • 11
1 vote
0 answers
256 views

Why does FreeRTOS API function xEventGroupSetBitsFromISR cause error when I use it in an ISR?

I am using FreeRTOS on MSP430 microcontroller and I have an error that occurs when I use API function xEventGroupSetBitsFromISR() inside of ADC interrupt routine. I have searched online and I saw that ...
Nikola Vulinovic's user avatar
1 vote
0 answers
246 views

Seemingly having trouble setting an ISR interrupt greater than configMAX_SYSCALL_INTERRUPT_PRIORITY

How does one set the priority of an ISR when free RTOS is ebing used? So I have an ISR for push button that I'm setting to a higher value than ...
xyf's user avatar
  • 325
1 vote
1 answer
1k views

Clarification on the usage of Semaphores vs task notifcations vs queues

I'm trying to understand the basic concepts of FreeRTOS. When do you use queues vs task notifications? I see queues are used for task-task, task-interrupt synchronization i.e one task waiting on a ...
MKD's user avatar
  • 165
0 votes
0 answers
231 views

Understanding a generic flow of a simple data logger via FreeRTOS

So I came up with this simple flow of the program that could be done without RTOS but I'm using it for the sake of learning. The generic idea is to get the user input over UART, and if it's something ...
MKD's user avatar
  • 165
1 vote
2 answers
3k views

HardFault with FreeRTOS at STM32 - New Project

Is this a bug. First I created a new project and enabled FreeRTOS and then I set the Time Base Source to TIM3. Then I got hard ...
euraad's user avatar
  • 1,045
1 vote
0 answers
2k views

DMA + ADC + FreeRTOS in STM32 - Cannot read any ADC value - Why?

I'm using Nucleo STM32F401RE board. I have a small issue. I have connected SPI connections + two potentiometers and FreeRTOS. But I can't read the ADCs. I wonder why? I have created an array called <...
euraad's user avatar
  • 1,045
0 votes
0 answers
186 views

Running two threads at the same time is causing a hardfault

So i'm learning FreeRTOS on STM32 and currently following a tutorial to get things started. Following are my concerns with the first one being the most: I have two threads, but upon running a ...
MKD's user avatar
  • 165
0 votes
1 answer
136 views

Semaphore in FreeRTOS doesn’t work

I am a newbie to freeRTOS and I was trying to learn about semaphores,I am using ATmega32a microcontroller, the plan was to create 3 tasks each is blinking the same led for some time with different ...
mr.Arrow's user avatar
0 votes
1 answer
463 views

FreeRTOS priority and its effect on Thread

I am learning basics of Free RTOS wth a STM32MCU. I defined two threads, each one take mutex, wait for 1000ms and give the mutex again. I have noticed that when the priorities of the threads are not ...
Bornak's user avatar
  • 85
1 vote
1 answer
119 views

RTOS understanding and communication

We are working on a system that will need some predictive emergency stop. As a possible solution the RTOS was mentioned. Not sure if RTOS is a way to go, might just be that we do not have full ...
birinorama's user avatar
0 votes
0 answers
57 views

vTaskPrioritySet needs extra TaskHandle_t to function

Im using STM32F429I-DISC1 and Keil uVision v5 Ive written a simple example to demonstrate task priority setting using handles however the code only functions if I first delcare an unused TaskHandle_t ...
andowt's user avatar
  • 988
2 votes
0 answers
794 views

how to handle 'heavy' task in FreeRTOS

I know that each task in FreeRTOS should have a vTaskDelay() to release CPU resource to other tasks periodically. However, when there is a very time-consuming function in a task, like read a large ...
Ross's user avatar
  • 552
0 votes
0 answers
908 views

FreeRTOS with ATMega328P

Im trying to run FreeRTOS on ATMega328P and with two tasks its works well, but when i put one more task, no one is scheduling, I got the return of CreateTask of all tasks created and is right, all of ...
Bruno Otavio's user avatar
0 votes
0 answers
867 views

STM32F1 FreeRTOS osDelay (also vTaskDelay) make task stop running

I am using FreeRTOS with STM32F103C8T6 (code generated by CubeMX) and experiencing very strange behavior in my application while using osDelay or vTaskDelay functions. Structure of my app is 3 tasks. ...
user505160's user avatar
  • 1,010
1 vote
1 answer
296 views

FreeRTOS: Task Creation Problem

I am creating 2 tasks, one controls a keypad the other a temperature sensor. Each task works individually. However when I try to create both task it does not seem to create the task, it keeps looping ...
SRR's user avatar
  • 917