688 questions
Best practices
1
vote
3
replies
98
views
How to deal with an intense CPU consuming task triggering watchdog?
I am using esp-tflite-micro to make some inferences, but it is taking too much time to finish a single inference; enough to trigger the watchdog of the idle tasks.
I know I may increase the watchdog ...
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(...
0
votes
0
answers
91
views
Coldfire to Cortex-A9 context switch
I am currently working on the porting of a proprietary RTOS that was originally written for the Coldfire CPU to the Zynq, which has a Cortex-A9 Armv7 CPU inside! I've been struggling for a while to ...
1
vote
1
answer
106
views
Zephyr ILI9341 Display Driver Compilation Errors - Missing Devicetree Properties
I'm trying to use an ILI9341 display with nRF52840 in Zephyr (v4.1.99). The build fails with multiple errors about missing Devicetree properties when compiling display_ili9xxx.c:
error: '...
0
votes
1
answer
115
views
Using a lockfree spsc queue as mpmc queue on a single-core processor
When using a lockfree spsc queue on a single-core processor with RTOS, can we push/pop objects from multiple tasks/IRQs like mpmc queue?
Since on a single-core system, there is only one task/IRQ can ...
0
votes
0
answers
69
views
Linux real-time kernel frequently kills my app
I'm developing a near real-time application, that forwards messages in a endless loop(no yield, no sleep, no wait).
The messages come from shared memory, go to another blocks of shared memory, so my ...
2
votes
2
answers
137
views
Socket Listener good practice?
I want to build a very simple server that accepts only one connection at a time on an embedded device (running an RTOS).
Two option comes to my mind concerning the socket listener:
Option A: have one ...
1
vote
3
answers
121
views
C multithreading reader and writer problem
I want to create a program where there are 2 threads reader and writer.
Both reader and writer runs for 10 iterations.
I need a synchronization mechanism that can enable reader and writer execute ...
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 )
{
/* ...
2
votes
0
answers
181
views
ARM Cortex M4 context switching: How does the hardware know where xPSR, PC, LR, R12, R3-R0 are on the stack?
I'm working on a context switching mechanism for my RTOS which runs on Cortex-Ms.
When I initialize a task's stack, I have it like this
Then, I decrement the stack pointer 8 times to fit R11-R4.
I ...
0
votes
1
answer
146
views
VxWorks SDK on QEMU - Unable to include kernelLib.h
I am working with VxWorks SDK on QEMU. I am writing a simple C++ program to enable round-robin scheduling and experiment a bit with the scheduler. In order to enable round-robin I call kernelTimeSlice(...
0
votes
3
answers
120
views
Is locking interrupts within an ISR allowed?
I have a device that takes in multiple interrupts from external devices and ultimately sends one interrupt signal to the ARM processor. What I have done is written a driver containing an ISR ...
0
votes
1
answer
733
views
Why undefined symbols vApplication___Hook in FreeRTOS with STM32F4
I'm trying to build an LED blinker with FreeRTOS, but there are some errors in the project:
undefined symbol vApplicationIdleHook referenced by symbol prvIdleTask (section .text.prvIdleTask in file ...
-1
votes
2
answers
481
views
RTOS on ATtiny85, 8 bit MCU. Is it possible?
Everyone, I am working with ATtiny85 using Arduino IDE. Recently I was learning about RTOS. I want to ask if it possible to run RTOS on ATtiny85 microcontroller? According to my knowledge it may be ...
0
votes
1
answer
61
views
Print long double value and clock_t as a double - ESP8266-RTOS-SDK
I can't print clock_t as a double or print time elapsed
void app_main()
{
clock_t start, end;
long double cpu_time_used;
start = clock();
ESP_LOGI(TAG, "Elapsed time");
ESP_LOGI(TAG, &...
1
vote
0
answers
303
views
Is there a C/C++ SDK for Raspberry Pi boards (not Pi Pico)
I am currently working on porting ThreadX to the Raspberry Pi 3 (or newer). After examining similar projects undertaken for the Pi Pico and Beaglebone, I realized that I would require the following:
...
0
votes
1
answer
484
views
AUTOSAR Trusted function in QM application
I understood that trusted function has unrestricted memory access, however I saw that a trusted function is mapped to QM application. Why do we need to put it in QM application if the function is ...
0
votes
0
answers
21
views
Generating load for simulating different characteristics
I'm writing a task-set generator tool for generating schedulable task-sets. The motivation behind the tool: After implementing a new spinlock protocol for a specific RTOS, the problem was testing the ...
1
vote
1
answer
77
views
A hardware interrupt vs. an aperiodic task
What is the relationship between the two terms? Is it that an ISR will be executed immediately, but an aperiodic task can be scheduled later (using the principle of a polling server or deferred server)...
0
votes
3
answers
453
views
Passing Small Amount of Data From an ISR Context to a Task/Thread Context
I have a device that I've written a driver for in an RTOS such that when it fires off an interrupt, its task is to read a 32-bit value from the device and have the system take some appropriate action ...
0
votes
1
answer
171
views
if PendSV have lowest priority why it is set to 15 in RTOS
/* The lowest interrupt priority that can be used in a call to a "set priority"
function. */
#define configLIBRARY_LOWEST_INTERRUPT_PRIORITY 15
/* The highest interrupt priority that can ...
1
vote
1
answer
540
views
Why does nothing happen when i choose j-link in Segger SystemView?
I want to start using SystemView to trace my FreeRTOS usage on STM32F767 nucleo boards.
When i click on the green triangle "Start Recording", and after asking about, J-Link confirm, then ...
0
votes
1
answer
65
views
MSP stack overflow on Cortex-M4 running UCOS-II RTOS
I am using UCOS-II, the underlying operating system for my project. Now, I have encountered a problem that is very difficult for me. I hope someone can give me some advice.
I'm running it on a Cortex-...
-6
votes
1
answer
652
views
RPMSG-lite in imx7d-pico stop in while (0 == rpmsg_lite_is_link_up(rl_instance)) {
I've been trying this project for a long time (https://www.youtube.com/watch?v=4zMyjaEgj2U&t=1208s) (originally made for imx7s-warp) But strangely (as per photo) it only reaches the line (while (!...
0
votes
1
answer
339
views
STM32 change PWM Duty Cycle dynamically in RTOS
I'm using this code below trying to achieve a intensity transition effect upon turning on a light:
void output2ControlTask(void *argument)
{
/* USER CODE BEGIN output2ControlTask */
uint32_t ...