Contents AN4989
4/118 AN4989 Rev 3
8 Debug through hardware exploration . . . . . . . . . . . . . . . . . . . . . . . . . . 87
8.1 Easy pinout probing with STMicroelectronics hardware kits . . . . . . . . . . 87
8.2 Microcontroller clock output (MCO) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
8.2.1 Configuration with STM32CubeMX . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
8.2.2 HAL_RCC_MCOConfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
8.2.3 STM32 Series differences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
9 Dual-Core microcontroller debugging . . . . . . . . . . . . . . . . . . . . . . . . . 92
10 From debug to release . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
11 Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
Appendix A Managing DBGMCU registers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
A.1 By software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
A.2 By debugger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
Appendix B Use Nucleo “cuttable” ST-LINK as stand-alone VCP . . . . . . . . . . 106
Appendix C Managing various targets on the same PC . . . . . . . . . . . . . . . . . . 109
Appendix D Cortex
®
-M debug capabilities reminder . . . . . . . . . . . . . . . . . . . . 116
D.1 Application notes index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .116
Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117