Quality RTOS & Embedded Software

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




Loading

Suspend / Resume task

Posted by valeriv on September 24, 2017

Hi all I have system with several tasks and one of them manage another, I mean that the first resume or suspend another depend on different contitions. The problem is that I saw ( in tracealyzer) that after I resume task it does something that doesn't exist in it's main loop. Furthermore, sometimes it takes 30 mili and sometimes more than 800 mili to finish this work (unstable time). It looks like task stuck up during this work. It is happening only once (after resume), after this I see task work properly - make what in its loop and it takes fixed time

I don't understand what task do after I set it to resume and why it takes different time.

Thanks a lot

Valerie


Suspend / Resume task

Posted by rtel on September 24, 2017

I'm afraid I would need a lot more information to even guess what might be happening - perhaps it is that the task was suspended at different times in its implementation loop. Can you try and find out what the task is doing when you think it is not doing what it is supposed to? You could possibly do that by using Tracealyzer to add user events into the log to so you can what the task is doing, and which code it is executing.


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




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

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

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