HP Pro 1105 User's Guide Page 16

  • Download
  • Add to my manuals
  • Print
  • Page
    / 44
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 15
programming
page 16
Hardware Debugger
What is Debugging?
Every developer comes to a point where he has to monitor the
code execution in order to nd errors in the code, or simply
to see if everything is going as planed. This hunt for bugs,
or errors in the code is called debugging. There are two ways
to do this: one is the software simulation, which enables
you to simulate what is supposed to be happening on the
microcontroller as your code lines are executed, and the other,
most reliable one, is monitoring the code execution on the
chip itself. And this latter one is called hardware debugging.
"hardware" means that it is the real deal - code executes right on
the target device.
What is hardware debugger?
The on-board mikroProg
programmer supports hardware
debugger - a highly eective tool for a Real-Time debugging
on hardware level. The debugger enables you to execute your
program on the host STM32 microcontroller and view variable
values, Special Function Registers (SFR), RAM, CODE and EEPROM
memory along with the code execution on hardware. Whether you
are a beginner, or a professional, this powerful tool, with intuitive
interface and convenient set of commands will enable you to track
down bugs quickly. mikroProg debugger is one of the fastest, and
most reliable debugging tools on the market.
Supported Compilers
All MikroElektronika compilers, mikroC
, mikroBasic
and
mikroPascal
for ARM® natively support mikroProg
for STM32,
as well as other compilers, including KEIL®, IAR®. Specialized
DLL module allows compilers to exploit the full potential of fast
hardware debugging. Along with compilers, make sure to install
the appropriate programmer drivers and mikroProg Suite
for ARM® programming software, as described on pages 14
and 15.
When you build your project for debugging, and program the microcontroller with this HEX le, you can
start the debugger using [F9] command. Compiler will change layout to debugging view, and a blue line
will mark where code execution is currently paused. Use debugging toolbar in the Watch Window
to guide the program execution, and stop anytime. Add the desired variables to Watch Window and
monitor their values.
How do I use the debugger?
Figure 5-3: mikroC PRO for ARM® compiler in debugging view, with SFR registers in Watch Window
EasyMx PRO
v7
Page view 15
1 2 ... 11 12 13 14 15 16 17 18 19 20 21 ... 43 44

Comments to this Manuals

No comments