Skip to main content
The 2024 Developer Survey results are live! See the results

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.

0 votes
0 answers
13 views

AWS IoT File Stream from S3 - Response not in order and PacketType=7b

The coreMQTT library is throwing an error with the message: Unexpected packet type from server: PacketType=7b This indicates that the client has received a packet from the server that it does not ...
Coffeeye's user avatar
0 votes
0 answers
40 views

Issue with Writing to Flash Memory on STM32WLE5 After Receiving LoRa Data

I’m working with an STM32WLE5 microcontroller, using code generated by STM CubeMX. My project incorporates LoRaWAN modules, follows the EndNode skeleton, and utilizes FreeRTOS (CMSIS V2.0). The common ...
Ignacio Islas's user avatar
2 votes
0 answers
41 views

ESP32 FreeRTOS crashes when calling callback between tasks

I'm trying to implement the observer pattern on ESP32H2 device (devkit) ESP-IDF v5.2.1. I have 2 FreeRTOS tasks (in 2 files), there is a register callback function in one file, which is used to pass a ...
valeroso's user avatar
0 votes
0 answers
47 views

Unwinding Stack on Cortex-M with FreeRTOS: Handling Interrupts and Stopping Conditions

I am writing an unwinder for a Cortex-M (an ARM processor) running FreeRTOS. It mostly works, and I can trace the stack in many cases, but I have encountered a few issues that I haven't been able to ...
Theo Bessel's user avatar
0 votes
0 answers
14 views

CMSIS-RTOS osThreadResume will unblock osThreadFlagsWait regardless of condition

Suppose I have a thread here void StartSensorTask(void *argument) { /* USER CODE BEGIN StartSensorTask */ /* Infinite loop */ for(;;) { osThreadFlagsWait(0x01, osFlagsWaitAny, ...
Travis Su's user avatar
  • 699
0 votes
1 answer
41 views

Taking FreeRTOS as an example, how to separate the kernel from the application? (Physical)

enter image description hereBackground: FreeRTOS, Cortext-M3 Suppose there is a situation where the kernel and application are developed separately, and the .text segment of the kernel and the ...
Rost Zhong's user avatar
0 votes
0 answers
11 views

stm32f103re chip with sim7080g. Using FreeRTOS: cellular_interface

I’m a newbie to embedded, just starting out. This time, I’m trying to make LTE connection using stm32f103re chip and SIM7080G. Fortunately, I succeeded in basic setup through stm32cubemx and succeeded ...
Dear_ddyd's user avatar
-1 votes
0 answers
19 views

The firmware is hung after running a few hours [closed]

Our firmware keeps running for a couple of hours. Then it'll be hung. Once the firmware is hung, after about 30 or 40 seconds, the firmware will reset itself. We use the FreeRTOS 10.4.3. I tried to ...
user1556331's user avatar
1 vote
0 answers
23 views

Enabling WiFi and EVE2 display leads to trigger WDT

I'm writing a firmware for ESP32-S3 and I have problems using the WiFi with an EVE2 display (NHD-7.0-800480FT-CSXV-CTP). I tried to setup a minimal code to reproduce the issue. #include <stdio.h>...
Mark's user avatar
  • 4,662
-1 votes
0 answers
19 views

How to send a running Task into an indefinite block state from another function?

Project: I have a Task1 that will be printing a message into the serial monitor. I'm using a software timer that will start and after 5 seconds it will expire and send Task1 into a block state so that ...
tadm123's user avatar
  • 8,708
0 votes
0 answers
21 views

ESP32: Binary semaphore not providing mutual exclusion on FreeRTOS

I have 2 Tasks, both will give turns in printing a string (shared resource) on the serial monitor. I'm using a ESP-32 microcontroller and FreeRTOS, also the Arduino IDE. I'm trying to use binary ...
tadm123's user avatar
  • 8,708
0 votes
1 answer
26 views

(ESP-32) Guru Meditation Error: Core 1 panic'ed (IllegalInstruction). Exception was unhandled

I'm using a ESP32 microcontroller to run a FreeRTOS simple program of printing what is in a global variable to the serial monitor. I'm also using the Arduino IDE. Here's the simulator that I'm using ...
tadm123's user avatar
  • 8,708
0 votes
1 answer
37 views

Using one UART in three same priority tasks in FreeRTOS with STM32

I'm trying to use one UART in three same priority tasks like the code below, but what is happening is confusing for me! In fact, I want any task to send a string once per second, so I should have 3 ...
Nima Azad's user avatar
1 vote
1 answer
68 views

Why should I use portTICK_PERIOD_MS instead of pdMS_TO_TICKS?

I can retrieve the number of ticks needed to reach, say, 500 ms using either: const TickType_t xDelay = 500 / portTICK_PERIOD_MS or: const TickType_t xDelay = pdMS_TO_TICKS(500); where: #define ...
Mark's user avatar
  • 4,662
0 votes
1 answer
47 views

How to set the stack depth parameter when creating a task

In ESP-IDF you can create a task with the xTaskCreate() function: static BaseType_t xTaskCreate(TaskFunction_t pvTaskCode, const char *constpcName, const uint32_t usStackDepth, void *constpvParameters,...
Mark's user avatar
  • 4,662

15 30 50 per page
1
2 3 4 5
77