Use all hardware breakpoints

Technical Note 31070

Architectures:

ARM

Component:

debugger

Updated:

10/16/2015 1:05 PM

Introduction

This Technical Note discusses how to take control over the usage of the hardware breakpoints.

Background

The number of hardware breakpoints can become a limitation when debugging in hardware. (An ARM7/9-core typically has 2 hardware breakpoints, while a Cortex-core typically has 4-8 hardware breakpoints.)

Wanted behavoir

All hardware breakpoint should be available for user-debugging. The C-SPY debugger shouldn't use any hardware breakpoints at all.

What to do

Disable the breakpoints that C-SPY sets.

Disadvantages

These debuger features will not be usable:

  • run to (main)
  • use the stack plugin
  • use the "C-SPY Debugger runtime interface" (for example the I/O window in C-SPY).

How to do it

version 6.20 and later

Perform the following actions:

  • Disable : Project > Options > Debugger > Setup > "run to"
  • Disable : Tools > Options > Stack > "Disable all checkboxes"
  • Select : Project > Options > General Options > Library configuration > Library low-level interface implementation > None

version 6.10 and 5.x

Perform the following actions:

  • Disable : Project > Options > Debugger > Setup > "run to"
  • Disable : Project > Options > Debugger > Plugins > "stack"
  • Select : Project > Options > General Options > Library configuration > Library low-level interface implementation > None

version 4.xx

Perform the following actions:

  • Disable : Project > Options > Debugger > Setup > "run to"
  • Disable : Project > Options > Debugger > Plugins > "stack"
  • Disable : Project > Options > Linker > Output > Format > "With runtime control modules"

All product names are trademarks or registered trademarks of their respective owners.

We do no longer support Internet Explorer. To get the best experience of iar.com, we recommend upgrading to a modern browser such as Chrome or Edge.