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
1
vote
0answers
51 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 ...
1
vote
0answers
32 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 ...
1
vote
0answers
41 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 ...
0
votes
1answer
46 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 ...
0
votes
0answers
53 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 ...
0
votes
1answer
85 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 ...
0
votes
0answers
65 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 <...
0
votes
0answers
76 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 ...
0
votes
1answer
51 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 ...
0
votes
1answer
49 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 ...
1
vote
0answers
42 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 ...
0
votes
0answers
18 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 ...
0
votes
0answers
41 views

Application doesn't work normally after initializing I2C in the bootloader

I am working on STM32F756ZG. I have a bootloader at 0x08000000 and application at 0x08040000. The bootloader and the application both use I2C protocol to store a few configurable parameters to the ...
2
votes
0answers
85 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 ...
0
votes
0answers
250 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 ...
0
votes
0answers
74 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. ...
1
vote
1answer
96 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 ...
0
votes
2answers
133 views

FreeRTOS and 3 UARTS

I have application which has 3 UARTS (GSM / Debug / GPS) and will be developed under FreeRTOS (not the matter here but STM32F1 will be used). What would be the pattern to use with this setup ...
3
votes
2answers
3k views

FreeRTOS on STM32 - What API should be used: CMSIS-RTOS API (v1 or v2) or FreeRTOS API? [closed]

According to ST's user manual UM1722 "Developing wireless applications on STM32Cube with RTOS" there are two APIs available: Generic CMSIS-RTOS API (v1 or v2) FreeRTOS API The CMSIS-RTOS API ...
1
vote
2answers
134 views

How can I run an STM32L with an unpowered ST-Link connected?

I have an STM32L476RG on a custom board that I have to leave connected to an external ST-Link/V2 so that I can reprogram it without accessing the hardware. I'm also forced to do this via a USB hub due ...
0
votes
1answer
434 views

Guru Meditation Error: Core 0 panic'ed (InstrFetchProhibited). Exception was unhandled. ?? ESP32 FreeRTOS Error

I was trying to learn FreeRTOS. This is my simple FreeRTOS code that I'm trying to run on my Esp32. Code: ...
0
votes
1answer
130 views

FreeRTOS crashing when adding new queues

I am new to FreeRTOS At the beginning I created 3 queues and everything worked fine. Until I needed a new 4th and 5th queue. When ever I initialize the queues with ...
4
votes
1answer
859 views

STM32 crashes when FreeRTOS project is converted to C++

I am experimenting with STM32F303RE Nucleo board on SW4STM32 with FreeRTOS v10.1.1 and I was thinking of parsing NMEA sentences by adding the characters to a buffer using UART interrupt and then ...
3
votes
3answers
192 views

Bare minimum FreeRTOS

My only requirement is time triggered cooperative scheduler. I heard they are more reliable and predictable. If I want to use only the 'cooperative scheduler' of FreeRTOS for STM32F103 then is it ...
0
votes
1answer
86 views

Blocking code in Task of FreeRTOS

Today is my first day on FreeRTOS. I want to use it in STM32F103 for simple task handling as reading data from analog sensor and sending remotely using GSM module. I want to know what are the do's ...
1
vote
1answer
217 views

Error when using vPortFree(ptr) CMSIS-RTOS on STM32F4

I will need to handle dynamic memory using malloc and free. Looking on FreeRTOS documentation, I found pvPortMalloc(size) and vPortFree(ptr) , pvPortMalloc(size) works fine. When try to release memory ...
1
vote
2answers
149 views

freeRTOS semaphore

I am new freeRTOS and i am using stm32F4 . Requirement is to create a task it should the sd card every after 15min what is the best possible solution ?? ...
0
votes
1answer
472 views

FreeRTOS PID Controller (stm32duino) [closed]

I'm currently working with embedded system implemented on SMT32F103C8T6 Blue Pill microcontroller based on FreeRTOS. I want to control the velocity and position of DC motor using PID controller. For ...
0
votes
1answer
904 views

STM32 - ADC based temperature measurement on FreeRTOS

I've been trying to measure the MCU's (STM32F103RB) temperature as part of a FreeRTOS application. I've tried initializing the ADC both with the low and the high-level HAL functions, but whenever I ...
-3
votes
1answer
367 views

which IDEs are available for Freertos with Stm32 IDE for Linux? [closed]

Is there any IDE available for Freertos or Stm32 for specifically only for Linux other than Keil uvision. because I found out that Keil uvision is the most stable IDEs available out there for embedded ...
0
votes
0answers
1k views

Using stop mode in freeRTOS on a STM32L0 and waking up using EXTI interrupt

I want to make a low power device, running freeRTOS. There are 3 threads, which I planned to suspend normally into stop mode and resume execution depending on an EXTI interrupts. I intended doing so ...
0
votes
1answer
603 views

