EasyManuals Logo

STMicroelectronics STM32 User Manual

STMicroelectronics STM32
118 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #7 background imageLoading...
Page #7 background image
AN4989 Rev 3 7/118
AN4989 List of figures
7
Figure 48. USART Pinout configuration with STM32CubeMX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Figure 49. USART2 setting with STM32CubeMX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Figure 50. SWO Pin configuration with STM32CubeMX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Figure 51. Semihosting/SWO configuration with IAR™ EWARM . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Figure 52. IAR™ EWARM SWO Clock setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Figure 53. SWO configuration with Keil
®
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Figure 54. Access to SWV in Keil
®
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Figure 55. Enable SWD in STM32CubeIDE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Figure 56. Enable SWV ITM Data Console in STM32CubeIDE. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Figure 57. Enable ITM stimulus Port 0 in STM32CubeIDE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Figure 58. Start Trace button in STM32CubeIDE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Figure 59. Semihosting configuration in IAR™ EWARM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
Figure 60. Properties for semihosting in STM32CubeIDE- Source Location. . . . . . . . . . . . . . . . . . . . 81
Figure 61. Properties for semihosting in STM32CubeIDE- Librairies . . . . . . . . . . . . . . . . . . . . . . . . . 82
Figure 62. Properties for semihosting in STM32CubeIDE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
Figure 63. Semihosting in STM32CubeIDE – Debug configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . 84
Figure 64. Semihosting in STM32CubeIDE – Startup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
Figure 65. Semihosting in STM32CubeIDE – Run . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Figure 66. MCO pin selection in STM32CubeMX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
Figure 67. MCO alternate pin highlight exemple with L073 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
Figure 68. MCO Multiplexer in STM32CubeMX Clock Configuration Pane . . . . . . . . . . . . . . . . . . . . . 89
Figure 69. STM32F4/F7 dual MCO capabilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Figure 70. DBMCU Register LL Library Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
Figure 71. DBGMCU_CR HAL Library Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
Figure 72. Access to DBGMCU register with IAR™ EWARM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
Figure 73. EWARM C-SPY
®
Macro script setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
Figure 74. Accessing DBGMCU register in Keil
®
MDK-Arm µVision (1/2). . . . . . . . . . . . . . . . . . . . . . 99
Figure 75. Accessing DBGMCU register in Keil
®
MDK-Arm µVision (2/2)) . . . . . . . . . . . . . . . . . . . . 100
Figure 76. Keil
®
Initialization script setting. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Figure 77. Access to Generator Options in STM32CubeIDE V2.0.0 . . . . . . . . . . . . . . . . . . . . . . . . . 102
Figure 78. Generator Options debug MCU in STM32CubeIDE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
Figure 79. Access to DBGMCU settings with STM32CubeIDE V1.3.0 . . . . . . . . . . . . . . . . . . . . . . . 104
Figure 80. Runtime R/W access to DBGMCU register with SSTM32CubeIDE . . . . . . . . . . . . . . . . . 105
Figure 81. ST-LINK cuttable part of Nucleo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
Figure 82. Using ST-LINK stand-alone part of Nucleo-L476RG as VCP . . . . . . . . . . . . . . . . . . . . . 107
Figure 83. Virtual COM port on PC side . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
Figure 84. STM32CubeProgrammer target selection pick list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Figure 85. Getting target ST-LINK S/N from the console. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
Figure 86. IAR™ EWARM Debug Probe Selection pop-up window . . . . . . . . . . . . . . . . . . . . . . . . . 110
Figure 87. IAR™ EWARM Debug Probe Selection with nickname . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Figure 88. Probe selection prompt setting on IAR™ EWARM. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Figure 89. Keil
®
ST-LINK selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
Figure 90. Error message for multiple ST-LINK detected in STM32CubeIDE . . . . . . . . . . . . . . . . . . 113
Figure 91. Forcing specific ST-LINK S/N with STM32CubeIDE with OpenOCD option. . . . . . . . . . . 114
Figure 92. Forcing specific ST-LINK S/N with STM32CubeIDE with ST-LINK GDB server. . . . . . . . 115

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

STMicroelectronics STM32 Specifications

General IconGeneral
BrandSTMicroelectronics
ModelSTM32
CategoryMicrocontrollers
LanguageEnglish

Related product manuals