Advanced Debugging of STM32-Based Devices
Advanced Debugging of STM32-Based Devices
Overview
Atollic TrueSTUDIO development tools for
ARM devices are a step above other IDEs with an
unmatched feature set for professional software
development, perfectly suited for development
with STM32 microcontrollers from ST
Microelectronics. These are the kind of tools you
want on your desktop if you are serious about your
code and about keeping your project on track.
Some of these powerful features include project
wizards, parallel compilation, MISRA-C checking,
code complexity analysis, and source code review
features plus RTOS-aware debugging with a built-in
crash analyzer, support for multicore and multiprocessor debug, event-, data- and instruction
tracing, peripheral register viewers, and real-time
variable watch.
The integrated MISRA-C checker shows a violation summary with graphical display showing types of errors
2014 Atollic AB
-2-
2014 Atollic AB
-3-
1.
The Code Review Status Screen organizes problem areas identified by internal reviewers and tracks the
resolution of each item
2014 Atollic AB
-4-
2014 Atollic AB
-5-
2014 Atollic AB
-6-
Gone are the days when simple single-step/run-tobreakpoint/printf-style debugging was sufficient
for reasonably sized projects. Todays debugger
needs to include features for event-, data- and
instruction tracing to capture execution history for
later analysis, crash analyzers to help you work out
why your software brought the CPU into a fault
state, RTOS-specific kernel aware debugger
features, etc.
2014 Atollic AB
-7-
expected
Locating sections of code that require
optimization
Locating specific lines of code that are causing
memory corruption
Determining whether or not interrupts are
firing as expected
The internal behavior of real-time operating
systems and other middleware
2014 Atollic AB
-8-
For example, the data trace view visualize variableor memory-values in real-time during full execution
speed non-intrusively, and it provides an accurate
history log of all reads- and writes- to a particular
location. A double-click on a particular read or
write in the memory access history log brings you
to the code line who made the read or write to
that variable or memory location. It is thus
incredibly easy to find out what code line
inadvertently overwrites a variable value
occasionally, for example.
With instruction tracing, the execution flow is recorded in real-time. Trace start and stop trigger conditions can
be configured for advanced trace capture, and the instruction trace can be visualized in different levels of detail.
2014 Atollic AB
-9-
RTOS-Aware Debugging
2014 Atollic AB
- 10 -
Summary
Using STM32CubeMX
Atollic, Atollic TrueSTUDIO and the Atollic logotype are trademarks or registered trademarks owned by Atollic. ECLIPSE is a registered trademark of
the Eclipse foundation. MISRA and "MISRA C" is a registered trademark of MIRA Ltd, held on behalf of the MISRA Consortium. All other product names
are trademarks or registered trademarks of their respective owners.
2014 Atollic AB
- 11 -