FreeRTOS context switch ARM Cortex-M4

I am examining the context switching procedure on a ARM Cortex-M4 based processor running FreeRTOS. In port.c we have: ...
0
votes
0answers
135 views

mbed Alternative to FreeRTOS's vTaskDelayUntil()

FreeRTOS's vTaskDelayUntil() function causes a thread/task to unblock at an absolute time, therefore ensuring that threads are "awakened" in consistent time intervals. Does the mbed platform offer ...
1
vote
0answers
3k views

UART interrupt handling using FreeRTOS

I have two threads: 1. ReadFromUART(): It reads from UART (RX), parses the message and put a command on the messageQueue 2. CommandHandler(): If a message is present in the messageQueue, It execute ...
1
vote
0answers
192 views

FreeRtos problems in ADC task and Streaming Task

I have an ADC task that uses 4 channels and uses the DMA for transfer. I also have a streaming client which streams the ADC data through the TCP socket. I made the ADS Task lower priority than the ...
0
votes
0answers
796 views

Stm32 and FREERTOS

I am a newbie to the embedded world I write this example to learn to programme; I have this problem: I wrote this code but I don't understand it. I have this following situation: I have two Threads "...
0
votes
0answers
209 views

Using C++ objects within FreeRTOS Tasks

I'd like to make use of object-oriented practises inside a FreeRTOS application. Is this as simple renaming files with task functions as .CPP, and instantiating objects, etc. inside the function, ...
0
votes
3answers
473 views

method to handle concurrent GPIO interrupt sources?

I have two GPIO interrupt sources running in two separate threads: GPIO pulses following line frequency(60 Hz) button press How can I use both these interrupts concurrently, considering my ...
0
votes
2answers
517 views

FreeRTOS - Potential issues with Periodic Tasks

Suppose Task 1 has the highest priority of all tasks, and is run periodically using vTaskDelayUntil(). Task 2 has a lower priority, but is also required to run periodically in strict time intervals. ...
1
vote
3answers
424 views

Is “new” acceptable when using C++ objects in a FreeRTOS application?

I've read that malloc() should be avoided when designing FreeRTOS applications. Does the same apply when using "new"? E.g.: TestObject* test = new TestObject(); ...
1
vote
1answer
869 views

multi-thread I2C synchronization

I am using an ESP32 board to communicate with an LCD and an I/O expander using an I2C bus. I am running a FreeRTOS based code. I am using 2 separate threads for the LCD and I/O expander each to ...
2
votes
2answers
546 views

RTOS Over UART protocol

I am developing an UART protocol to ensure communication between two boards (Master board and Slave board). Slave board includes many sensors and actuators and Master board shall command this board by ...
1
vote
2answers
2k views

Control an UART protocol with FreeRTOS or Interrupts [closed]

I am trying to develop an UART protocol to allow communication between two boards Master_Board and Slave_Board. Master_Board shall send commands over UART to Slave_Board and the latter shall answer. ...
0
votes
1answer
542 views

Unable to flush TX FIFO queue of NRF24L01+

I am writing code for an ESP32 to send data using a NRF24L01+ module to another NRF24L01+ module connected to an Arduino Pro Mini. The Arduino can successfully send data to the ESP32. So everything is ...
10
votes
2answers
7k views

STM32F407 + LAN8720A + lwIP + FreeRTOS = No received Ethernet frames

I'm trying to bring up a PCB that uses an STM32F407 and LAN8720A Ethernet PHY, and I can't seem to receive any Ethernet frames — even though I have no problem transmitting frames. Hardware setup I ...
1
vote
1answer
327 views

Unkown issue while parsing a usart fifo buffer

I have an stm32f429-disco configured for USART (Tx and Rx).Communicating with an asynchronous device. The receive data length is not known before hand. It generally varies from 2 bytes to 28 bytes. ...
-1
votes
1answer
107 views

STM32F1 FreeRtos Debug B SVC_Handler

i tried to run port FreeRtos V9 to stm32f103 with iar compiler made project my self.but when debugging , after call vTaskStartScheduler(); microcontroller jump to ...
1
vote
0answers
278 views

STM32F103 - CubeMx - MCU reboots with FreeRtos v9

I using a STM32F103 in my project and I generate the Keil project with Cube32MX with this firmware package for STM32F1 version 1.4.0. Today I update the Cube to version 4.23.0 and I migrate my ...
2
votes
1answer
482 views

Basic RTOS concept. Tasks communication

I am learning to use a RTOS, CMSIS RTOS in this case, so my question is basic. I want to know what is the best way to share information between two tasks. What I am trying to do is basically a ...
0
votes
1answer
647 views

Reasons to use RTOS [duplicate]

Can someone explain in what situations is RTOS used? What are pros and cons of RTOS relative to simple MCU applications with no OS?