How is ST-LINK/V2 connected to the STM32 microcontroller?

Configure the emulator as ST-LINK DEBUG through the computer. First, plug the ST-LINK/V2 debugger and mini32 microcontroller into the laptop. The specific steps are as follows:

1. Moubao installed a mini32 microcontroller and a st-link debugger. The mac notebook he used was plugged directly into the U port.

2. After connecting, let’s debug it. Open the project configuration tab, click Debug to configure the emulator to ST-LINK DEBUG, and click setting in the last step.

3. Select SW in the pop-up window, and the ID number will appear under SW/JATG Devise on the right, as shown below.

4. If the target board cannot be found, switch to the Utilities tab to check the wiring and motherboard, set ST-LINK DEBUG and click Setting.

5. Download Function Select the first item, and click add below for the rest by default. There will be no problem in connecting ST-LINK/V2 and STM32 microcontroller.