Troubleshooting
AN4989
94/118
AN4989 Rev 3
11 Troubleshooting
summarizes solutions to overcome some of the most frequent issues faced during
debug setting and operation.
Table 6. Troubleshooting
Problem
Solution
Connection with target lost during debug of low-power
system
Ensure debug in low-power in DBGMCU register is
enabled.
Ensure SWD pin not set in analog state.
Refer to
Fail to get printf via SWO
Refer to
Section 7.3: Printf via SWO/SWV
.
An unexpected power consumption is measured for a
low-power application.
Check that low-power debug in DBGMCU register is
OFF. Beware that this register is reset only with a POR
(power-on reset).
Refer to
Fail to connect to a board with Normal/System Reset
Try ConnectUnderReset / Hardware Reset connection
mode. This resets SWD connection in case it has been
disabled by application.
Refer to
Fail to connect on board using
ConnectUnderReset/Hardware using ST-LINK
Ensure NRST of ST-LINK is properly connected to MCU
NRST (e.g. check SB12 for Nucleo).
Fail to see clock signal on MCO output
Ensure that the clock configured to MCO is in the
supported range of the GPIO and that the OSPEED
setting is correct.
Refer to
Impossible to evaluate a value or a variable, or
impossible to set a breakpoint at a specific line in code
Compiler optimization is probably enabled. Remove it.
Refer to
Содержание STM32 Series
Страница 46: ...Connecting to the board AN4989 46 118 AN4989 Rev 3 Figure 30 Keil hotplug step2 ...
Страница 91: ...AN4989 Rev 3 91 118 AN4989 Debug through hardware exploration 117 Figure 69 STM32F4 F7 dual MCO capabilities ...
Страница 103: ...AN4989 Rev 3 103 118 AN4989 Managing DBGMCU registers 117 Figure 78 Generator Options debug MCU in STM32CubeIDE ...