ChibiOS/RT Logo ChibiOS/RT

Architecture - Reference Manual - Guides

Debugging ChibiOS/RT applications

ChibiOS/RT offers several mechanisms that can help in the debug phase of the development cycle.

What this guide does not cover

This guide assumes knowledge in following areas:

Helpful debugging configuration settings

There are several settings in your kernel configuration file (see templates/chconf.h) that you may want to enable during debugging and in general during the whole development process.

Note that all the failed checks lock the kernel into the port_halt() function. In order to assess what triggered the lock the global variable panic_msg must be inspected using the debugger, the variable is a pointer to an error message (a zero terminated string), the pointer may contain NULL if the lock was triggered by a stack overflow.

Common errors and symptoms

There are some common errors while using an RTOS, use the following table as a check list, if your problem is not a generic programming error then probably it is one of the following common RTOS/embedded related mistakes:

General suggestions

For the less expert users, there are several things you may do in order to minimize the need for debugging:


Generated on Sun Oct 24 2010 09:40:44 for ChibiOS/RT by doxygen 1.7.1