Capability Of The Debugger Host To Connect Under System Reset; Fpb (Flash Patch Breakpoint) - ST STM32F102 Series Reference Manual

Hide thumbs Also See for STM32F102 Series:
Table of Contents

Advertisement

RM0008
Note:
Important: these registers are not reset by a system reset. They are only reset by a power-
on reset.
Refer to the Cortex-M3 r1p1 TRM for further details.
To Halt on reset, it is necessary to:
enable the bit0 (VC_CORRESET) of the Debug and Exception Monitor Control
Register
enable the bit0 (C_DEBUGEN) of the Debug Halting Control and Status Register.
26.11
Capability of the debugger host to connect under system
reset
The STM32F10xxx MCU reset system comprises the following reset sources:
POR (Power On Reset) which asserts a RESET at each power-up.
Internal Watchdog Reset
Software Reset
External Reset
The Cortex-M3 differentiates the reset of the debug part (generally PORRESETn) and the
other one (SYSRESETn)
This way, it is possible for the debugger to connect under System Reset, programming the
Core Debug Registers to halt the core when fetching the reset vector. Then the host can
release the system reset and the core will immediately halt without having executed any
instructions. In addition, it is possible to program any debug features under System Reset.
Note:
It is highly recommended for the debugger host to connect (set a breakpoint in the reset
vector) under system reset.
26.12

FPB (Flash patch breakpoint)

The FPB unit:
implements hardware breakpoints
patches code and data from code space to system space. This feature gives the
possibility to correct software bugs located in the Code Memory Space.
The use of a Software Patch or a Hardware Breakpoint is exclusive.
The FPB consists of:
2 literal comparators for matching against literal loads from Code Space and remapping
to a corresponding area in the System Space.
6 instruction comparators for matching against instruction fetches from Code Space.
They can be used either to remap to a corresponding area in the System Space or to
generate a Breakpoint Instruction to the core.
Debug support (DBG)
667/690

Advertisement

Table of Contents
loading

This manual is also suitable for:

Stm32f101 seriesStm32f103 series

Table of Contents