1,172 questions
-1
votes
1
answer
63
views
Not able to get Segger SystemView working on Freertos on STM32L0 in STM32Cubeide
I'm trying to get the segger systemview working on a STM32L073RZ nucle board with FreeRTOS. I have verified that freertos is working fine with the MCU as I could create 2 tasks and run them ...
0
votes
1
answer
73
views
error: 'UBaseType_t' has not been declared
I'm encountering a compiler error when I add a new class to correctly working code.
Here's what works
main.cpp
#define LOG_LEVEL ESP_LOG_INFO
static const char* TAG = "TownSquare";
#include &...
Advice
0
votes
2
replies
64
views
Does a higher priority task cause a CPU exception when it needs to run in an RTOS
This is still somewhat unclear, and I know that there are different types of RTOS out there with different settings.
Let's say that we're dealing with a preemtive scheduler in this case. When a high ...
1
vote
1
answer
85
views
FreeRTOS Context switching after ISR unblocks a tasks
I have read the official FreeRTOS Reference manual but could not find a specific answer to my question.
Will context switch happen if ISR unblocks a FreeRTOS task that is the same priority as the task ...
1
vote
0
answers
39
views
Why use a delay time less than portMAX_DELAY when waiting for a semaphore/mutex/queue FreeRTOS?
First I want to make sure I'm understanding the behavior of what is happening when trying (and failing) to take a semaphore or mutex...
When this code runs (assuming xSemaphoreTake is going to fail to ...
2
votes
0
answers
58
views
ESP32 TaskReadTelegram() often hangs and triggers watchdog
I recently built myself a ham radio repeater and used ESP32 for its control unit. I added Telegram control capabilities to get some status info and force some actions remotely. Using FreeRTOS made ...
1
vote
1
answer
73
views
Linker placement order is reversed in map file after compiling
I am adding a linker section in the TI arm clang linker and I have added by following
MEMORY
{
TEST_SECTION ( RWIX ) : ORIGIN = 0x41C00000 , LENGTH = 0x00007800
}
--retain="*(....
1
vote
0
answers
28
views
STM32F407 integration with SEGGER SYS VIEW Fails for LED blinking
I am trying to run FreeRTOS on my stm32f407 discovery board. I am using segger system view continuous recording via j-link. The problem I am facing is that when I run this code:
status = xTaskCreate(...
2
votes
2
answers
121
views
FreeRTOS not properly running
I'm learning more about the FreeRTOS and I am trying to compile and use it without CMSIS-OS. Which means I added all the source code from FreeRTOS and added it to the compiler/linker includes. I was ...
1
vote
0
answers
63
views
Can't get output in the terminal for our launchpad
We're using TI MCU, CC3230SF, for our embedded system product, flashing code using XDS_UART_TX and XDS_UART_RX. The debugging is done via JTAG. We want to be able to monitor the responses to the AT ...
0
votes
0
answers
45
views
Adding FreeRTOS lib with stm32cube framework on PlatformIO
I’d like to integrate in my project the FreeRTOS lib but so far I haven’t been able.
If I had “lib_deps = FreeRTOS” it downloads arduino lib for FreeRTOS.
I thought that FreeRTOS would come with the ...
1
vote
0
answers
178
views
LVGL UI Freeze on ESP32: lv_tick_task Stuck with Mutex Held
I'm encountering an issue with my ESP32 project using LVGL for UI rendering. After running for about 30 minutes, the entire UI freezes. After some debugging, it seems that the freeze is due to my ...
4
votes
2
answers
247
views
stm32 nucleo board freertos timebase source results in an infitite loop being triggered
I am using a nucleo-wl55jc1 and I've attempted to setup the example from this tutorial: https://youtu.be/OPrcpbKNSjU?si=mj6qIDGve6GwYWs6
However, when I set the timebase source to anything other than ...
0
votes
0
answers
79
views
Why is my ESP32 task not logging when Wi-Fi is disconnected, but Wi-Fi retry logs are showing up?
I'm working with an ESP32, and I have a task that publishes data to the cloud. When the Wi-Fi is disconnected, the wifi_event_handler keeps retrying to connect, and I can see the retry logs on the ...
1
vote
0
answers
88
views
Arduino Due integration with FreeRTOS running into hard faults on simple led toggle through a task
I am trying to integrate FreeRTOS into Arduino Due (Atmel CM3 3X8E) without using Arduino IDE. I have a simple blinking application working without FreeRTOS so I know my reset handler is working but ...
0
votes
0
answers
51
views
Finished DMA doesn't call PulseFinishedCallback when using FreeRTOS
I am trying to send data to PWM through DMA just once. It works fine in normal superloop, but when I'm using FreeRTOS the DMA doesn't call HAL_TIM_PWM_PulseFinishedCallback
HAL_TIM_PWM_Start_DMA(&...
1
vote
2
answers
107
views
How does the ISR (Interupt Service Routine) works in ESP-32, can we suspend or resume tasks inside the isr?
I getting issue in switching the tasks in using ISR (ESP-32).
Below is the code for the same.
struct Button {
const uint8_t pin;
volatile uint8_t numberKeyPresses;
};
# define buttonpin 15
# ...
0
votes
1
answer
130
views
Why does it getting stuck after calling the scheduler?
I'm trying to run a FreeRTOS task in an STM32F411RE board.
void my_task(void *pvParameters)
{
while (1)
{
// Example:
// Turn on LED
// delay
// ...
0
votes
1
answer
90
views
Double exception/Guru Meditation Error: running book example for producer consumer problem with esp32cam got corrupted memory
My first question here. Please be patient.
I am running VS-Code with PlatformIO Windows10 VM, trying to run the first project from the book: Developing IOT projects with ESP32, Vedat Ozan Oner... ...
0
votes
1
answer
76
views
When using two sensors at the same time in an embedded system, I want to prevent performance loss
Currently, I am using the mpu6050 and uhf rfid module simultaneously on the lolin d32 pro (esp32) development board.
MPU6050 has a sampling rate of 100hz. I hope RFID also has a sampling rate of at ...
1
vote
0
answers
73
views
FreeACT active object event synchronisation/safety
I'm thinking of writing an embedded application using the FreeACT framework to implement "Active Objects" event-driven system on a FreeRTOS system.
Fundamentally a FreeACT active object ...
0
votes
1
answer
157
views
STM32 I2S DMA TxHalfCplt Callback only execute once
I'm using I2S DMA to play some wav files (fixed format and sample rate) using double-buffer technique,
and somehow when the transmit starts, TxHalfCplt Callback only called once and then stopped ...
2
votes
0
answers
265
views
Why ThreadX's entry function use ULONG as entry input instead of a void*? [closed]
UINT tx_thread_create(TX_THREAD *thread_ptr, CHAR *name_ptr,
VOID (*entry_function)(ULONG), ULONG entry_input,
VOID *stack_start, ULONG stack_size, UINT ...
0
votes
1
answer
321
views
FreeRTOS event-task architecture to handle different flags around the code
I'm working on a FreeRTOS project in C/C++ that has about 10 tasks for gpios, displays, wifi, and so on.
These tasks are only triggered by events. For example, the user chooses an option on the menu &...
1
vote
1
answer
81
views
Why does eTaskConfirmSleepModeStatus not return eNoTasksWaitingTimeout?
I use FreeRTOS with tiskless mode enabled.
I'm having trouble understanding what's happening in the code:
I call this function:
eSleepModeStatus eTaskConfirmSleepModeStatus( void )
{
/* ...