Home
STMicroelectronics
Microcontrollers
STM32
STMicroelectronics STM32 User Manual
5
of 1
of 1 rating
118 pages
Give review
Manual
Specs
To Next Page
To Next Page
To Previous Page
To Previous Page
Loading...
AN4989 Rev 3
29/1
18
AN4989
STM32 ecosystem outlines
11
7
Figure 16
. STM32Cu
beProjectLi
st screens
hot
2.4 Information
and sharing
STMicroelectroni
cs offers a ver
y complete and wide range of solution on
the web to get
connected to STM32 W
orld.
Figure 17. Get connec
ted to STM32 world
28
30
Table of Contents
Default Chapter
1
Table 1. Applicable Products
1
Table of Contents
2
Foreword
8
General Information
8
Software Versions
8
Acronyms
8
STM32 Ecosystem Outlines
9
Hardware Development Tools
9
Hardware Kits
9
Figure 1. STM32 Ecosystem Overview
9
Figure 2. Development Tools Overview
10
Figure 3. Nucleo-144, Nucleo-64 and Nucleo-32 Boards
10
Figure 4. STM32 Nucleo-144 Structure
11
Figure 5. Discovery Board Example
12
Figure 6. EVAL Board Example
13
Figure 7. 7X-NUCLEO-LPM01A
14
ST-LINK Probe
16
Figure 8. ST-LINK, ST-LINK/V2, and ST-LINK/V2-ISOL Stand-Alone Probes
16
Figure 9. STLINK-V3SET
16
Figure 10. On-Board ST-LINK-V3 on Nucleo
17
Alternative Debugger Probes
19
Table 2. ST-LINK Software Pack
19
Software Development Tools
20
Figure 11. STM32 Software Development
20
Figure 12. Stm32Cubemx Configure and Code Generation
21
Stm32Cubemx
21
Figure 13. Stm32Cubeide
22
Stm32Cubeide
22
Partner Ides
24
Stm32Cubeprogrammer
25
Figure 14. Stm32Cube Programmer
26
Stm32Cubemonitor
27
Embedded Software
28
Figure 15. Stm32Cube Monitor
28
Information and Sharing
29
Figure 16. Stm32Cubeprojectlist Screenshot
29
Figure 17. Get Connected to STM32 World
29
Documentation
30
Table 3. Stmicroelectronics Documentation Guide
30
Github
31
ST Community
31
Wiki Platform
31
STM32 Education
32
Compiling for Debug
33
Optimization
33
Iar™ Ewarm
34
Figure 18. IAR™ EWARM Optimization Option
34
Keil ® MDK-Arm Μvision
35
Figure 19. Keil ® Μvision Code Optimization Option
35
Stm32Cubeide
36
Debugging Information
36
Figure 20. Stm32Cubeide Optimization Level Setting
36
Figure 21. IAR™ EWARM Generate Debug Information Option
37
Iar™ Ewarm
37
Figure 22. Keil ® Debug Information Option
38
Keil ® -MDK-Arm Μvision
38
Figure 23. Stm32Cubeide Debug Information Option
39
Stm32Cubeide
39
Connecting to the Board
40
SWD/JTAG Pinout
40
Figure 24. SWD Pins PA13 and PA14 in Reset State under Stm32Cubemx
40
Figure 25. SWD Pins PA13 and PA14 in Reserved but Inactive State
41
Figure 26. SWD Pins PA13 and PA14 in Active State under Stm32Cubemx
41
Reset and Connection Mode
42
Presentation
42
Iar™ Ewarm
43
Figure 27. Reset Mode in IAR8.10: Screenshot
43
Keil ® MDK-Arm Μvision
44
Figure 28. Connect and Reset Option Keil
44
Figure 29. Keil ® Hotplug Step1
45
Figure 30. Keil ® Hotplug Step2
46
Figure 31. Keil ® Hotplug Step3
47
Stm32Cubeide
48
Figure 32. Select Generator Options Reset Mode
48
Stm32Cubeprogrammer
49
Figure 33. Stm32Cubeprogrammer Reset Mode
49
Figure 34. Stm32Cubeprogrammer Connection Mode
49
Low-Power Case
50
Breaking and Stepping into Code
51
Debug Support for Timers, RTC, Watchdog, Bxcan and I 2 C
51
Debug Performance
51
Iar™ Ewarm
52
Figure 35. IAR™ EWARM ST-LINK SWD Speed Setting
52
Keil ® MDK-Arm Μvision
53
Figure 36. Keil ® SWD Speed Setting
53
Stm32Cubeide
54
Figure 37. Access to Generator Options in Stm32Cubeide V2.0.0
54
Secure Platform Limitation
55
Rdp
55
Pcrop
56
Table 4. STM32 Series RDP Protection Extension
56
Exception Handling
57
Default Weak Handlers
57
Custom Handlers
58
Figure 38. Asking for Handler Code Generation
58
Trapping DIV/0 Exception
60
Cortex ® -M0/M0+ Case
60
Figure 39. Keil ® Access to Show Caller Code in Contextual Menu
60
Cortex ® -M3/4/7 Case
61
Figure 40. Cortex ® -M3 SCB_CCR Description
61
Figure 41. Cortex-M3 SCB_CFSR Description
61
Figure 42. IAR™ EWARM Exception Handling
62
Figure 43. Keil ® System Control and Configure
63
Figure 44. Keil ® Fault Reports
64
Figure 45. Stm32Cubeide SCB Register Access
65
Figure 46. Fault Analyzer in Stm32Cubeide
66
Printf Debugging
68
STM32 Virtual COM Port Driver
68
Figure 47. Virtual COM Port on Windows ® PC
68
Printf Via UART
69
Figure 48. USART Pinout Configuration with Stm32Cubemx
69
Figure 49. USART2 Setting with Stm32Cubemx
70
Printf Via SWO/SWV
71
Table 5. STM32 USART Vs. PC Terminal Wordlength Example
71
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
Semihosting
79
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
Iar™ Ewarm
80
Keil ® MDK-Arm Μvision
80
Figure 60. Properties for Semihosting in Stm32Cubeide- Source Location
81
Stm32Cubeide
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
Debug through Hardware Exploration
87
Easy Pinout Probing with Stmicroelectronics Hardware Kits
87
Microcontroller Clock Output (MCO)
87
Configuration with Stm32Cubemx
87
Figure 66. MCO Pin Selection in Stm32Cubemx
87
Figure 67. MCO Alternate Pin Highlight Exemple with L073
88
Hal_Rcc_Mcoconfig
89
Figure 68. MCO Multiplexer in Stm32Cubemx Clock Configuration Pane
89
STM32 Series Differences
90
Figure 69. STM32F4/F7 Dual MCO Capabilities
91
Dual-Core Microcontroller Debugging
92
From Debug to Release
93
Troubleshooting
94
Table 6. Troubleshooting
94
Appendix A Managing DBGMCU Registers
95
By Software
95
Figure 70. DBMCU Register LL Library Functions
95
By Debugger
96
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
Appendix B Use Nucleo "Cuttable" ST-LINK as Stand-Alone VCP
106
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
Appendix B Use Nucleo “Cuttable” ST-LINK as Stand-Alone VCP
109
Appendix C Managing Various Targets on the same PC
109
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
Appendix D Cortex ® -M Debug Capabilities Reminder
116
Application Notes Index
116
Table 7. STM32 Series Vs. Debug Capabilties
116
Table 8. STM32 Series Vs. Debug Capabilities
116
Revision History
117
Table 9. Document Revision History
117
5
Based on 1 rating
Ask a question
Give review
Questions and Answers:
Need help?
Do you have a question about the STMicroelectronics STM32 and is the answer not in the manual?
Ask a question
STMicroelectronics STM32 Specifications
General
Brand
STMicroelectronics
Model
STM32
Category
Microcontrollers
Language
English
Related product manuals
STMicroelectronics STM32F427
36 pages
STMicroelectronics STM32F038C6
103 pages
STM32F05 series
742 pages
STM32WL5 Series
1450 pages
STM32F469I-DISCO
30 pages
STMicroelectronics STM32 Series
58 pages