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
2answers
53 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
92 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
0answers
68 views

What scheduling should I choose for my program on a FreeRTOS system?

Not sure if it's the right place to ask but: I have a project (a 2-player game) made in FreeRTOS. The game has 3 tasks (Game Render, Joystick Task and a PC Serial Communication). Shared resources ...
0
votes
1answer
75 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
569 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 ...
2
votes
3answers
164 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
49 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 ...
0
votes
1answer
57 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
131 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
206 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
449 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
247 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
604 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
365 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
130 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
2k 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
131 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
656 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
163 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
349 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
288 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
247 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
537 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 ...
3
votes
2answers
307 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
390 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 ...
7
votes
1answer
4k 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
314 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
95 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
250 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
366 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
581 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?
0
votes
1answer
371 views

Esp32 i2c along with analogue read not working? How to fix it

First of all I am new to electronics. I am using ESP32 dev kit and trying to communicate with an i2c sensor and an analogue sensor. I am able to communicate both devices. I am using freertos Task to ...
0
votes
2answers
114 views

FreeRTOS for Atmel's SAM Cortex-M3 Switch between tasks

I'm playing with FreeRTOS on an Atmels' Cortex-M3 mcu and I was wondering how can I switch from a current task to another irrespective of its priority. To be exact: I send data to one of mcu's USART ...
3
votes
3answers
902 views

How to allow thread and interrupt safe writing of incoming USART data on FreeRTOS?

I have a [circular] buffer that is written with incoming data from the USART using IRQ. I also have other tasks reading data from the buffer as well. What should I do in a scenario where a task has ...
0
votes
2answers
371 views

Method for having long task delays in freertos

I was wondering how I can delay for longer periods of time using freertos function vTaskDelay(). Because the largest number you can store in a 16bit unsigned integer is 65535, the longest I can delay ...
2
votes
0answers
381 views

SAM-D21 Clock On Demand does not wake up the MCU from Standby

I am using SAMD21 with FreeRTOS. I am putting the system on sleep level Standby and relying on a TC that works as a systick for the tickless FreeRtos to wake up the MCU however, when the debugger isn'...
0
votes
1answer
643 views

FreeRTOS causes SYSTICKACT (HardFault) exception

I generated a basic project with CubeMX for STM32F4. After compiling and having successful run, I added FreeRTOS manually. Unfortunately, all the time I'm getting HardFault exception with SYSTICKACT ...
0
votes
1answer
253 views

RTOS and OS working side by side in cooperative work

I would like to use use a RTOS and OS side by side to implement a cooperative work. The RTOS would perform time critical (real-time) task and the OS will perform the other non-critical ...
3
votes
2answers
1k views

Must FreeRTOS task stack size account for interrupt stack size?

I have FreeRTOS running on a MKE06 Cortex-M0+ (based on SAMD20 demo), GCC toolchain. I am trying to figure out optimal task stack sizes (with the help of avstack.pl). I want to use only static memory ...
1
vote
1answer
196 views

Data corruption while using RTOS queue services

I am trying to create a gatekeeper task to display the sensor data over the screen via UART. The attributes are defined in the structure as follows, ...
4
votes
1answer
9k views

Use STM32 interrupt with FreeRTOS

I'm confused in using HAL-defined interrupts with FreeRTOS. I'm trying to implement "6.3 Deferred Interrupt Processing" in the guide of FreeRTOS, but I don't know how to do it. The problem is how to ...
0
votes
1answer
1k views

STM32F7 CubeMX FreeRTOS and USB CDC

I'm using FreeRTOS generated with the help of CubeMX. Everything was working fine until I added USB CDC unit. When I used CDC_Transmit_FS() before starting kernel, I could receive data over USB. ...
1
vote
1answer
126 views

What are the rules that function should pass in order to be used in RTOS

I use ATSAM4LC2A ARM microcontroller that drives 3xUSART, GPIOs, DMA. timers with the use of interrupts and all the remaining logic of my application.. The project is functional but with out a RTOS ...
0
votes
1answer
95 views

ARM compatibility between vendors, with and without RTOS (FreeRTOS) [duplicate]

I would like to know how much compatibility can I expect between ARM MCUs from different vendors. For example, let's say I write a firmware using C language for a Cortex M0 using its CAN peripheral. ...
1
vote
2answers
83 views

Device Driver function behavior on interrupt

Suppose an embedded system is running FreeRTOS and an application program makes calls to a device driver interface (let us assume I2C). What exactly happens when this is interrupted by an external ...
3
votes
1answer
616 views

bare-metal software and FreeRTOS run in ARM Cortex A9

Is that possible to run bare-metal software in CPU0 and FreeRTOS in CPU1 since the ARM Cortex A9 is a dual core processor. I am asking this out of curiosity. If anyone has accomplished this before, do ...
3
votes
2answers
1k views

FPGA Interrupt in FreeRTOS

I am using freeRTOS in Zedboard. I am able to enable the PL-PS interrupt in bare-metal program. I couldn't really find any documentation/tutorial on how to link the FreeRTOS and the PL interrupt ...
5
votes
4answers
2k views

Why use FREERTOS instead of the interrupt mechanism on a microcontroller? [duplicate]

This might be a very stupid question. I have experience with embedded software on bare-metal and just started with FREERTOS. However I don't really understand why one would use FREERTOS instead of ...
0
votes
1answer
908 views

STM32F411RE UART IRQ

I want to do RS-232 communication with a PC terminal using interrupt on the receiving for the STM32F11RE. I've done polling using ...