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

IAr Embedded Workbench and FreeRTOS debugging

Posted by Torben on February 23, 2007
Hi!

I am new to this Forum and to FreeRTOS. Started working with it this monday. Now I have a few questions which you could hopefully answer.

I use the IAR Embedded Workbench Kickstart IDE. I succesfully compiled the uIP Demo and everything works fine. Now I am wondering how I can debug my own applications using this IDE. I found no possibility to get a view of the running tasks or other important information like used stack sizes etc.. Is there a way to get info about such things? I am using an AT91SAM7X-EK with an AT91SAM-ICE. If there is no possibility to debug FreeRTOS applications proper with Embedded Workbench, which other IDE would be advisable to use? I dont want to start working on my project without a good debugging method.

Thanks for your help!

RE: IAr Embedded Workbench and FreeRTOS debugging

Posted by Torben on February 23, 2007
I just saw the possibility of using debug plug-ins with embedded workbench. Unfortunately I can not find any plugin for FreeRTOS. Does any exist?

RE: IAr Embedded Workbench and FreeRTOS debugging

Posted by Richard on February 23, 2007
You can figure most things out from the code. You have a handle to each task and can get most (all?) information about the task from that. For example, get information on the current running task by inspecting pxCurrentTCB in the debugger watch window. In the TCB there is a pointer to the stack, you can see the high water mark by inspecting the RAM to see how many 0xa5's are left.

There is a function called vTaskList() in task.c that prints our the state, priority, max stack usage, etc. of each task to a string. This is the function that is used to generate the task table for the WEB server demos.

RE: IAr Embedded Workbench and FreeRTOS debug

Posted by Torben on February 23, 2007
Thx for your response.

I read the documentation about the function vTaskList(), but I must admit I'm not quite sure how to use it.

I will check pxCurrentTCB when I'm back at work next week.

RE: IAr Embedded Workbench and FreeRTOS debugging

Posted by Torben on February 26, 2007
You were right, pxCurrentTCB is very useful for debug purposes. Is there also a possibility to get information about semaphores?

RE: IAr Embedded Workbench and FreeRTOS debugging

Posted by Nobody/Anonymous on February 26, 2007
Semaphores are just queues. Semaphore handles and queue handles are both pointers to a queue structure. The difficulty is that the data hiding technique used means the queue structure type is only visible from within queue.c. Inside queue.c it is then easy to see the queue in the debugger. Outside more difficult. You can move the queue structure definition to the header file if you don't mind breaking the data hiding.

Dave.


[ 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