Quality RTOS & Embedded Software

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


Loading

task not running contiously

Posted by ehtane on February 28, 2019

hi ,

i have created three task with the priority as high ,normal and normal task once execute once


task not running contiously

Posted by rtel on February 28, 2019

I'm afraid without more information nobody will be able to assist: https://www.freertos.org/FAQ-how-to-use-the-FreeRTOS-support-forum.html

Attachments

rr2.c (27489 bytes)

task not running contiously

Posted by ehtane on March 1, 2019

hi ,

sorry for inconvienience I am using STM32F429 discovery board with free RTOS

i have created two task ,one task which need to trasnmit the data as received data interrupt ,so i have created binary semaphore and it will wait forever and if received interrupt generated it release the task . Second task is the sd card write task which should write the data every after 15 min and in this i have implemented if(xSemaphoreTake(semHandle, 1000 )) and it enter after 1 sec and increase the counter and when the counter reaches 900 it will write the data .

but this not happen so can you please guide me for the same

Attachments

rr2.c (27489 bytes)

task not running contiously

Posted by rtel on March 1, 2019

Please share a little of the code so we can see how the semaphore is created, 'given' and 'received'.

Attachments

rr2.c (27489 bytes)

task not running contiously

Posted by ehtane on March 1, 2019

hi,

please refer the attached code

Attachments

main_01-03-2019____.c (29374 bytes)

task not running contiously

Posted by ehtane on March 1, 2019

hi,

please refer the attached code

Attachments

main_01-03-2019____.c (29374 bytes)

task not running contiously

Posted by ehtane on March 4, 2019

hi waiting for your reply

Attachments

rr2.c (27489 bytes)

task not running contiously

Posted by richarddamon on March 4, 2019

One big question looking at the code, does HALUARTTransmit return before the messge is sent, or does it just spin wait for the completion. If it spin waits (as seems common in the HAL code) then that task will hog the CPU.

I have found that much of the HAL code isn't very friendly to the RTOS environment.

Attachments

rr2.c (27489 bytes)


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


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

Latest News

FreeRTOS v10.2.0 is available for immediate download. MIT licensed, and including RISC-V and ARMv8-M (Cortex-M33) demos.

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

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


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Cadence Tensilica Cortes

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Mediatek

Renesas

RISC-V

SiFIve RISC-V

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