Debug support (DBG)
RM0090
1686/1731
DocID018909 Rev 11
38.11
Capability of the debugger host to connect under system
reset
The reset system of the STM32F4xx MCU 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
®
-M4 with FPU 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.
38.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.