STMicroelectronics STM32 Application Note page 7

Microcontroller debug toolbox
Hide thumbs Also See for STM32:
Table of Contents

Advertisement

AN4989
USART Pinout configuration with STM32CubeMX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
USART2 setting with STM32CubeMX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
SWO Pin configuration with STM32CubeMX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Semihosting/SWO configuration with IAR™ EWARM . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
IAR™ EWARM SWO Clock setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Enable SWD in STM32CubeIDE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Enable SWV ITM Data Console in STM32CubeIDE. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Enable ITM stimulus Port 0 in STM32CubeIDE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Start Trace button in STM32CubeIDE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Semihosting configuration in IAR™ EWARM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
Properties for semihosting in STM32CubeIDE- Source Location . . . . . . . . . . . . . . . . . . . . 81
Properties for semihosting in STM32CubeIDE- Librairies . . . . . . . . . . . . . . . . . . . . . . . . . 82
Properties for semihosting in STM32CubeIDE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
Semihosting in STM32CubeIDE - Debug configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
Semihosting in STM32CubeIDE - Startup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
Semihosting in STM32CubeIDE - Run . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
MCO pin selection in STM32CubeMX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
MCO alternate pin highlight exemple with L073 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
MCO Multiplexer in STM32CubeMX Clock Configuration Pane . . . . . . . . . . . . . . . . . . . . . 89
STM32F4/F7 dual MCO capabilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
DBMCU Register LL Library Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
DBGMCU_CR HAL Library Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
Access to DBGMCU register with IAR™ EWARM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
®
Initialization script setting. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Access to Generator Options in STM32CubeIDE V2.0.0 . . . . . . . . . . . . . . . . . . . . . . . . . 102
Generator Options debug MCU in STM32CubeIDE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
Access to DBGMCU settings with STM32CubeIDE V1.3.0 . . . . . . . . . . . . . . . . . . . . . . . 104
Runtime R/W access to DBGMCU register with SSTM32CubeIDE . . . . . . . . . . . . . . . . . 105
ST-LINK cuttable part of Nucleo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
Using ST-LINK stand-alone part of Nucleo-L476RG as VCP . . . . . . . . . . . . . . . . . . . . . 107
Virtual COM port on PC side . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
STM32CubeProgrammer target selection pick list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Getting target ST-LINK S/N from the console. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
IAR™ EWARM Debug Probe Selection pop-up window . . . . . . . . . . . . . . . . . . . . . . . . . 110
IAR™ EWARM Debug Probe Selection with nickname . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Probe selection prompt setting on IAR™ EWARM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
®
ST-LINK selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
Error message for multiple ST-LINK detected in STM32CubeIDE . . . . . . . . . . . . . . . . . . 113
®
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
®
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
®
Macro script setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
®
®
AN4989 Rev 3
MDK-Arm µVision (1/2). . . . . . . . . . . . . . . . . . . . . . 99
MDK-Arm µVision (2/2)) . . . . . . . . . . . . . . . . . . . . 100
List of figures
7/118
7

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents

Save PDF