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

Switch/browse task backtraces from Eclipse?

Posted by Richard Walters on July 31, 2012
I'm looking for an Eclipse plugin for FreeRTOS that allows me to view the backtraces of each task. Eclipse GDB Hardware Debugging by itself only shows me the backtrace of the currently running task. This makes perfect sense because neither Eclipse nor GDB have any knowledge of FreeRTOS. However, I'm thinking an intelligent plugin might do better!

I tried the StateViewer plugin from High Integrity Systems, but it only shows me the list of tasks and their priorities, stack pointers/tops, state, and what event it's waiting/blocked on (if any). It does not have the ability to show me backtraces of these tasks, which would be incredibly useful for seeing the full context, local variable states, etc. I know all the information is there in the stacks of each task, and it's only a matter of parsing those stacks.

Since GDB does this already for the currently running task, I wouldn't mind if I had to "switch" to a different task in order to leverage GDB to view another task's backtrace. Unfortunately, StateViewer doesn't support that either. I'm forced to set strategic breakpoints where I know other tasks will hit, and let the processor run to those breakpoints. One big disadvantage of this is that if the target system has crashed or locked up, setting those breakpoints and letting the processor run is no longer a viable option.

Does an Eclipse plugin exist that has these features, or must I write one myself?

RE: Switch/browse task backtraces from Eclipse?

Posted by Richard on July 31, 2012
I know of one person who is working on threading support using the standard Eclipse and GDB features, but it is a background project so I don't know if or when it will be available. If you create something please post it to the FreeRTOS interactive site as I think it will be of great interest to the community.

Regards.

RE: Switch/browse task backtraces from Eclipse?

Posted by Gavin Lambert on December 6, 2012
Do you have a link for this or any further information on it? It's something I'd be quite interested in too, even if I had to manually run a "switch to stack at 0xNNNNNNNN" command or something -- though obviously it'd be nicer if it went into the Debug tab like "normal" threads.

It'd be especially helpful when trying to diagnose exceptions or interrupt races.

RE: Switch/browse task backtraces from Eclipse?

Posted by Artem Pisarenko on March 23, 2013
I'm interested too. I saw that OpenOCD stub supports exactly this feature, but I use J-Link GDB server. It would be much more flexible if this feature being handled on gdb client side, or, even better, on eclipse side.

RE: Switch/browse task backtraces from Eclipse?

Posted by Artem Pisarenko on March 30, 2013
I made contribution:
http://interactive.freertos.org/entries/23468301-Tasks-backtrace-switcher-viewer-snippet-for-debugger-gcc-gdb-ARM-Cortex-M3-MPU-port-Eclipse-support-
“even if I had to manually run a "switch to stack at 0xNNNNNNNN" command or something”
uecasm, exactly as you wanted ;) thank you for idea :)

RE: Switch/browse task backtraces from Eclipse?

Posted by Artem Pisarenko on March 30, 2013
forgot to say: it's for arm cortex-m3 mpu port only

Switch/browse task backtraces from Eclipse?

Posted by jdallaway on August 15, 2014

The Code Confidence Tools for FreeRTOS provide per-task backtrace: http://www.codeconfidence.com/tools


[ 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