Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


FreeRtos on embedded Linux, Schedule timer ma

Posted by Cedric Bouygues on June 10, 2013
Hi FreeRTOS community,

I'm using FreeRTOS on a Digiconnect ME 9210 which is an Ethernet port with an embedded linux. I use the posix port of William Davy for the FreeRTOS V5.3.0.

The soft I want to create can be describe in tasks (in the freertos meaning) like that :
Task 1 : Listen to the serial port then in function of what is received create one of the two action task ;
Action task 1 : Answer on the serial port ;
Action task 2 : Send a request on the Ethernet.

The soft will run as a daemon.

My matter is :
I don't have any timer tick to make the scheduling.

So first I use a dirty vtaskDelay(0) on my main task for loop, to force it.
Then I've tried to implement a software timer, but without base tick it doesn't work.

So after I go in the port code and I've discovered, I think, the source of my matter.
When I call vPortStartScheduler I got a timer created which send the SIGALRM signal when it expires and I also have a signal Handler created when the first task is created.
I've tried with no tasks at all, just the creation of the timer and the signal handler, they are both working well.
So I think the matter is that the signal is well sent when the timer expires, but the task which contains the signal handler doesn't received it, maybe because she is not the running one, or because all the tasks accept the signal, but got no handler for it.

Do you have any ideas to solve this timer matter ?

Regards Cedric.

RE: FreeRtos on embedded Linux, Schedule timer ma

Posted by Cedric Bouygues on June 10, 2013
Hi again,

I've tried my soft on a classic linux, an it's running well, so I think the matter comes from the configuration of my embedded linux.

Regards Cedric.

[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ Sitemap ]    [ ]

Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


FreeRTOS and other embedded software careers at AWS.

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers


STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner