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

List of tips on what to check when it hangs

Posted by Nobody/Anonymous on June 24, 2006
I am quite new to FreeRTOS and often find myself doing some changes to my code, only to find it doesnt work anymore.... recognise this? Especially if you change more than just a few lines of code....

So, heres my personal check-list when that happens. Please post also your tips here!


Crash solving for FreeRTOS, AT91SAM7A3-EK and IAR EWARM:

* try to reboot the Eval card

* no bounds check : added too much text to a string (than allocated)?

* no auto size heap: added too much vars for the task heap size?

* some task blocking long times, and locking itself?

* some task in a non-blocking wait, locking other lower tasks?

* vars in a function are only initialised once
...

* increase total heap size if added more tasks, queues, semaphores

* check task prios - someone locking the others?

* check irq levels - someone taking over?

* check rtos tick rate, runing too fast/slow?

* try reboot jtag

* try reboot iar ewarm

* constant meant to be float is defined without decimal point

* connected peripheral cant keep up (115200kbps serial port for example)

* queuSendFromIsr must always start with taskwoken=pdFALSE

* any ISR running too much/fast/wild? pwm... adc... dbgu/usart...

* check the A3 errata section in the datasheet

* could be a bug in an example file, in FreeRTOS or the A3 chip, check the web


RE: List of tips on what to check when it hangs

Posted by Nobody/Anonymous on June 24, 2006
one more...

* try running in non-debug mode

RE: List of tips on what to check when it hangs

Posted by Nobody/Anonymous on June 25, 2006
Some of these (variable initialization, etc) are C related rather than FreeRTOS but maybe some others could form part of a check list in the FAQ section?

RE: List of tips on what to check when it hangs

Posted by Nobody/Anonymous on June 25, 2006
Yes, that would be a good idea. Especially if we get more people contributing and someone really good at this sorting, selecting and explaining...

I do think its quite important to have the non RTOS stuff too.... The most common C errors and also HW related stuff like trying reboot the card, and compiler related like trying non-debug mode. Also to show that not everything is RTOS blame...;-) It could be divided into sections, like RTOS, C/Asm, Compiler/GUI, HW, Misc etc for a complete "FreeRTOS Developers checklist"....

What would be nice is an ordered list, listing the most common problems first (roughly), like rebooting the HW that I have to do all the time... but then the different sections fall...

Perhaps:

1. Try rebot your HW (HW)

2. Higher prio task blocking (RTOS)

3. Variable initialization (C/Asm)

4. xxxx x x x x x x (HW: IAR + AT91)

5. .....


/PM


[ 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