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

watchdog solution for system hang?

Posted by Nobody/Anonymous on January 9, 2007

Hi there,

Is it possible that FreeRTOS will hang if something is wrong in the application code (only applicatin tasks are faulty and the kernel code remain untouched)?

Can I use watchdog to make sure the system resets in a hang condition?

The str91x port of freertos uses watchdog as tick interrupt. What else can I use on this port to get a watchdog like functionality?

RE: watchdog solution for system hang?

Posted by Nobody/Anonymous on January 9, 2007
Without a MMU then the application can corrupt data within FreeRTOS making it crash. If the kernel code really is untouched then a badly written task could starve out all other lower priority tasks from running, or leave interrupts disabled.

I don't know the STR91x but suspect it will contain two or three different timers, any of which can be used in place of the watchdog interrupt.

Dave.

RE: watchdog solution for system hang?

Posted by Jeff Smith on January 10, 2007
Trust me... it is much easier to make it hang than to make it work :) My biggest problem so far is stack overflows. Since each task has a stack, naturally I make them smaller to fit more, yet still give enough space in each.

Once you get the 'hang' of it, you'll appreciate how much you can do with the versatility. Having no MMU allowes very small processors to do alot, and still use any of it's hardware including watchdog.

Be careful placing the COP (watchdog timer) reset because you could end up with only that thread running, so it never times out yet all other threads are crashed. A good practice would be have all critical tasks report to a single task which monitors them and resets the COP if working.


[ 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