Quality RTOS & Embedded Software

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




Loading

Terminate a task

Posted by gerhardkreuzer on May 18, 2015

Hi, if I started a Task, which do something, but after a while, there is no Response, is there a way to Abort this Task somehow? Just think about ^C functionallity of classical command line Interpreters.

Thanks a lot.

With best regards

Gerhard


Terminate a task

Posted by heinbali01 on May 18, 2015

Hi Gerhard,

but after a while, there is no Response

Do you mean there is no response from the task or from the user of the command line interpreter?

I suppose that you found 'vTaskDelete()' already, along with the warnings about freeing the memories and other resources?

In stead of creating a task per user (or per session), you might also consider creating a single task that serves all users. Every new user that comes in gets a memory object (which stores its status, command history, etc). That object may also contain an idle timer, so that the session will be closed and resources freed after a period of inactivity.

Regards.


Terminate a task

Posted by gerhardkreuzer on May 18, 2015

Hi Hein, no, I meant no Response from the Task. I dont have a Multi user System in mind, it is a Controller and there is a console Interface to interact with the Hardware, kicking off measurements , post processing Tasks and so on. I just working on the CLI and Shell functionallity and think about the Problem a Tasks hang for what reason ever and I had to stopp this Task.

With best regards

Gerhard


Terminate a task

Posted by rtel on May 18, 2015

You can implement a command that deletes a task, provided you know the handle of the task you want to delete.


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




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

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

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

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

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists