Quality RTOS & Embedded Software

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


dump call stack when system crash

Posted by tonyuan on September 1, 2016

Hi there

We are using IAR developing our product. And now we have faced a problem that, our system sometimes hung. We do not know what happened and do not have better way to debug it except using Jlink. But image if this hung problem happens in the field, and we can not use Jlink to debug, we can do nothing about that. So now we are trying to develop a new feature. If the system hung, we dump the stack to flash, then we can try to analyse the static stack and find the function call path. So here is the question, can FreeRtos help us to decode the static stack to function call path? Or is there some way that we can analyse the stack dynamicly when system hung and dump the function call path to flash?

dump call stack when system crash

Posted by rtel on September 1, 2016

You will need to refer to both the hardware and compiler (IAR) manuals to work out how to interpret the stack.

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

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

Latest News

Meet us at Embedded World. Hall 3A-525.

Hear from Richard Barry at Embedded World. Feb 28, 16:00, Hall 4-428.

Video: Watch James Gosling & Richard Barry at re:Invent, Las Vegas 2017.

FreeRTOS kernel V10.0.1 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